Open AI assistant not displaying the messages

Hi,

I followed the detail instructions of @ZubairLK on creating an API call to OpenAI, but when I run the program I get this error message. I have checked and rechecked and even redone many times, but there’s no error in the JSON body of the ‘Create Message’ call.
Screenshot1 2024-04-10 145651
Screenshot2 2024-04-10 145651

Would be grateful if someone can help me fix the potential mistake happening.

Btw, I tried this using @NoCodeAdvantage 's API and it gives me the same result. I have another API call on a different page in the same app and that works flawlessly, only this one. I copied that page and simply changed the assistant ID and the relevant page call and even when I just type in a simple “Hi” I get the same error as above.
Btw, I also added “:formatted as JSON-safe” as a condition to the Multiline input and same error message. Can someone kindly help.

Hello @harithinks!

FYI the :formatted as JSON safe automatically adds quotation marks around the text… so my first hypothesis is that you should try removing these from your call. LMK if that doesn’t work!

1 Like

Thank you @NoCodeAdvantage I tried the ‘formatted as JSON’ only because I couldn’t fix. And now the one page where your API was working well for me, is giving this same error message since yesterday. I’m going crazy because absolutely nothing has changed since last week, when it was working and yesterday. I didn’t touch the workflow or even change the input I’m entering, I literally am copying and pasting from a word doc, that’s what I was doing before as well and it used to work.
Like literally for weeks I’ve been using the exact same word doc as input because I’m just trying to get a prototype done.
Your videos are a gems in helping me get this far, really appreciate them. Just this one thing is tripping me up.

This topic was automatically closed after 70 days. New replies are no longer allowed.