mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2026-01-06 21:35:52 +08:00
fix: 修复切换助手时无法正确切换到助手默认模型的问题 (#1776)
This commit is contained in:
parent
532139f4cb
commit
8de58048c8
@ -44,7 +44,7 @@ export function useAssistant(id: string) {
|
|||||||
|
|
||||||
return {
|
return {
|
||||||
assistant,
|
assistant,
|
||||||
model: assistant?.model ?? defaultModel,
|
model: assistant?.model ?? assistant?.defaultModel ?? defaultModel,
|
||||||
addTopic: (topic: Topic) => dispatch(addTopic({ assistantId: assistant.id, topic })),
|
addTopic: (topic: Topic) => dispatch(addTopic({ assistantId: assistant.id, topic })),
|
||||||
removeTopic: (topic: Topic) => {
|
removeTopic: (topic: Topic) => {
|
||||||
TopicManager.removeTopic(topic.id)
|
TopicManager.removeTopic(topic.id)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user