#How to chat in same thread while using API? seems ecah request will create new thread
14 messages · Page 1 of 1 (latest)
Just save the prompt and add the answers after
Hi @full valley , thanks for ur reply, any API document about this?
No doc for that
@twin barn Because the api is not for a chat AI but only for text completion. You'll need to explain that you are in a chat and then add the previous messages, from the AI and the user(s) as a context. Here is a prompt example:
This is a chat with an AI called John: User: Hello John: Hi, how may I help you. User: I don't need any help, just wanna chat. John:
So you need to
- Explain that you are in a chat, because the AI is not made for chatting
- Save all the previous messages and give them as a prompt also
Hi @full valley , oh, I got it. so if I use chat AI API, there should be option for this, right?
There is no API for chat
Only the website

And some api wrappers but no official api
OK, thank you very much, bro
But I personally used the text davinci api even before the release of chat gpt, and that has always worked.
yeah, I am also using this one, but feel not best way to prompt one by one in 1 chat session
