Skip to content

Commit 4710e4c

Browse files
mrubensPrasangAPrajapati
authored andcommitted
Capture the reasoning content in base-openai-compatible for GLM 4.6 (RooCodeInc#8976)
1 parent b64bf39 commit 4710e4c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/api/providers/base-openai-compatible-provider.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,10 @@ export abstract class BaseOpenAiCompatibleProvider<ModelName extends string>
115115
}
116116
}
117117

118+
if (delta && "reasoning_content" in delta && delta.reasoning_content) {
119+
yield { type: "reasoning", text: (delta.reasoning_content as string | undefined) || "" }
120+
}
121+
118122
if (chunk.usage) {
119123
yield {
120124
type: "usage",

0 commit comments

Comments
 (0)