mirror of
https://github.com/langgenius/dify.git
synced 2026-10-04 13:47:55 +08:00
fix(credits): require model name equals (#13314)
Signed-off-by: -LAN- <laipz8200@outlook.com>
This commit is contained in:
1 parent
6e5c915f96
commit
be46f32056
1 file changed
+1
-1
@@ -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):
|
||||
|
||||
Reference in new issue
Block a user