同步默认运行策略不限流
This commit is contained in:
@@ -19,8 +19,8 @@ INSERT INTO model_runtime_policy_sets (
|
||||
VALUES (
|
||||
'default-runtime-v1',
|
||||
'默认运行策略',
|
||||
'默认包含 TPM/RPM/并发、失败重试、自动禁用和优先级降级关键词。',
|
||||
'{"rules":[{"metric":"rpm","limit":120,"windowSeconds":60},{"metric":"tpm_total","limit":240000,"windowSeconds":60},{"metric":"concurrent","limit":6,"leaseTtlSeconds":120}]}'::jsonb,
|
||||
'默认 TPM/RPM/并发均不限制,仅保留失败重试、自动禁用和优先级降级策略。',
|
||||
'{"rules":[]}'::jsonb,
|
||||
'{"enabled":true,"maxAttempts":2,"allowKeywords":["rate_limit","timeout","server_error","network","429","5xx"],"denyKeywords":["invalid_api_key","insufficient_quota","billing_not_active","permission_denied"]}'::jsonb,
|
||||
'{"enabled":false,"threshold":3,"windowSeconds":300,"keywords":["invalid_api_key","account_deactivated","permission_denied","billing_not_active"]}'::jsonb,
|
||||
'{"enabled":true,"cooldownSeconds":300,"keywords":["rate_limit","quota","timeout","temporarily_unavailable","overloaded"]}'::jsonb,
|
||||
|
||||
Reference in New Issue
Block a user