mirror of
https://github.com/langgenius/dify-plugin-sdks.git
synced 2026-07-22 02:15:22 -04:00
The validate_credentials method does not support extra_ceaders, which prevents custom header model plugins from being added to the market #42
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 @lijia-bb on GitHub (Jun 10, 2025).
The validate_credentials method of the current OAiCompatLargeLanguageModel does not support extra_ceaders and only adds Content Type and Authorization to the request header.
The self. _generation method already supports merging credentials ["extra_ceaders"] into the request header.
Actual scenario encountered: Some third-party LLM services require that the verification interface must include additional custom headers (such as X-Api Key, User Agent, etc.), otherwise the verification will fail and the model plugin cannot be verified through the Dify plugin market.