Skip to content

Commit 6c5b99d

Browse files
authored
Safer check for xAI reasoning content (RooCodeInc#2936)
1 parent 0212081 commit 6c5b99d

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changeset/rich-pens-buy.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+
Safer check for xAI reasoning content

src/api/providers/xai.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ export class XAIHandler implements ApiHandler {
4747
}
4848
}
4949

50-
if ("reasoning_content" in delta && delta.reasoning_content) {
50+
if (delta && "reasoning_content" in delta && delta.reasoning_content) {
5151
yield {
5252
type: "reasoning",
5353
// @ts-ignore-next-line

0 commit comments

Comments
 (0)