Here is an example of the code that is being used followed by the error message. The code works just fine when using the “gpt-3.5-turbo” model.
CODE
{
“model”: “gpt-4”,
“messages”: [
{
“role”: “user”,
“content”: "You are an expert Answer the below question in a format. Finish your answer within 800 tokens: /n "
}
],
“temperature”: 1,
“max_tokens”: 800,
“top_p”: 1,
“frequency_penalty”: 0,
“presence_penalty”: 0
}
RESPONSE MESSAGE
Raw response for the API
Status code 404
{
“error”: {
“message”: “The model: gpt-4
does not exist”,
“type”: “invalid_request_error”,
“param”: null,
“code”: “model_not_found”
}
}