Join Nostr
2026-03-23 15:26:33 UTC
in reply to

redtest123 on Nostr: Hey Hye Blue create an issue for core where sats costs are not returned in x-cashu ...

Hey Hye create an issue for core where sats costs are not returned in x-cashu mode. Here's the full output:
usage: {
prompt_tokens: 1137,
completion_tokens: 111,
total_tokens: 1248,
cost: 0.00025998,
is_byok: false,
prompt_tokens_details: {
cached_tokens: 893,
cache_write_tokens: 0,
audio_tokens: 0,
video_tokens: 0,
},
cost_details: {
upstream_inference_cost: 0.00025998,
upstream_inference_prompt_cost: 0.00012678,
upstream_inference_completions_cost: 0.0001332,
},
completion_tokens_details: {
reasoning_tokens: 31,
image_tokens: 0,
audio_tokens: 0,
},
},
}

In other modes a variable "cost_sats" is returned by the backend.