mirror of
https://github.com/langgenius/dify-official-plugins.git
synced 2026-07-22 01:55:27 -04:00
Anthropic API Key can not be validated #424
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Yunrui11 on GitHub (Jul 5, 2025).
Self Checks
Dify version
web version
Cloud or Self Hosted
Cloud
Steps to reproduce
I downloaded the Anthropic plugin from the marketplace and tried to configure the API. However, the API couldn't be configured because I kept getting a "claude-3-opus-20240229 model not found" error. I googled it and realized that model is currently in a deprecated state. I wanted to unselect that model, but I am not allowed to select any model until I configure the Anthropic API for some reason. I think this is a system glitch for the website version.
✔️ Expected Behavior
I expected to be able to connect to the Anthropic API.
❌ Actual Behavior
Error code: 404 - {'type': 'error', 'error': {'type': 'not_found_error', 'message': 'model: claude-3-opus-20240229'}}
@dosubot[bot] commented on GitHub (Jul 5, 2025):
Hi @Yunrui11! I'm Dosu and I’m helping the dify team.
This error happens because Dify dynamically fetches the list of available Anthropic models from the plugin/provider at runtime. If the default model (in this case,
claude-3-opus-20240229) is deprecated or removed by Anthropic, but is still set as the default in Dify's configuration, the API key validation process tries to validate against a model that no longer exists—resulting in the "model not found" error. The UI then blocks you from changing the model until the API is validated, creating a catch-22 situation.This is a known limitation and an area of active development. There is a recent pull request to improve model selection and address related issues, so improvements are likely coming soon (see PR).
Currently, there isn't a documented workaround from the user side if the default model is deprecated and you can't proceed to select another model. The best options are to wait for the backend/provider to update the default model list, or for the Dify team to roll out the model selection improvements. This issue is not unique to Cloud and could also affect self-hosted instances if the plugin/provider returns deprecated models as defaults.
If you need to proceed urgently, you could try removing and re-adding the Anthropic provider (if possible), or check if the plugin has been updated in the marketplace. Otherwise, keep an eye out for updates to the Anthropic plugin or Dify platform that address this model selection flow.
To reply, just mention @dosu.
How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other

@hjlarry commented on GitHub (Jul 5, 2025):
can you try this pkg https://github.com/langgenius/dify-official-plugins/issues/1201#issuecomment-3029934158
I fixed it but I havn't got a api-key for test, if it works I will submit a new PR