add credential-removed to the model list api

This commit is contained in:
hjlarry
2025-08-19 15:22:14 +08:00
parent a7532fdc83
commit 592b2f59d5
4 changed files with 6 additions and 2 deletions

View File

@ -726,7 +726,7 @@ class ProviderManager:
# Get cached provider model credentials
cached_provider_model_credentials = provider_model_credentials_cache.get()
if not cached_provider_model_credentials:
if not cached_provider_model_credentials and provider_model_record.encrypted_config:
try:
provider_model_credentials = json.loads(provider_model_record.encrypted_config)
except JSONDecodeError: