fix(credits): require model name equals (#13314)

Signed-off-by: -LAN- <laipz8200@outlook.com>
This commit is contained in:
-LAN- authored and GitHub committed 2025-02-07 13:28:17 +08:00
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):