dify - 💡(How to fix) Fix OpenAI-API-compatible provider keeps broken Perplexity Sonar credentials and validation fails [3 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
langgenius/dify#36386Fetched 2026-05-20 04:00:20
View on GitHub
Comments
3
Participants
2
Timeline
8
Reactions
1
Timeline (top)
commented ×3mentioned ×2subscribed ×2labeled ×1

Root Cause

Deleted credentials cannot be removed because Dify says they are still in use, but opening the credential configuration shows: "Credential with id xxx not found"

RAW_BUFFERClick to expand / collapse

Self Checks

  • I have read the Contributing Guide and Language Policy.
  • This is only for bug report, if you would like to ask a question, please head to Discussions.
  • I have searched for existing issues search for existing issues, including closed ones.
  • I confirm that I am using English to submit this report, otherwise it will be closed.
  • 【中文用户 & Non English User】请使用英语提交,否则会被关闭 :)
  • Please do not modify this template :) and fill in all the required fields.

Dify version

1.14.1

Cloud or Self Hosted

Cloud

Steps to reproduce

  1. Add Perplexity Sonar models using OpenAI-API-compatible provider
  2. Delete or modify credentials
  3. Try reopening credential configuration
  4. Reinstall provider
  5. Try adding a new Sonar model

✔️ Expected Behavior

Credentials should delete correctly and deleted models should not reappear after reinstalling the provider.

Validation for newly added Sonar models should succeed with valid max token settings.

❌ Actual Behavior

Using the OpenAI-API-compatible provider with Perplexity Sonar models causes broken credential references.

Deleted credentials cannot be removed because Dify says they are still in use, but opening the credential configuration shows: "Credential with id xxx not found"

Additionally, reinstalling the provider causes deleted Sonar models to reappear automatically.

Trying to add a new Sonar model with a new credential also fails validation incorrectly with: "max_tokens must be at least 16 for sonar"

even though max tokens is set properly.

This issue may indicate orphaned credential references remaining in the workspace state after model/provider deletion.

<img width="1282" height="946" alt="Image" src="https://github.com/user-attachments/assets/e1dd1f1f-7bdb-4fff-8bab-fa171ec60541" /> <img width="1267" height="910" alt="Image" src="https://github.com/user-attachments/assets/d1443dbb-1496-467b-a3a0-481a3e410402" /> <img width="1272" height="966" alt="Image" src="https://github.com/user-attachments/assets/e914c50a-6678-46eb-a6cf-517ba58bf08e" />

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING