[PR #161] [MERGED] fix[0.4.0]: add response body to CredentialsValidateFailedError exceptions to aid in error diagnosis, especially useful for locally provided models #192

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

📋 Pull Request Information

Original PR: https://github.com/langgenius/dify-plugin-sdks/pull/161
Author: @belugaliu
Created: 6/22/2025
Status: Merged
Merged: 6/27/2025
Merged by: @Yeuoly

Base: mainHead: fix/add-exception-for-llm-validate


📝 Commits (2)

  • 3746227 fix: Add response body to CredentialsValidateFailedError exceptions to aid in error diagnosis, especially useful for locally provided models
  • 7bc4028 fix: linter

📊 Changes

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

View changed files

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

📄 Description

add response body to CredentialsValidateFailedError exceptions to aid in error diagnosis, especially useful for Third-party model service deployment.


🔄 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/161 **Author:** [@belugaliu](https://github.com/belugaliu) **Created:** 6/22/2025 **Status:** ✅ Merged **Merged:** 6/27/2025 **Merged by:** [@Yeuoly](https://github.com/Yeuoly) **Base:** `main` ← **Head:** `fix/add-exception-for-llm-validate` --- ### 📝 Commits (2) - [`3746227`](https://github.com/langgenius/dify-plugin-sdks/commit/3746227e6e1e7023d75fbf455c1286e0fa0785ff) fix: Add response body to CredentialsValidateFailedError exceptions to aid in error diagnosis, especially useful for locally provided models - [`7bc4028`](https://github.com/langgenius/dify-plugin-sdks/commit/7bc40289f5ddc53e16e8ee4010fc15ce02a2ce9d) fix: linter ### 📊 Changes **1 file changed** (+14 additions, -6 deletions) <details> <summary>View changed files</summary> 📝 `python/dify_plugin/interfaces/model/openai_compatible/llm.py` (+14 -6) </details> ### 📄 Description add response body to CredentialsValidateFailedError exceptions to aid in error diagnosis, especially useful for Third-party model service deployment. --- <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:09 -05:00
yindo closed this issue 2026-02-15 21:16:09 -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#192