Skip to content

Commit ab59bd9

Browse files
canvrnodcbartlett
andauthored
initial (RooCodeInc#2795)
Co-authored-by: Dennis Bartlett <[email protected]>
1 parent a0252e7 commit ab59bd9

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

.changeset/silver-news-notice.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"claude-dev": patch
3+
---
4+
5+
Add stream options back to xai provider

src/api/providers/xai.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ export class XAIHandler implements ApiHandler {
3434
temperature: 0,
3535
messages: [{ role: "system", content: systemPrompt }, ...convertToOpenAiMessages(messages)],
3636
stream: true,
37+
stream_options: { include_usage: true },
3738
reasoning_effort: reasoningEffort,
3839
})
3940

0 commit comments

Comments
 (0)