Add support for maintaining a chat message history between the user and the LLM.
This should be easy enough to do; new user messages and assistant responses are appended to the messages list and passed back and forth. Add some logic to pop the oldest message when we get too close to the token limit or maybe just cap at a certain number of messages.
Add support for maintaining a chat message history between the user and the LLM.
This should be easy enough to do; new user messages and assistant responses are appended to the messages list and passed back and forth. Add some logic to pop the oldest message when we get too close to the token limit or maybe just cap at a certain number of messages.