[PR #85] [MERGED] add a config to disable provider config validation #22299

Closed
opened 2026-02-21 20:18:39 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/langgenius/dify/pull/85
Author: @killpanda
Created: 5/17/2023
Status: Merged
Merged: 5/17/2023
Merged by: @crazywoola

Base: mainHead: validation_toggle


📝 Commits (1)

  • 2c2050d add a config to disable provider config validation

📊 Changes

2 files changed (+6 additions, -0 deletions)

View changed files

📝 api/config.py (+4 -0)
📝 api/services/provider_service.py (+2 -0)

📄 Description

some API proxy providers don't support /moderations API. It will make API Key Setting failed in console.

I add a config called DISABLE_PROVIDER_CONFIG_VALIDATION. If its value is True, it will skip the validation.

related issues: #80 #69


🔄 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/pull/85 **Author:** [@killpanda](https://github.com/killpanda) **Created:** 5/17/2023 **Status:** ✅ Merged **Merged:** 5/17/2023 **Merged by:** [@crazywoola](https://github.com/crazywoola) **Base:** `main` ← **Head:** `validation_toggle` --- ### 📝 Commits (1) - [`2c2050d`](https://github.com/langgenius/dify/commit/2c2050d55641213abcd2cfe2e37d4e4fce8d0149) add a config to disable provider config validation ### 📊 Changes **2 files changed** (+6 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `api/config.py` (+4 -0) 📝 `api/services/provider_service.py` (+2 -0) </details> ### 📄 Description some API proxy providers don't support `/moderations` API. It will make API Key Setting failed in console. I add a config called `DISABLE_PROVIDER_CONFIG_VALIDATION`. If its value is `True`, it will skip the validation. related issues: #80 #69 --- <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-21 20:18:39 -05:00
yindo closed this issue 2026-02-21 20:18:39 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#22299