mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-06-30 06:45:10 +08:00
fix(credits): require model name equals (#13314)
Signed-off-by: -LAN- <laipz8200@outlook.com>
This commit is contained in:
parent
6e5c915f96
commit
be46f32056
@ -28,7 +28,7 @@ class HostedCreditConfig(BaseSettings):
|
||||
|
||||
# Search for matching model pattern
|
||||
for pattern, credit in credit_map.items():
|
||||
if pattern.strip() in model_name:
|
||||
if pattern.strip() == model_name:
|
||||
return int(credit)
|
||||
return 1 # Default quota if no match found
|
||||
except (ValueError, AttributeError):
|
||||
|
Loading…
x
Reference in New Issue
Block a user