mirror of
https://github.com/langgenius/dify-plugins.git
synced 2026-07-22 10:05:47 -04:00
Make API Key optional in Dify when credentials_for_provider is marked as optionalhow to set #310
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 @XinyueDu on GitHub (Oct 12, 2025).
Issue Description
When developing a Dify plugin, I set credentials_for_provider as an optional field in the schema. However, the Dify platform still forces users to fill in an API Key before the plugin can be enabled.
Schema Config:
Dify Plugin usage:
Expected behavior
If credentials_for_provider is declared optional, the API Key input should also become optional so that the plugin can be used without being blocked.
@crazywoola commented on GitHub (Feb 3, 2026):
Hi @XinyueDu, thanks for opening this issue.
Why this is being closed
Dify issue tracking requires English-only issue title and description for consistent collaboration.
Next steps
Please open a new issue in English and include clear details so maintainers can help efficiently.
Thanks for understanding and for your support.