mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2026-01-07 13:59:28 +08:00
feat(InputbarTools): add reasoning effort button to quick panel (#10959)
Add new menu item with lightbulb icon that opens the reasoning effort quick panel when clicked
This commit is contained in:
parent
714a28ac29
commit
49bd298d37
@ -2,6 +2,7 @@ import type { DropResult } from '@hello-pangea/dnd'
|
|||||||
import { DragDropContext, Draggable, Droppable } from '@hello-pangea/dnd'
|
import { DragDropContext, Draggable, Droppable } from '@hello-pangea/dnd'
|
||||||
import { loggerService } from '@logger'
|
import { loggerService } from '@logger'
|
||||||
import { ActionIconButton } from '@renderer/components/Buttons'
|
import { ActionIconButton } from '@renderer/components/Buttons'
|
||||||
|
import { MdiLightbulbOn } from '@renderer/components/Icons'
|
||||||
import type { QuickPanelListItem } from '@renderer/components/QuickPanel'
|
import type { QuickPanelListItem } from '@renderer/components/QuickPanel'
|
||||||
import {
|
import {
|
||||||
isAnthropicModel,
|
isAnthropicModel,
|
||||||
@ -230,6 +231,15 @@ const InputbarTools = ({
|
|||||||
quickPhrasesButtonRef.current?.openQuickPanel()
|
quickPhrasesButtonRef.current?.openQuickPanel()
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
label: t('assistants.settings.reasoning_effort.label'),
|
||||||
|
description: '',
|
||||||
|
icon: <MdiLightbulbOn />,
|
||||||
|
isMenu: true,
|
||||||
|
action: () => {
|
||||||
|
thinkingButtonRef.current?.openQuickPanel()
|
||||||
|
}
|
||||||
|
},
|
||||||
{
|
{
|
||||||
label: t('assistants.presets.edit.model.select.title'),
|
label: t('assistants.presets.edit.model.select.title'),
|
||||||
description: '',
|
description: '',
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user