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 613255c commit 53cafa4Copy full SHA for 53cafa4
src/api/providers/base-openai-compatible-provider.ts
@@ -124,8 +124,11 @@ export abstract class BaseOpenAiCompatibleProvider<ModelName extends string>
124
}
125
126
127
- if (delta && "reasoning_content" in delta && delta.reasoning_content) {
128
- yield { type: "reasoning", text: (delta.reasoning_content as string | undefined) || "" }
+ if (delta && "reasoning_content" in delta) {
+ const reasoning_content = (delta.reasoning_content as string | undefined) || ""
129
+ if (reasoning_content?.trim()) {
130
+ yield { type: "reasoning", text: reasoning_content }
131
+ }
132
133
134
if (chunk.usage) {
0 commit comments