Continuing a Chat by adding new messages. #67
Replies: 1 comment
-
I'm sorry this works fine. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Imagine a Chat that is already existing and belongs to a user that they would want to continue with (just like in OpenAI interface). You create the Chat once and then you'd want to do something like this:
Where a
user_message
is essentially the next message they sent, but not yet aMessage
attached to a RubyLLM Chat.So what you're basically trying to do is load the original RubyLLM
Chat
and add a message to it based on thatuser_message
content. This next message represents a new response to the chat but because what looks to be happening is because in this process there is only 1 chat.ask, the entire context of the previous chat messages are lost, it's as though this an entirely new response.Does that make sense? Is this possible?
Beta Was this translation helpful? Give feedback.
All reactions