radicalxdev / marvel-ai-backend

This is the Marvel Teaching Assistant ai repo.
MIT License
16 stars 85 forks source link

SD Chat Bug Fix Request [ HIGH PRIORITY ] #87

Open bkb-Git opened 2 months ago

bkb-Git commented 2 months ago

Description

There is a bug on the chat feature that throws an error. Below are the error logs

image

The AI side seems to be throwing an error requiring the tool_data field however we can communicate with the AI based on two iteraction types, "chat" and "tool". If a "chat" type is sent to the AI, there should be no tool_data requirement.

Expected Behaviour

When the user iteracts with the chat, there should be no requirement for the tool_data field sent to the AI. If it's a tool interaction then there should be a requirement for the "tool_data" field.

mikhailocampo commented 2 months ago

@bkb-Git Can you forward here the request schema that is normally sent that captures this interaction?

bkb-Git commented 2 months ago

@mikhailocampo You can ignore the message field, that is firebase generated.

jsonPayload: { messages: [ { payload: { text: "Hey" } role: "human" timestamp: { _nanoseconds: 989000000 _seconds: 1723727633 } type: "text" }] type: "chat" user: { email: "billykbett@gmail.com" fullName: "Billy" id: "7Z7AJFH5rOcavvoV9o3AeU4PpJi1" }}

image