#Outdated API (or) Node Library 'openai'
36 messages · Page 1 of 1 (latest)
when I open https://api.openai.com I get this { "error": { "message": "Invalid URL (GET /)", "type": "invalid_request_error", "param": null, "code": null } } did the endpoint change?
That's not really relevant to this post, but I assume so. This is the url: https://openai.com/api/
I hope it works because google extensions keep smacking me with a permission error, it has to be the end point.
I still get this error
What about the docs: https://platform.openai.com/docs/introduction
Can you view that?
I can't seem to understand all that.
is there an end point for text-davinci-002
Oh I think I misunderstood your question.
https://api.openai.com/v1 this is the base url
I will try that
Been batteling with this error for over a day now
Permission 'https://api.openai.com/v1' is unknown or URL pattern is malformed.
same thing
this is getting really frusturating
Can you send the full error?
I think that has something to do with your Chrome extension and not the API
I've checked everything
But can you create a new post instead of drowning my question in this one?
I'm not sure if this means something but I also get this.
yes sorry
Reposting cause my question drowned
I just asked the AI through the API using text-davinci-003 what today's date was and was replied with "Today's date is February 17, 2021."
Now if I try to ask on https://chat.openai.com/chat I get the correct answer which would be "Today's date is February 23, 2023."
@sterile cove
That's a common problem of these language model.
They cannot tell you the exact time
You can add current time to the prompt and then it will tell you about it
use something like const currentTime = new Date().toISOString();
Emmmm the link cannot be opened in the browser of course. It's used for api request so you need to send authentation information to it like
curl https://api.openai.com/v1/models
-H 'Authorization: Bearer YOUR_API_KEY'
-H 'OpenAI-Organization: org-kgLxW0r1SMRN6DQ1DtHkUg91'
but if you want to do sth like using text completion through the api you can simply do this with nodejs
https://platform.openai.com/docs/api-reference/completions view here
An API for accessing new AI models developed by OpenAI
I made a suggestion for this as well (#1078122386077007883). It's gonna have a lot of false information when being outdated for years.
can you dumb that down please also im on windows
It's limited since it's knowledge is cut by 2021
please wait for a while, I'll send you a tutorial later through DM