Commit 7c7b9f2
Developer
Add stream_options for token usage tracking in streaming responses
X.AI supports the OpenAI standard stream_options parameter to include
token usage information in streaming responses. This ensures token
usage is properly tracked when using streaming mode.1 parent f9fa972 commit 7c7b9f2
2 files changed
+3
-2
lines changedSome generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
114 | 114 | | |
115 | 115 | | |
116 | 116 | | |
| 117 | + | |
117 | 118 | | |
118 | 119 | | |
119 | 120 | | |
| |||
0 commit comments