A developer is using the OCI Generative AI service API and receives a '400 Bad Request' with error 'Model not found'. What is the most likely cause?
The error directly states 'Model not found'.
Why this answer
The '400 Bad Request' with 'Model not found' error indicates that the model ID provided in the API request does not match any available model in the OCI Generative AI service. This is most commonly caused by a typo, incorrect model name, or referencing a model that has been deprecated or removed from the service catalog.
Exam trap
The trap here is that candidates often confuse HTTP status codes and error messages, assuming any 4xx error is due to authentication or region issues, when in fact the specific 'Model not found' message directly points to an invalid model identifier.
How to eliminate wrong answers
Option B is wrong because a lack of authentication would result in a '401 Unauthorized' or '403 Forbidden' error, not a '400 Bad Request' with 'Model not found'. Option C is wrong because exceeding the maximum token limit would produce a '400 Bad Request' with a different error message, such as 'Input too long' or 'Token limit exceeded', not 'Model not found'. Option D is wrong because an incorrect endpoint region would typically cause a connection timeout, DNS resolution failure, or a '404 Not Found' error, not a '400 Bad Request' with a model-specific error.