Help with gpt-3 API

Hello, I’m following this tutorial but I can’t seem to get it to initialize.

When I use the sample code from the gpt-3 playground I can get it to initialize and I get an error message after using a button to input data.


Here is what my step 1 looks like

Error Code after pressing sumbit
image
I’m using one label and a pop up form

For the input on json body in the api call, use formatted as text with a comma delimiter, then structure your json.

{
  “myfield”: “this texts value”
}

Delimiter is a ,

In case you’d like to use a plugin for OpenAI GPT-3 🧠 Artificial Intelligence by OpenAI GPT-3 - New Plugin from Zeroqode

It seems like you’re using concatenated code inside a JSON string. Something like:

“prompt”: “{JSON Code}”

For this to work, you need to escape the quotes, so instead of writing “key”: “value”, do it like this: \“key\”: \“value\”

1 Like