Skip to content

I need to end conversation when I push new chat button in chat completion #49

Answered by srcnalt
zicas2000 asked this question in Q&A
Discussion options

You must be logged in to vote

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.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@zicas2000
Comment options

Answer selected by zicas2000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants