Commit f802262
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 f802262
1 file changed
+1
-0
lines changed| 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