利用 AI 大模型和自动化工作流,根据主题或关键词一键生成高清短视频。Generate HD short videos from a topic or keyword with an automated AI workflow.
Python ai-video-generatorcontent-creationffmpeginstagram-reelsllmpythonshort-videosubtitlestext-to-speechtiktokvideo-automationvideo-workflowworkflow-automationyoutube-shorts
feat(llm): add EmpirioLabs AI provider
Adam Dalloul0dc4e2024cd9
diff --git a/app/models/llm_provider.py b/app/models/llm_provider.pyindex d8e70fa2..9b99837d 100644--- a/app/models/llm_provider.py+++ b/app/models/llm_provider.py@@ -515,6 +515,14 @@ LLM_PROVIDER_REGISTRY = (default_base_url="https://onomeo.com/v1",model_docs_url="https://onomeo.com/models",),+ LLMProviderSpec(+ "empiriolabs",+ "EmpirioLabs AI",+ api_key_url="https://platform.empiriolabs.ai/dashboard/api-keys",+ default_model="qwen3-8-flash",+ default_base_url="https://api.empiriolabs.ai/v1",+ model_docs_url="https://docs.empiriolabs.ai/models-pricing",+ ),# 本地部署与通用网关LLMProviderSpec("ollama",diff --git a/config.example.toml b/config.example.tomlindex 0dbc5ca4..925a00d3 100644--- a/config.example.toml+++ b/config.example.toml@@ -321,6 +321,13 @@ onomeo_api_key = ""onomeo_base_url = ""onomeo_model_name = ""+# EmpirioLabs AI, an OpenAI-compatible API for open and proprietary models.+# API key: https://platform.empiriolabs.ai/dashboard/api-keys+# Model list: https://docs.empiriolabs.ai/models-pricing+empiriolabs_api_key = ""+empiriolabs_base_url = ""+empiriolabs_model_name = ""+# OpenAI or another OpenAI Chat Completions-compatible provider.# API key: https://platform.openai.com/api-keysopenai_api_key = ""diff --git a/test/services/test_llm.py b/test/services/test_llm.pyindex ecec5cbc..6acd8294 100644--- a/test/services/test_llm.py+++ b/test/services/test_llm.py@@ -586,6 +586,19 @@ class TestLiteLLMProvider(unittest.TestCase):self.assertTrue(onomeo.requires_api_key)self.assertEqual(onomeo.api_key_url, "https://onomeo.com/dashboard")self.assertEqual(onomeo.model_docs_url, "https://onomeo.com/models")+ empiriolabs = get_llm_provider("empiriolabs")+ self.assertEqual(empiriolabs.default_model, "qwen3-8-flash")+ self.assertEqual(empiriolabs.default_base_url, "https://api.empiriolabs.ai/v1")+ self.assertEqual(empiriolabs.adapter, "openai_compatible")+ self.assertTrue(empiriolabs.requires_api_key)+ self.assertEqual(+ empiriolabs.api_key_url,+ "https://platform.empiriolabs.ai/dashboard/api-keys",+ )+ self.assertEqual(+ empiriolabs.model_docs_url,+ "https://docs.empiriolabs.ai/models-pricing",+ )iflytek = get_llm_provider("iflytek")self.assertEqual(iflytek.default_model, "spark-x2.5")self.assertEqual(@@ -663,6 +676,7 @@ class TestLiteLLMProvider(unittest.TestCase):"yapi","opper","onomeo",+ "empiriolabs","ollama","claude_code","oneapi",diff --git a/test/services/test_webui_i18n.py b/test/services/test_webui_i18n.pyindex 6dfa2bdb..bab2f54a 100644--- a/test/services/test_webui_i18n.py+++ b/test/services/test_webui_i18n.py@@ -62,6 +62,7 @@ ENGLISH_FALLBACK_KEYS = frozenset("llm_provider_label.yapi","llm_provider_label.opper","llm_provider_label.onomeo",+ "llm_provider_label.empiriolabs","llm_provider_label.shengsuanyun","llm_provider_label.muse_spark","llm_provider_label.kimi_code",diff --git a/webui/i18n/en.json b/webui/i18n/en.jsonindex 970231ba..15c88f58 100644--- a/webui/i18n/en.json+++ b/webui/i18n/en.json@@ -248,6 +248,8 @@"llm_provider_tips.opper": "##### Opper Configuration\n- **API Key**: Create an API key at [Opper]({api_key_url})\n- **Base Url**: Defaults to `{default_base_url}`\n- **Model Name**: Defaults to `{default_model}`; see the [model list]({model_docs_url}) for other model IDs\n\nOpper is an EU-hosted, OpenAI-compatible gateway to 700+ models from 50+ providers.","llm_provider_label.onomeo": "onomeo","llm_provider_tips.onomeo": "##### onomeo Configuration\n- **API Key**: Sign in and create an API key at [onomeo]({api_key_url})\n- **Base Url**: Defaults to `{default_base_url}`\n- **Model Name**: Defaults to `{default_model}`, which picks a working free model; see the [model list]({model_docs_url}) for other model IDs\n\nonomeo is an OpenAI-compatible gateway. Free models are rate limited; other models are charged from a prepaid balance.",+ "llm_provider_label.empiriolabs": "EmpirioLabs AI",+ "llm_provider_tips.empiriolabs": "##### EmpirioLabs AI Configuration\n- **API Key**: Create an API key in the [EmpirioLabs AI dashboard]({api_key_url})\n- **Base Url**: Defaults to `{default_base_url}`\n- **Model Name**: Defaults to `{default_model}`; see the [model list]({model_docs_url}) for other model IDs\n\nEmpirioLabs AI is an OpenAI-compatible API for open and proprietary models, including Qwen, DeepSeek, GLM, Kimi and MiniMax.","API Key": "API Key","Base Url": "Base Url","Account ID": "Account ID",diff --git a/webui/i18n/zh.json b/webui/i18n/zh.jsonindex c6c6dfaf..6cf48c0f 100644--- a/webui/i18n/zh.json+++ b/webui/i18n/zh.json@@ -248,6 +248,8 @@"llm_provider_tips.opper": "##### Opper 配置说明\n- **API Key**: 在 [Opper]({api_key_url}) 创建 API Key\n- **Base Url**: 默认 `{default_base_url}`\n- **Model Name**: 默认 `{default_model}`;可在 [模型列表]({model_docs_url}) 查看其它模型 ID\n\nOpper 是部署在欧盟、兼容 OpenAI 接口的多模型网关,可调用 50 多家厂商的 700 多个模型。","llm_provider_label.onomeo": "onomeo","llm_provider_tips.onomeo": "##### onomeo 配置说明\n- **API Key**: 登录后在 [onomeo]({api_key_url}) 创建 API Key\n- **Base Url**: 默认 `{default_base_url}`\n- **Model Name**: 默认 `{default_model}`,会自动选择可用的免费模型;其它模型 ID 可在 [模型列表]({model_docs_url}) 查看\n\nonomeo 是兼容 OpenAI 接口的网关。免费模型有调用频率限制,其它模型按预付余额计费。",+ "llm_provider_label.empiriolabs": "EmpirioLabs AI",+ "llm_provider_tips.empiriolabs": "##### EmpirioLabs AI 配置说明\n- **API Key**: 在 [EmpirioLabs AI 控制台]({api_key_url}) 创建 API Key\n- **Base Url**: 默认 `{default_base_url}`\n- **Model Name**: 默认 `{default_model}`;可在 [模型列表]({model_docs_url}) 查看其它模型 ID\n\nEmpirioLabs AI 是兼容 OpenAI 接口的模型 API,可调用 Qwen、DeepSeek、GLM、Kimi、MiniMax 等开源与闭源模型。","API Key": "API Key","Base Url": "Base Url","Account ID": "Account ID",