Chat does not know previous asked?

Hello

i have an ace editor with ai chat window

it works well
but it does not know previous asked
like in chat gpt

can you point me to examples if possible

luberth

ldijkman.github.io/Ace_Seventh_Heaven/The_AfterWorld.htm

You just have to keep a running list of all responses and questions, and send them as shown here:

https://platform.openai.com/docs/guides/text-generation/chat-completions-api

So a long conversation would be a bunch of user, assistant, user, assistant, etc back and forth in the api but you have to send the ENTIRE history every time you send a new request.

1 Like

thanks for your answer

so when you ask a question
from something sent before

you have to ask the question
with something sent before

1 Like