Skip to content

Conversation

@gongxh13
Copy link

@gongxh13 gongxh13 commented Jan 1, 2026

What

Add reasoningContent to the model invocation request body.

Why

Some models require the reasoningContent parameter to be passed in multiple calls within the same conversation round; otherwise, an error will occur. A typical example is the DeepSeek Reasoner model. See the official documentation: https://api-docs.deepseek.com/guides/thinking_mode#tool-calls

Affected Areas

Add a reasoningContent field to the message, defaulting to nil. It is passed to the model invocation only when explicitly provided.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant