fix(ai): use LangServe message format (type instead of role)
All checks were successful
Build Docker Image / build (push) Successful in 4m3s

This commit is contained in:
Ruslan Bakiev
2026-01-07 16:16:45 +07:00
parent 41a3b3ba39
commit 4f57686364
6 changed files with 374 additions and 27 deletions

View File

@@ -87,7 +87,7 @@ const handleSend = async () => {
const body = {
input: {
messages: chat.value.map((m) => ({
role: m.role === 'assistant' ? 'assistant' : 'user',
type: m.role === 'assistant' ? 'ai' : 'human',
content: m.content
}))
}