Self Checks
Dify version
1.14.1
Cloud or Self Hosted
Cloud
Steps to reproduce
- Add Perplexity Sonar models using OpenAI-API-compatible provider
- Delete or modify credentials
- Try reopening credential configuration
- Reinstall provider
- 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.

Self Checks
Dify version
1.14.1
Cloud or Self Hosted
Cloud
Steps to reproduce
✔️ 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.