ui: Add Thinking mode toggle with reasoning effort levels + improvements for Chat Form Add Action UI#23434
Conversation
|
I have wanted a thinking toggle here for a long time, I'm just not sure how it can automatically detect the right kind of toggle to show. Some models only support one mode, some models support turning thinking on/off, some models support different reasoning efforts: low, medium, high (like GPT-OSS). How does this PR handle that? |
my assumption was to release this as is, in an experimental form as most popular models support reasoning and follow up with further implementation on the server-side with some kind of support for detecting the thinking support and passing it to |
|
Thank you for this. I requested it some time back. #18405 I think many people will be happy. Can you kindly confirm what will be required on server end for it to work as of now. If server is either started with reasoning on or off. |
Yes, actually I might devote a bit more time to this PR to also address #18405 |
|
Okay, so after seeing multiple feature requests I've updated the description of the PR and changed it back to draft as I'd like to do a bit more in-depth implementation of Thinking controls feature from the start. I've created a parent issue ##23444 |
292193c to
55709fa
Compare
55709fa to
50d9548
Compare
…d message-specific indicators
98f9e68 to
3ca2987
Compare
|
@shredderique here's a refined toggle with dropdown choice :)
|
Co-authored-by: Aleksander Grygier <aleksander.grygier@gmail.com>
8dc7a05 to
6505c46
Compare
|
@ggerganov @julien-c please review/test and lemme know :) |
ggerganov
left a comment
There was a problem hiding this comment.
Very useful.
Note that this is compatible with the CLI argument --reasoning-budget-message. For example:
llama serve ... --reasoning-budget-message " ... I am thinking too long. Will proceed with the final answer now."|
just tried it, very cool! |



Overview
Closes #23444
Closes #18405
Closes #22895
Closes #20557
Closes #20001
Supersedes #21657
Demo
Nagranie.z.Ekranu_converted.mp4
Additional information
Storage & Settings
Backend API Integration (chat.service.ts)
Database Schema Changes
New optional fields on DatabaseConversation:
thinkingEnabled?: booleanreasoningEffort?: ReasoningEffortUX Redesign of "Add" Panel
Desktop (Dropdown):
Mobile (Sheet):
Bug Fixes
Data Flow: Thinking Toggle → API Request
Requirements