Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/kit/src/message/plugins/thinkingPlugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export const thinkingPlugin = (options: MessageEnginePlugin = {}): MessageEngine
// eslint-disable-next-line @typescript-eslint/no-explicit-any
const c = choice as any
const reasoning_content = c?.message?.reasoning_content || c?.delta?.reasoning_content
const thinking = typeof reasoning_content === 'string' && reasoning_content.trim() !== ''
const thinking = typeof reasoning_content === 'string' && reasoning_content.length > 0
Comment thread
coderabbitai[bot] marked this conversation as resolved.

if (thinking) {
if (currentMessage.state && typeof currentMessage.state === 'object') {
Expand Down
Loading