Skip to content

利用 AI 大模型和自动化工作流,根据主题或关键词一键生成高清短视频。Generate HD short videos from a topic or keyword with an automated AI workflow.

fix(llm): replace the retired Groq default model with openai/gpt-oss-120b

Rusiru26edbbd9d9f2
diff --git a/app/models/llm_provider.py b/app/models/llm_provider.py
index ce72203f..d1cde8f4 100644
--- a/app/models/llm_provider.py
+++ b/app/models/llm_provider.py
@@ -456,7 +456,7 @@ LLM_PROVIDER_REGISTRY = (
"groq",
"Groq",
api_key_url="https://console.groq.com/keys",
- default_model="llama-3.3-70b-versatile",
+ default_model="openai/gpt-oss-120b",
default_base_url="https://api.groq.com/openai/v1",
),
LLMProviderSpec(
diff --git a/test/services/test_llm.py b/test/services/test_llm.py
index 69e18196..49bb56fd 100644
--- a/test/services/test_llm.py
+++ b/test/services/test_llm.py
@@ -1020,7 +1020,7 @@ class TestLiteLLMProvider(unittest.TestCase):
"""
config.app["llm_provider"] = "groq"
config.app["groq_api_key"] = "groq-key"
- config.app["groq_model_name"] = "llama-3.3-70b-versatile"
+ config.app["groq_model_name"] = "openai/gpt-oss-120b"
config.app["groq_base_url"] = (
"https://myuser:[email protected]/openai/v1"
)
@@ -1446,7 +1446,7 @@ class TestLiteLLMProvider(unittest.TestCase):
config.app["llm_provider"] = "groq"
config.app["groq_api_key"] = ""
config.app["groq_base_url"] = "https://api.groq.com/openai/v1"
- config.app["groq_model_name"] = "llama-3.3-70b-versatile"
+ config.app["groq_model_name"] = "openai/gpt-oss-120b"
result = llm._generate_response("test")
@@ -1458,7 +1458,7 @@ class TestLiteLLMProvider(unittest.TestCase):
config.app["llm_provider"] = "groq"
config.app["groq_api_key"] = "groq-test-key"
config.app["groq_base_url"] = ""
- config.app["groq_model_name"] = "llama-3.3-70b-versatile"
+ config.app["groq_model_name"] = "openai/gpt-oss-120b"
fake_response = types.SimpleNamespace(
choices=[