From 388d40524deac170fa6c6fedb30319698d19dfcf Mon Sep 17 00:00:00 2001 From: Matt Rubens Date: Sun, 2 Nov 2025 01:00:33 -0400 Subject: [PATCH] Capture the reasoning content in base-openai-compatible for GLM 4.6 (#8976) --- src/api/providers/base-openai-compatible-provider.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/api/providers/base-openai-compatible-provider.ts b/src/api/providers/base-openai-compatible-provider.ts index 9fe516ed09..ec62e7d7dd 100644 --- a/src/api/providers/base-openai-compatible-provider.ts +++ b/src/api/providers/base-openai-compatible-provider.ts @@ -115,6 +115,10 @@ export abstract class BaseOpenAiCompatibleProvider } } + if (delta && "reasoning_content" in delta && delta.reasoning_content) { + yield { type: "reasoning", text: (delta.reasoning_content as string | undefined) || "" } + } + if (chunk.usage) { yield { type: "usage",