mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2026-01-03 11:19:10 +08:00
refactor: update input tools configuration to hide unused tools and set initial collapsed state
This commit is contained in:
parent
3350f58422
commit
c1d753b7fe
@ -14,13 +14,9 @@ export const DEFAULT_TOOL_ORDER: ToolOrder = {
|
|||||||
'knowledge_base',
|
'knowledge_base',
|
||||||
'mcp_tools',
|
'mcp_tools',
|
||||||
'generate_image',
|
'generate_image',
|
||||||
'mention_models',
|
'mention_models'
|
||||||
'quick_phrases',
|
|
||||||
'clear_topic',
|
|
||||||
'toggle_expand',
|
|
||||||
'new_context'
|
|
||||||
],
|
],
|
||||||
hidden: []
|
hidden: ['quick_phrases', 'clear_topic', 'toggle_expand', 'new_context']
|
||||||
}
|
}
|
||||||
|
|
||||||
export type InputToolsState = {
|
export type InputToolsState = {
|
||||||
@ -30,7 +26,7 @@ export type InputToolsState = {
|
|||||||
|
|
||||||
const initialState: InputToolsState = {
|
const initialState: InputToolsState = {
|
||||||
toolOrder: DEFAULT_TOOL_ORDER,
|
toolOrder: DEFAULT_TOOL_ORDER,
|
||||||
isCollapsed: false
|
isCollapsed: true
|
||||||
}
|
}
|
||||||
|
|
||||||
const inputToolsSlice = createSlice({
|
const inputToolsSlice = createSlice({
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user