Allow BFL image provider in DB constraint
Some checks failed
Lint / build (20) (push) Has been cancelled
Playwright Tests / test (push) Has been cancelled

This commit is contained in:
Your Name 2026-03-21 01:13:35 +08:00
parent 9727da4072
commit fc88bbb3d0

View File

@ -26,6 +26,7 @@ const providerBaseUrlDefaults = [
type: "alibaba-image", type: "alibaba-image",
baseUrl: "https://dashscope.aliyuncs.com/api/v1/services/aigc/multimodal-generation/generation", baseUrl: "https://dashscope.aliyuncs.com/api/v1/services/aigc/multimodal-generation/generation",
}, },
{ type: "bfl-image", baseUrl: "https://api.bfl.ai" },
{ type: "ruxa-image", baseUrl: "https://api.ruxa.ai" }, { type: "ruxa-image", baseUrl: "https://api.ruxa.ai" },
{ type: "fal-image", baseUrl: "https://fal.run" }, { type: "fal-image", baseUrl: "https://fal.run" },
{ type: "openai-image", baseUrl: "https://api.openai.com/v1" }, { type: "openai-image", baseUrl: "https://api.openai.com/v1" },
@ -92,7 +93,7 @@ const runMigrate = async () => {
ADD CONSTRAINT "AiProvider_type_check" ADD CONSTRAINT "AiProvider_type_check"
CHECK (type IN ( CHECK (type IN (
'alibaba', 'openai', 'custom', 'local', 'gemini', 'alibaba', 'openai', 'custom', 'local', 'gemini',
'huanke-gemini', 'qianwen-video', 'doubao-video', 'ruxa-video', 'volcano-vision', 'volcano-video', 'alibaba-image', 'ruxa-image', 'fal-image', 'openai-image', 'midjourney', 'fal-video', 'zhipu', 'tripo-3d', 'runway' 'huanke-gemini', 'qianwen-video', 'doubao-video', 'ruxa-video', 'volcano-vision', 'volcano-video', 'alibaba-image', 'bfl-image', 'ruxa-image', 'fal-image', 'openai-image', 'midjourney', 'fal-video', 'zhipu', 'tripo-3d', 'runway'
)); ));
`); `);
await db.execute(sql` await db.execute(sql`