#Outdated API (or) Node Library 'openai'

36 messages · Page 1 of 1 (latest)

crimson wing
#

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."

winged swallow
crimson wing
winged swallow
#

I still get this error

crimson wing
#

Can you view that?

winged swallow
#

I can't seem to understand all that.

winged swallow
crimson wing
#

Oh I think I misunderstood your question.
https://api.openai.com/v1 this is the base url

winged swallow
#

I will try that

#

Been batteling with this error for over a day now

#

same thing

#

this is getting really frusturating

crimson wing
#

Can you send the full error?

winged swallow
#

yes

#

1 seconf

winged swallow
#

thats all it says

crimson wing
#

I think that has something to do with your Chrome extension and not the API

winged swallow
#

I've checked everything

crimson wing
#

But can you create a new post instead of drowning my question in this one?

winged swallow
#

I'm not sure if this means something but I also get this.

crimson wing
#

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."

crimson wing
#

@sterile cove

sterile cove
#

They cannot tell you the exact time

#

You can add current time to the prompt and then it will tell you about itavocadochair

#

use something like const currentTime = new Date().toISOString();

sterile cove
# winged swallow I will try that

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

crimson wing
winged swallow
sterile cove
sterile cove