#Completely random gpt-3 messages, don't know where they come from

2 messages · Page 1 of 1 (latest)

unkempt cape
#

I have been working on a discord bot project in python for a few days now. My code to prompt the bot is the following:

if p_message.startswith("cgpt"):
        completion = openai.Completion.create(engine="davinci", prompt=p_message[5:], temperature = 0)
        return completion.choices[0].text

plus all of the api key stuff.

Anyways, what this returns is very interesting: (see image).
Of course for this I used a simplified version of this code to just work in a terminal, but as you can see, the responses remained very fragmented and informal.

Does anyone know a way to fix this?

surreal pelican
#

change engine="davinci" to engine="text-davinci-003"