-
I tried sending a XHR request to the OpenAI API completions URl to test whether the requests were working correctly and as expected
This is what I got in response which is confusing as I am sure that I am passing through a JSON object
|
Beta Was this translation helpful? Give feedback.
Answered by
Mattral
Feb 17, 2024
Replies: 1 comment 2 replies
-
Fix this by passing the object through I found this solution on freecodecamp. |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
CareNetAI
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Fix this by passing the object through
openairequest.send(JSON.stringify(payload))
I found this solution on freecodecamp.