Hi, I am making a chatbot with Da Vinci API and it is working. I also tested it. However, I am seeing that it is no way as powerful as ChatGPT. For starters,
- The answers are not as good and relevant as ChatGPT
- It does not have the memory as ChatGPT.
I wonder when do we get ChatGPT API or am I doing something wrong.
Here is my code t call the Da Vinci API:
def generate_response(prompt):
model = "text-davinci-002"
completions = openai.Completion.create(
engine=model,
prompt=prompt,
max_tokens=1024,
n=1,
stop=None,
temperature=0.5,
)
message = completions.choices[0].text
return message
I also wonder what the attributes are in the openai.Completion.create function. I could not find what they signify.