You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Chat history is not preserved when you are making requests through API.
E.g.
{
"messages": [
{ "role": "user", "content": "Hello Support!" },
{ "role": "assistant", "content": "Hello back" },
{ "role": "user", "content": "Can you help me with out to do something?" }
]
}
It looks like the ApiOutputController always picks the content of the message at index 0. $input = data_get($validate, 'messages.0.content');
Rest of the message array history can not be seen in the Chat with your Collection history.
Every following prompt is registered as a new chat with different session ID and not continuation of previous conversation.
For what it's worth chatting with collection within the the dashboard works as expected. Could this be a session handler issue or a bug?
Thanks in advance
The text was updated successfully, but these errors were encountered:
Chat history is not preserved when you are making requests through API.
E.g.
It looks like the ApiOutputController always picks the content of the message at index 0.
$input = data_get($validate, 'messages.0.content');
Rest of the message array history can not be seen in the Chat with your Collection history.
Every following prompt is registered as a new chat with different session ID and not continuation of previous conversation.
For what it's worth chatting with collection within the the dashboard works as expected. Could this be a session handler issue or a bug?
Thanks in advance
The text was updated successfully, but these errors were encountered: