We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cc7c03e commit 10cb6d8Copy full SHA for 10cb6d8
src/api/providers/xai.ts
@@ -60,7 +60,7 @@ export class XAIHandler extends BaseProvider implements SingleCompletionHandler
60
}
61
62
63
- if ("reasoning_content" in delta && delta.reasoning_content) {
+ if (delta && "reasoning_content" in delta && delta.reasoning_content) {
64
yield {
65
type: "reasoning",
66
text: (delta.reasoning_content as string | undefined) || "",
0 commit comments