fix: report cost for streamed OpenRouter calls (#634)

* fix: capture cost for streamed LiteLLM responses

* docs: note LiteLLM streaming metadata callbacks
This commit is contained in:
Sonai Biswas
2026-07-03 06:10:28 +02:00
committed by GitHub
parent dc8b790cf8
commit c3997cdb35
4 changed files with 66 additions and 3 deletions
+5
View File
@@ -73,6 +73,11 @@ strix --target <target> [options]
concurrently).
- Cost is a best-effort estimate derived from token usage and model pricing;
providers that do not expose priced usage may under-count.
- For LiteLLM-routed models, Strix enables streaming success callbacks to
capture provider-reported cost. Message content remains excluded, but
third-party LiteLLM callbacks configured in the same process can receive
other streaming metadata such as model names, request IDs, and token
counts.
</ParamField>
## Examples