My chatbot (API) doesn’t take into account previous messages. I have tried several other texts but nothing works.
My code:
{
“model”: “gpt-3.5-turbo”,
“messages”: [{“role”: “system”, “content”: “You are a helpful helper who follows standards.”}],
“messages”: [{“role”: “user”, “content”: “Let’s count to 10?”}],
“messages”: [{“role”: “assistant”, “content”: “Ok!”}],
“messages”: [{“role”: “user”, “content”: “I start! 1.”}],
“messages”: [{“role”: “assistant”, “content”: “2.”}],
“messages”: [{“role”: “user”, “content”: “3.”}]
}
Response (content): { "message": { "role": "assistant", "content": "Sorry, can you please provide more context or information about what you are referring to?" }, "finish_reason": "stop", "index": 0 }
The API literally does not take into account any previous message, no matter the context. But, in the standard CHAT-GPT (playground) it works.