#GPT-3 not up to date

29 messages · Page 1 of 1 (latest)

stiff comet
#

Good Morning,

I have a problem with a project i made. Its basically Chat GPT but u give voice as an input and it will also give voice as output. But i asked the gpt whats todays date and it gives random dates in 2020. Every time i run it it says dates which is in the year 2020. This is my code :

import openai
import pyttsx3
import speech_recognition as sr
from api_key import API_KEY


openai.api_key = API_KEY

engine = pyttsx3.init()

r = sr.Recognizer()
mic = sr.Microphone(device_index=1)
voice = engine.getProperty('voices')
engine.setProperty('voice', voice[1].id)


conversation = ""
user_name = "ANOYMOUS"
bot_name = "GPT-3"

while True:
    with mic as source:
        print("\nlistening...")
        r.adjust_for_ambient_noise(source, duration=0.2)
        audio = r.listen(source)
    print("no longer listening.\n")

    try:
        user_input = r.recognize_google(audio)
    except:
        continue

    prompt = user_name + ": " + user_input + "\n" + bot_name+ ": "

    conversation += prompt 

    response = openai.Completion.create(engine='text-davinci-003', prompt=conversation, max_tokens=100)
    response_str = response["choices"][0]["text"].replace("\n", "")
    response_str = response_str.split(user_name + ": ", 1)[0].split(bot_name + ": ", 1)[0]

    conversation += response_str + "\n"
    print(response_str)

    engine.say(response_str)
    engine.runAndWait()

I have attached the out put in this message.

agile patio
#

I think it should be model='text-davinci-003 and not engine

#

also GPT 3 doesn't know the date, you need to provide it in the prompt

stiff comet
#

and not the latest infos

#

Oh wai

#

it works

stiff comet
#

thx so much it really helped

agile patio
#

nice, np

deft orchid
#

That's awesome!! i have one very similar but it listens for a trigger word to activate

#

i would like to port it to android and ios

stiff comet
agile patio
#

that's not something you can fix without giving it the new info yourself

#

it was only trained up to like 2021

stiff comet
#

oh

#

thx

#

oh wait

stiff comet
#

chat gpt is more likely to give the latest information

agile patio
#

you can't

deft orchid
#

he's right, but some people have figured out how to get it on the internet through telegram (maybe others) from what ive seen

agile patio
#

right, there are reverse engineered libraries but we're not allowed to talk about them here

stiff comet
#

ok.

#

thx

deft orchid
#

🤐

stiff comet