同步默认运行策略不限流
This commit is contained in:
parent
2aeb47d6a5
commit
a6f1be8f07
@ -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,
|
||||
|
||||
@ -67,6 +67,6 @@ SET name = EXCLUDED.name,
|
||||
updated_at = now();
|
||||
|
||||
UPDATE model_runtime_policy_sets
|
||||
SET description = '默认包含 TPM/RPM/并发、平台内调用重试、自动禁用和优先级降级关键词。'
|
||||
SET description = '默认 TPM/RPM/并发均不限制,仅保留平台内调用重试、自动禁用和优先级降级策略。'
|
||||
WHERE policy_key = 'default-runtime-v1'
|
||||
AND description = '默认包含 TPM/RPM/并发、失败重试、自动禁用和优先级降级关键词。';
|
||||
|
||||
@ -0,0 +1,5 @@
|
||||
UPDATE model_runtime_policy_sets
|
||||
SET rate_limit_policy = '{"rules":[]}'::jsonb,
|
||||
description = '默认 TPM/RPM/并发均不限制,仅保留失败重试、自动禁用和优先级降级策略。',
|
||||
updated_at = now()
|
||||
WHERE policy_key = 'default-runtime-v1';
|
||||
Loading…
Reference in New Issue
Block a user