Select thinking mode from the chat
This commit is contained in:
@@ -305,6 +305,19 @@ impl App {
|
||||
.text_size(12)
|
||||
.padding([2, 6])
|
||||
});
|
||||
let reasoning_mode = self.config.generation.effective_reasoning_mode();
|
||||
let reasoning_control: Element<'_, Message> = if self.active_chat_count() > 0 {
|
||||
text(reasoning_mode.to_string()).size(12).into()
|
||||
} else {
|
||||
pick_list(
|
||||
self.config.generation.supported_reasoning_modes(),
|
||||
Some(reasoning_mode),
|
||||
Message::ReasoningModeChanged,
|
||||
)
|
||||
.text_size(12)
|
||||
.padding([2, 6])
|
||||
.into()
|
||||
};
|
||||
composer_content =
|
||||
composer_content.push(
|
||||
row![
|
||||
@@ -341,6 +354,7 @@ impl App {
|
||||
)
|
||||
.text_size(12)
|
||||
.padding([2, 6]),
|
||||
reasoning_control,
|
||||
icon(ICON_MODEL, 16),
|
||||
text(self.config.model.to_string()).size(12),
|
||||
action,
|
||||
|
||||
Reference in New Issue
Block a user