ive been trying to make a desktop application using the api , and i'm running into a "Error: 403 Client Error: Forbidden for url: https://api.openai.com/v1/engines/davinci/jobs"
i've switched at the keys twice but i also have a "too many requests in 1 hour" in my browser (because ive been using it to help me write the code for the bot) if anyone can help me fix this, it would be appreciated because i hate opening my browser to use it , and it nice just to have a desktop application which i can pull up and help me with daily things
#Chatgpt desktop applicaiton
39 messages · Page 1 of 1 (latest)
Could you show me the way of authorization in your code
403 means you failed to provide the proper header to authorize
send the message to OpenAI's GPT-3 API
response = requests.post(
"https://api.openai.com/v1/engines/davinci/jobs",
headers={
"Content-Type": "application/json",
"Authorization": "Bearer YOUR-API-KEY"
you miss one
org name
i don’t mean that
your open ai account
is already an org see here let me send you
An API for accessing new AI models developed by OpenAI
here you can get the org code here
got it
'OpenAI-Organization': org-xxxxxxx
with the changes made to include org im still getting 403 error
https://api.openai.com/v1/engines/davinci/jobs
Is not the right url
I'm assuming this code was generated by ChatGPT. It's great but outdated on some things. It tends to hallucinate when it doesn't know something as well.
Now there is a module you can use in python to handle the heavy lifting:
https://platform.openai.com/docs/api-reference/introduction?lang=python
An API for accessing new AI models developed by OpenAI
yes it is thanks you for the help
i was looking through the error codes section of api and it didnt even tell me why i was getting a 403
Well, in this case it was because you were at the wrong door
funny enough i got it working now , but it just tells me jokes
im getting some wacky responses
You: hi
Reina: is a name of the city of Tbilisi, Georgia. It is of Georgian origin, and its meaning is "the place of the Trinity", "the place of three".
it might not be proper
may be like this
you can view in the openai play ground
yea im doing that now
The following is a conversation with an AI assistant. The assistant is helpful, creative, clever, and very friendly.
Human: Hello, who are you?
AI: I am an AI created by OpenAI. How can I help you today?
Human: I'd like to cancel my subscription.
AI:
just let it know you are chatting
I suggest adding the bot’s reply and the message you ve sent to the prompt every time you generate an answer
so that the ai can understand the whole conversation
okay will do
im currently trying to see if i can change the color scheme in playground its killing my eyes lol
Ah there seems no settings like that……