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

Signed-off-by: -LAN- <laipz8200@outlook.com>
This commit is contained in:
-LAN- 2025-02-07 13:28:17 +08:00 committed by GitHub
parent 6e5c915f96
commit be46f32056
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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):