There was an error while loading. Please reload this page.
1 parent ca51f9d commit fb7dac8Copy full SHA for fb7dac8
1 file changed
packages/kit/src/message/plugins/thinkingPlugin.ts
@@ -13,7 +13,7 @@ export const thinkingPlugin = (options: MessageEnginePlugin = {}): MessageEngine
13
// eslint-disable-next-line @typescript-eslint/no-explicit-any
14
const c = choice as any
15
const reasoning_content = c?.message?.reasoning_content || c?.delta?.reasoning_content
16
- const thinking = typeof reasoning_content === 'string' && reasoning_content.trim() !== ''
+ const thinking = typeof reasoning_content === 'string' && reasoning_content.length > 0
17
18
if (thinking) {
19
if (currentMessage.state && typeof currentMessage.state === 'object') {
0 commit comments