Unverified Commit e122d677 authored by takatost's avatar takatost Committed by GitHub

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

parent 4c63cbf5
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment