mirror of
https://github.com/langgenius/dify.git
synced 2026-03-23 15:27:53 +08:00
fix: return wrong when init 0 quota in trial provider (#1394)
This commit is contained in:
@ -211,6 +211,9 @@ class ModelProviderFactory:
|
||||
Provider.quota_type == ProviderQuotaType.TRIAL.value
|
||||
).first()
|
||||
|
||||
if provider.quota_limit == 0:
|
||||
return None
|
||||
|
||||
return provider
|
||||
|
||||
no_system_provider = True
|
||||
|
||||
Reference in New Issue
Block a user