Build your own AI assistant in 10 lines of code - Python

I appreciate your proposed 10 lines solution here. I initially came to this thread from the discussion about how to keep a session with gpt-3.5-turbo api and for the sake of relevance I’ll continue the discussion in that topic.

Regarding this

In the web UI obviously we can recall a conversation session and only add new prompts to already existing context. This is already achieved with gpt-3.5-turbo in the context of ChatGPT. If we could get that feature through the API for gpt-3.5-turbo, we could avoid resending the previous messages with every prompt.

2 Likes