mirror of
https://github.com/langgenius/dify-official-plugins.git
synced 2026-07-21 17:45:23 -04:00
Novita AI Image Generator fails authenticating #754
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 @jmoratat on GitHub (Oct 27, 2025).
Self Checks
Dify version
Dify Cloud & Dify Self-Hosted (1.9.2)
Plugin version
0.0.3
Cloud or Self Hosted
Cloud
Steps to reproduce
Install the Novita AI Plugin (langgenius/novitaai) and click on "API Key Authorization Configuration". Then add the Key (obtained at NovitaAI page) and click "Save".
✔️ Error log
{'code': -500, 'message': '{"message":"{\\"args\\": {},\\"error_type\\":\\"ToolProviderCredentialValidationError\\",\\"message\\":\\"\'NovitaAiTxt2ImgTool\' object has no attribute \'VariableKey\'\\"}","error_type":"PluginInvokeError","args":null}', 'data': None}@dosubot[bot] commented on GitHub (Oct 27, 2025):
The error occurs because the Novita AI Image Generator plugin's
NovitaAiTxt2ImgToolclass is missing the requiredVariableKeyattribute, which is needed for credential validation in Dify plugins. This attribute typically maps environment variables or secrets (like API keys) to the tool, and its absence leads to theToolProviderCredentialValidationErroryou're seeing.To resolve this, the plugin code should be updated to define the
VariableKeyattribute, following the pattern used in other working plugins. For example, you can refer to the implementation in the JanusTool class, which properly declares and usesVariableKeyfor credential handling and image saving (see example).Until the plugin is updated, authentication will continue to fail at the API Key configuration step. If you maintain the plugin, adding the missing attribute should resolve the issue. If not, you may want to notify the plugin maintainer about this missing requirement.
To reply, just mention @dosu.
How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other
