P0 fixes: - ModelError.Is(): use exact matching instead of substring contains() - shouldClearStickySession: add context param for cancellation/tracing P1 fixes: - TODO stubs: return 501 Not Implemented errors - validateInstanceSignature: deduplicate to shared validateCodeSignature() - Error messages: standardize to English only - http.go: remove pseudo if-else with duplicate branches
12 lines
526 B
SQL
12 lines
526 B
SQL
-- 040_add_group_model_routing.sql
|
||
-- 添加分组级别的模型路由配置功能
|
||
|
||
-- 添加 model_routing 字段:模型路由配置(JSONB 格式)
|
||
-- 格式: {"model_pattern": [account_id1, account_id2], ...}
|
||
-- 例如: {"claude-opus-*": [1, 2], "claude-sonnet-*": [3, 4, 5]}
|
||
ALTER TABLE groups
|
||
ADD COLUMN IF NOT EXISTS model_routing JSONB DEFAULT '{}';
|
||
|
||
-- 添加字段注释
|
||
COMMENT ON COLUMN groups.model_routing IS '模型路由配置:{"model_pattern": [account_id1, account_id2], ...},支持通配符匹配';
|