[PR #279] fix(sdk): pass extra_headers to validate_credentials in OAICompatLarg… #282

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

📋 Pull Request Information

Original PR: https://github.com/langgenius/dify-plugin-sdks/pull/279
Author: @TeemoSun
Created: 1/8/2026
Status: 🔄 Open

Base: mainHead: fix/validate-credentials-extra-headers


📝 Commits (1)

  • 489540e fix(sdk): pass extra_headers to validate_credentials in OAICompatLargeLanguageModel

📊 Changes

1 file changed (+6 additions, -0 deletions)

View changed files

📝 python/dify_plugin/interfaces/model/openai_compatible/llm.py (+6 -0)

📄 Description

…eLanguageModel

Ensure extra_headers are accepted by validate_credentials to support custom Host and providers requiring special headers.

Pull Request Checklist

Thank you for your contribution! Before submitting your PR, please make sure you have completed the following checks:

Compatibility Check

  • I have checked whether this change affects the backward compatibility of the plugin declared in README.md
  • I have checked whether this change affects the forward compatibility of the plugin declared in README.md
  • If this change introduces a breaking change, I have discussed it with the project maintainer and specified the release version in the README.md
  • I have described the compatibility impact and the corresponding version number in the PR description
  • I have checked whether the plugin version is updated in the README.md

Available Checks

  • Code has passed local tests
  • Relevant documentation has been updated (if necessary)

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/langgenius/dify-plugin-sdks/pull/279 **Author:** [@TeemoSun](https://github.com/TeemoSun) **Created:** 1/8/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `fix/validate-credentials-extra-headers` --- ### 📝 Commits (1) - [`489540e`](https://github.com/langgenius/dify-plugin-sdks/commit/489540ec5e234426b848100814d1c25c74ed1cc4) fix(sdk): pass extra_headers to validate_credentials in OAICompatLargeLanguageModel ### 📊 Changes **1 file changed** (+6 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `python/dify_plugin/interfaces/model/openai_compatible/llm.py` (+6 -0) </details> ### 📄 Description …eLanguageModel Ensure extra_headers are accepted by validate_credentials to support custom Host and providers requiring special headers. # Pull Request Checklist Thank you for your contribution! Before submitting your PR, please make sure you have completed the following checks: ## Compatibility Check - [x] I have checked whether this change affects the **backward compatibility** of the plugin declared in `README.md` - [x] I have checked whether this change affects the **forward compatibility** of the plugin declared in `README.md` - [ ] If this change introduces a breaking change, I have discussed it with the project maintainer and specified the release version in the `README.md` - [x] I have described the compatibility impact and the corresponding version number in the PR description - [ ] I have checked whether the plugin version is updated in the `README.md` ## Available Checks - [x] Code has passed local tests - [x] Relevant documentation has been updated (if necessary) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-15 21:16:34 -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#282