calling the chat/conversation API endpoint with model = gpt-4, and the prompt “who are you and which version?” it replies with “I am an AI Assistant powered by OpenAI, and I am based on the GPT-3 model.”, if I display the reply from the API server, I get “model”:“gpt-4-0314”.
Is that logic?
GPT-4 doesn’t have knowledge that it’s GPT-4. You can try giving it a task that earlier models couldn’t do and check if it’s able to answer, instead.
it might not have that knowledge. but when i specify either gpt-4 or gpt-4-0314 as the chosen model and ask it to list the models available, it clearly states gpt-3 is the latest. this is an issue.
If it has no knowledge (cut off somewhere in 2021), it can’t list that model - it simply does not exist in GPTs universe yet ![]()
The available models should be retrieved through the API endpoint (which will not return GPT 4 unless you passed the waiting list, I believe), not by asking GPT.
Makes sense to me.
you’re quite right… querying the endpoint completely slipped my mind. for anyone else concerned, run this command on your terminal or command line:
curl https://api.openai.com/v1/chat/completions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $OPENAI_API_KEY" \
-d '{
"model": "gpt-4",
"messages": [{"role": "user", "content": "Say this is a test!"}],
"temperature": 0.7
}'
…then watch as the response (as of the time of this post) should reflect the model listed below:
{"id":"chatcmpl-idnumber","object":"chat.completion","created":date,"model":"gpt-4-0314","usage":{"prompt_tokens":13,"completion_tokens":5,"total_tokens":18},"choices":[{"message":{"role":"assistant","content":"This is a test!"},"finish_reason":"stop","index":0}]}