ai-chatbot/lib/db/migrations/0026_add_fallback_model_ids.sql
Your Name 712041bbeb
Some checks failed
Lint / build (20) (push) Has been cancelled
Playwright Tests / test (push) Has been cancelled
添加模型后备功能和优化图片生成
2025-12-19 15:30:18 +08:00

11 lines
470 B
SQL
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

-- 为 AI 模型添加备用模型 ID 字段
-- 当主模型请求失败时,自动切换到备用模型
ALTER TABLE "AiModel"
ADD COLUMN IF NOT EXISTS "fallbackModelId1" VARCHAR(128),
ADD COLUMN IF NOT EXISTS "fallbackModelId2" VARCHAR(128);
COMMENT ON COLUMN "AiModel"."fallbackModelId1" IS '备用模型 ID 1,当主模型请求失败时优先使用';
COMMENT ON COLUMN "AiModel"."fallbackModelId2" IS '备用模型 ID 2,当备用模型 1 也失败时使用';