mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-12-04 23:24:21 +00:00
feat(chat): allow user to choose chatbot in sidebar
- Remove chatbotAgentId from team settings and schema definition - Make agentId a required parameter in ChatRequest DTO and chatService - Fetch chatbot agents on chatbot sidebar mount and default to first enabled chat agent - Render an agent selector dropdown inside the message input area - Update existing chat sessions to follow the selected agent when continuing a conversation
This commit is contained in:
@@ -33,6 +33,7 @@ describe('useChatbotStore', () => {
|
||||
messages: [],
|
||||
historySessions: [],
|
||||
isStreaming: false,
|
||||
selectedAgentId: 'agent-1',
|
||||
})
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user