fix: return wrong when init 0 quota in trial provider (#1394)

pull/1374/head^2
takatost 2 years ago committed by GitHub
parent 4c63cbf5b1
commit e122d677ad
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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

Loading…
Cancel
Save