mirror of
https://github.com/langgenius/dify-official-plugins.git
synced 2026-07-21 17:45:23 -04:00
Anthropic Plugin not available #753
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 @ixchange-me on GitHub (Oct 26, 2025).
Self Checks
Dify version
1.9.2
Cloud or Self Hosted
Cloud
Steps to reproduce
I am trying to install the Anthropic plugin. On activation, I only get the following error message:
req_id: cca3914d27 PluginInvokeError: {"args":{},"error_type":"TypeError","message":"AnthropicLargeLanguageModel.validate_credentials() missing 1 required positional argument: 'self'"}
I tried many times, but to no avail. OpenAI plugin works as expected.
✔️ Expected Behavior
I expected the Anthropic plugin to be installed and working properly
❌ Actual Behavior
Unable to configure Anthropic plugin.
@dosubot[bot] commented on GitHub (Oct 26, 2025):
Hi @ixchange-me! I'm Dosu and I’m helping the dify team.
This error happens because the Anthropic plugin's
validate_credentialsmethod is being called on the class rather than an instance, which causes the missingselfTypeError. The plugin code itself is correct; the issue is in how Dify core/plugin loader instantiates the Anthropic model—unlike the OpenAI plugin, which works because its loader logic is correct for instance methods.A fix would require changes in the Dify core/plugin loader to ensure the Anthropic model is instantiated before calling
validate_credentials, just like the OpenAI plugin. There are similar reports for other plugins (like Tongyi and Siliconflow), confirming this is a systemic bug in plugin credential validation logic, not a configuration issue or something you can fix from the UI or environment [example issue].For now, there is no official workaround for cloud users. If you were self-hosting, you could patch the loader logic or roll back to a previous plugin version if one worked, but on cloud this isn't possible. The best next step is to monitor for updates or fixes in future Dify releases.
To reply, just mention @dosu.
How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other

@ixchange-me commented on GitHub (Oct 26, 2025):
@dosu hi! Thanks for the swift reply. Would using an older version of the plugin do the trick?
@dosubot[bot] commented on GitHub (Oct 26, 2025):
Using an older version of the Anthropic plugin won't resolve this error on Dify Cloud. The problem is in how the Dify core/plugin loader calls the plugin's validate_credentials method—it calls it on the class instead of an instance, which triggers the missing self TypeError. Cloud users can't select or downgrade plugin versions, so this workaround isn't possible. Even if you could, the error would likely persist because the root cause is in the loader logic, not the plugin code itself. The OpenAI plugin works because its loader logic correctly handles instance methods, but Anthropic's does not. The best option is to monitor for updates or fixes in future Dify releases.
To reply, just mention @dosu.
How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other

@dosubot[bot] commented on GitHub (Oct 26, 2025):
This error is caused by a bug in the Anthropic plugin's credential validation method: it's defined as an instance method but invoked as if it were static, leading to the missing
selfargument TypeError. The OpenAI plugin works because its credential validation method matches the expected invocation pattern.A recent fix was merged to the dify-official-plugins repository that adds the missing
_validate_credentialsmethod to comply with the required interface, resolving installation failures for plugins like Anthropic on Dify Cloud. This update is included in plugin provider version 0.2.3 and specifically addresses the internal server error and credential validation issues you encountered. You can see details of the fix here.If you're still on Dify 1.9.2 Cloud, check if the Anthropic plugin has been updated to version 0.2.3 or later. If not, updating the plugin should resolve the issue.
To reply, just mention @dosu.
How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other

@hjlarry commented on GitHub (Oct 28, 2025):
It has fixed now
@dosubot[bot] commented on GitHub (Nov 13, 2025):
Hi, @ixchange-me. I'm Dosu, and I'm helping the dify-official-plugins team manage their backlog and am marking this issue as stale.
Issue Summary:
Next Steps:
Thank you for your understanding and contribution!