fix: 修复切换助手时无法正确切换到助手默认模型的问题 (#1776)

This commit is contained in:
George·Dong 2025-02-17 11:28:17 +08:00 committed by GitHub
parent 642ce160a1
commit d175212d9a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -44,7 +44,7 @@ export function useAssistant(id: string) {
return {
assistant,
model: assistant?.model ?? defaultModel,
model: assistant?.model ?? assistant?.defaultModel ?? defaultModel,
addTopic: (topic: Topic) => dispatch(addTopic({ assistantId: assistant.id, topic })),
removeTopic: (topic: Topic) => {
TopicManager.removeTopic(topic.id)