Hi,
This is a strange issue!
I can't call the list part og a ChatGPT Assistant Chat?
All calls to create a thread etc is working fine.
I have made a 'to-the-bone' example to illustrate the problem.
If the file was started in Kodular, it can't be used in App Inventor.
It looks like you have simply received response content that you didn't expect, which is an error message. The error message has been triggered because your request excludes the parameter "role".
The file was created manually in App Inventor to test if App Inventor was giving the same wrong response by the same request.
I can repeatedly test externally with a curl tool and get the correct response from OpenIA, and repeatedly do the same in both App Inventor and Kodular which is giving the same wrong response.
To add a message to the OpenIA thread I'm using this block, and that is working and returning correct response.
The problem could be that OpenAI is expecting NO data and only a Post with Headers. The working version in curl does not include '-d', and if I include an empty -d '{}' i'm getting the exact same error as in App Inventor.
Is there a way in App Inventor to make a HTTP post with an empty Data part?
I don't know I am wondering if we could get App Inventor to run the curl script, since curl can be embedded in JavaScript and we can run JavaScript. That is the kind of challenge that would I think motivate my colleague Tim.
Please post your working curl commands..
From your first post I only can see the headers, but not the data part ..
Or is this a Get request?
Also provide the corresponding documentation