Hi
see the copy pasted conversation with https://chat.openai.com/chat :
come ti chiami?
Non ho un nome, sono solo un modello di linguaggio addestrato da OpenAI. Sono qui per rispondere alle tue domande e fornirti informazioni generali su una vasta gamma di argomenti. Se hai altre domande, non esitare a chiedere.
what is your name?
As I mentioned before, I am a large language model trained by OpenAI and do not have a name. I am designed to assist with a wide range of tasks, including answering questions and providing information on a variety of topics. I am here to help, so if you have any further questions, please feel free to ask.
Now, if I use the trivial script:
#!/bin/bash
# !/bin/bash
API_KEY='MY_OPENAI_APY_KEY'
curl https://api.openai.com/v1/completions \
-H 'Content-Type: application/json' \
-H "Authorization: Bearer $API_KEY" \
-d '{
"model": "text-davinci-002",
"prompt": "what is your name?"
}'
{"id":"cmpl-6JXXXXXXXXX","object":"text_completion","created":1670105179,"model":"text-davinci-002","choices":[{"text":"\n\nMy name is Sarah.","index":0,"logprobs":null,"finish_reason":"stop"}],"usage":{"prompt_tokens":5,"completion_tokens":7,"total_tokens":12}}
My name is Sarah?
That’s insane. I mean that the ChatGPT web chat is great but when I call it via API I got very DIFFERENT (inconsistent/weird) answers. why?
I’m wrong selecting the model name or other parameters? I’m confused.