-
Thanks alot for this amazing package, Is there any way to terminate the request and establish a new one with chat completion endpoint? |
Beta Was this translation helpful? Give feedback.
Answered by
srcnalt
Apr 27, 2023
Replies: 1 comment 1 reply
-
Hi @zicas2000, the chat messages are a List that is being sent to the ChatCompletion endpoint, you can simply clean the list when you end the conversation. And every new conversation inject your initial prompt as a first message before sending a new one if that is necessary. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
zicas2000
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi @zicas2000, the chat messages are a List that is being sent to the ChatCompletion endpoint, you can simply clean the list when you end the conversation. And every new conversation inject your initial prompt as a first message before sending a new one if that is necessary.