Skip to content

Handling delta.reasoning_content in llama-server's webUI #14997

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

mostlygeek
Copy link
Contributor

This PR adds support for the reasoning content when llama-server is started with --reasoning-format deepseek (the default). This also improves support for new Qwen3 2507 thinking specific models that do not send a <think> by default.

@@ -40,6 +40,7 @@ export interface Message {
type: 'text' | 'root';
timestamp: number; // timestamp from Date.now()
role: 'user' | 'assistant' | 'system';
reasoningContent?: string;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We cannot store reasoning content inside the message object - it must be contained inside content. Otherwise, it's impossible to modify assistant message (a planned feature)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is OK because messages is not supposed to include the reasoning content from assistants. Editing reasoningContent wouldn't have any effect on the conversation.

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

Successfully merging this pull request may close these issues.

2 participants