fix: quarantine confirmed unavailable catalog routes
This commit is contained in:
1 parent
144b6b41d2
commit
8a2591ef51
1 file changed
+31
+31
@@ -0,0 +1,31 @@
|
||||
-- Keep routes out of the public catalog when the latest live acceptance run
|
||||
-- received a deterministic "no available channel" response for that exact
|
||||
-- provider/group/model combination. This migration is separate from V27 so
|
||||
-- it remains safe when V27 has already been applied in production.
|
||||
UPDATE model_catalog AS m
|
||||
SET status = 'disabled', updated_at = now()
|
||||
FROM model_providers AS p
|
||||
WHERE m.provider_id = p.id
|
||||
AND p.code = 'tokenfoundryx'
|
||||
AND p.deleted_at IS NULL
|
||||
AND m.source_label IN ('TokenFoundryX', 'TokenFoundryX 海外')
|
||||
AND m.upstream_model IN (
|
||||
'claude-opus-4-6',
|
||||
'claude-opus-4-8',
|
||||
'claude-opus-5',
|
||||
'claude-sonnet-4-5',
|
||||
'claude-sonnet-5'
|
||||
)
|
||||
AND m.status = 'active'
|
||||
AND m.deleted_at IS NULL;
|
||||
|
||||
UPDATE model_catalog AS m
|
||||
SET status = 'disabled', updated_at = now()
|
||||
FROM model_providers AS p
|
||||
WHERE m.provider_id = p.id
|
||||
AND p.code = 'apihub'
|
||||
AND p.deleted_at IS NULL
|
||||
AND m.source_label = 'ApiHub 国内'
|
||||
AND m.upstream_model IN ('deepseek-v4.1-flash', 'qwen3.8-max')
|
||||
AND m.status = 'active'
|
||||
AND m.deleted_at IS NULL;
|
||||
Reference in new issue
Block a user