How to keep session with gpt-3.5-turbo api?

Hi @ylc

Welcome to the OpenAI community.

You’ll have to implement session on your end by passing the existing conversation to the chat completion end point.

How you store conversation on your end depends on what’s convenient for you.

Here’s a very basic implementation

1 Like