mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-11-24 17:09:25 +00:00
feat(chatbot): require agentId in ChatRequest and validate agent presence
This commit is contained in:
@@ -139,6 +139,7 @@ describe('Chat API', () => {
|
||||
method: 'POST',
|
||||
headers: { 'Content-Type': 'application/json' },
|
||||
body: JSON.stringify({
|
||||
agentId: 'agent1',
|
||||
textPrompt: 'hi',
|
||||
}),
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user