#API/script not working in Webflow.
32 messages · Page 1 of 1 (latest)
It looks like webflow is not sending the key over properly in the request
I have entered a valid API_KEY. I just didn't show it in the script that I sent a screenshot of
yeah i dont understand why
Im not too sure either because that looks right to me the way you’re sending Authorization header, double check the format
Oh acgually
This looks like an old endpoint
There’s no “engines” anymore
oh okay
https://api.openai.com/v1/completions is the endpoint
You pass text-davinci-003 in a model param
but will that chose the right model then? davinci-003?
^ Yeah, just gotta add a new param in the body named model for it
Yeah
wow
it worked. But something is weird.
I get message displayed back from GPT as a response to my message rather then creating an email for me with the message that I gave it.
My goal is to give it text-information, like "the delivery is late. It will arrive on sunday". Then let GPT take that information and turn it into a professional looking email.
Like this:
So I edited the script like this
which made it work