Getting Openai error in setting up conversational chatbot

Hello guys
So I’m unable to successfully setup my conversational chatbot where the AI will remember the previous chat.
I have initalized the call in the api connector.
I already setup a simple chatbot and it works perfectly
The issue arises when i try to setup a workflow where the AIA should remeber the previous conversation;
attached are some images buttressing my point;


Screenshot 2024-04-29 022444

It seems that you are not loading a Json format to the request? Could you show me the request code.


Screenshot 2024-04-29 022444

what request code?

are you using a plugin ?

nah , api connector


Try putting:

model
prompt
max_tokens
temperature

in the “Parameters” section, so do “Add parameter” for each

Messages needs to be in an array format, and you are inserting a string.

   model=MODEL,
   messages=[
       {"role": "system", "content": "You are a helpful assistant."},
       {"role": "user", "content": "Knock knock."},
       {"role": "assistant", "content": "Who's there?"},
       {"role": "user", "content": "Orange."},
   ],
   temperature=0,

you may want to use this instead


Or

still getting an error

The same error?

yes
have you tried setting up a conversational chatbot from your end?
i think the issue seems to be from bubble

It’s working on my end
Please check bubble manual

the issue is with how you set up the message parameter. I hope you already figured that out :smiley: