
anthropic
#10493
model_selection_error
The selected model 'claude-3-5-sonnet' is not available or recognized. Please verify the model name and try again.
This error has been identified and solved.
Reason
The 404 Not Found
error when interacting with the Anthropic API, specifically for the model claude-3-5-sonnet
, indicates that the requested resource (in this case, the model) could not be found on the server. Here are some possible reasons:
Model Deprecation: The model you are trying to access might have been deprecated or removed from the available models list.
Incorrect Endpoint or URL: The URL or endpoint you are using to make the API request might be incorrect or no longer valid.
Resource Not Available: The server does not have the specified model available, which could be due to various reasons including maintenance or removal of the model.
Solution
To resolve the 404 Not Found
error when trying to access the claude-3-5-sonnet
model in the Anthropic API, you should take the following steps:
Ensure you are using the correct and up-to-date API endpoint and model name. Here are some key actions to consider:
Check the API Documentation: Verify the model name and endpoint in the Anthropic API documentation to ensure they are correct and not deprecated.
Verify Model Availability: Confirm that the
claude-3-5-sonnet
model is still available and not removed from the service.Contact Support: If the issue persists, include the
request-id
from the API response and contact Anthropic support for further assistance.
Suggested Links
https://www.restack.io/p/anthropic-answer-api-curl-cat-ai
https://community.postman.com/t/api-call-request-404-not-found/55565
https://support.anthropic.com/en/articles/10366432-i-m-getting-an-api-connection-error-how-can-i-fix-it
https://community.make.com/t/integration-with-anthropic-claude/54102
https://codingmall.com/knowledge-base/25-global/1533-how-do-i-handle-errors-and-exceptions-when-using-the-anthropic-python-sdk
https://www.restack.io/p/anthropic-answer-http-400-bad-request-cat-ai
https://www.googlecloudcommunity.com/gc/AI-ML/Can-t-Enable-any-Anthropic-Models/m-p/836124
https://www.googlecloudcommunity.com/gc/AI-ML/Not-able-to-use-anthropic-claude-3-5-model-API/m-p/830352
https://github.com/continuedev/continue/issues/1185