The validate_credentials method does not support extra_ceaders, which prevents custom header model plugins from being added to the market #42

Open
opened 2026-02-15 21:15:25 -05:00 by yindo · 0 comments
Owner

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.

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.
yindo added the enhancement label 2026-02-15 21:15:25 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify-plugin-sdks#42