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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user