Find answers from the community

s
F
Y
a
P
Updated last month

hey guys, any idea how is it possible

hey guys, any idea how is it possible for this

Plain Text
chat_engine = index.as_chat_engine(
    service_context=service_context,
    chat_mode=ChatMode.CONTEXT,
)
return chat_engine.chat(latest_message['message'], chat_history=custom_chat_history).response


to be returning str : "[object Object]"
L
1 comment
[object Object] is a common javascript thing no?

Just cast as string before returning

return str(...)
Add a reply
Sign up and join the conversation on Discord