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 470b78a commit a449209Copy full SHA for a449209
src/api/providers/mistral.ts
@@ -120,8 +120,8 @@ export class MistralHandler extends BaseProvider implements SingleCompletionHand
120
if (Array.isArray(content)) {
121
// Only return text content, filter out thinking content for non-streaming
122
return content
123
- .filter((c: MistralContent) => typeof c === "object" && c.type === "text")
124
- .map((c: MistralContent) => (c as MistralTextContent).text || "")
+ .filter((c: any) => typeof c === "object" && c !== null && c.type === "text")
+ .map((c: any) => c.text || "")
125
.join("")
126
}
127
0 commit comments