mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-08-13 17:19:01 +08:00
fix: return wrong when init 0 quota in trial provider (#1394)
This commit is contained in:
parent
4c63cbf5b1
commit
e122d677ad
@ -211,6 +211,9 @@ class ModelProviderFactory:
|
|||||||
Provider.quota_type == ProviderQuotaType.TRIAL.value
|
Provider.quota_type == ProviderQuotaType.TRIAL.value
|
||||||
).first()
|
).first()
|
||||||
|
|
||||||
|
if provider.quota_limit == 0:
|
||||||
|
return None
|
||||||
|
|
||||||
return provider
|
return provider
|
||||||
|
|
||||||
no_system_provider = True
|
no_system_provider = True
|
||||||
|
Loading…
x
Reference in New Issue
Block a user