#How to chat in same thread while using API? seems ecah request will create new thread

14 messages · Page 1 of 1 (latest)

twin barn
full valley
twin barn
full valley
#

@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

  1. Explain that you are in a chat, because the AI is not made for chatting
  2. Save all the previous messages and give them as a prompt also
twin barn
#

Hi @full valley , oh, I got it. so if I use chat AI API, there should be option for this, right?

full valley
#

Only the website

twin barn
full valley
#

And some api wrappers but no official api

twin barn
full valley
twin barn