fix(ai): use LangServe message format (type instead of role)
All checks were successful
Build Docker Image / build (push) Successful in 4m3s
All checks were successful
Build Docker Image / build (push) Successful in 4m3s
This commit is contained in:
@@ -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
|
||||
}))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user