mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-12-01 16:36:28 +08:00
fix(llm): replace retired deepseek-chat default with deepseek-v4-flash (#7408)
This commit is contained in:
@@ -762,7 +762,7 @@ class ConfigModel(BaseModel):
|
||||
AI_AGENT_PET: str = Field(default="", description='默认助手形象,格式为 插件ID:形象key,留空使用内置机器人;用户个人选择优先')
|
||||
AI_AGENT_OUTPUT_LANGUAGE: str = Field(default="zh-CN", description='内置智能助手输出语言,默认使用简体中文')
|
||||
LLM_PROVIDER: str = Field(default="deepseek", description='LLM提供商(支持内置 provider,以及从 models.dev 动态补充的平台)')
|
||||
LLM_MODEL: str = Field(default="deepseek-chat", description='LLM模型名称')
|
||||
LLM_MODEL: str = Field(default="deepseek-v4-flash", description='LLM模型名称')
|
||||
LLM_THINKING_LEVEL: Optional[str] = Field(
|
||||
default="off",
|
||||
description='思考模式/深度配置:off/auto/minimal/low/medium/high/max/xhigh;OpenAI兼容接口保留max/xhigh,仅按已知模型能力降级',
|
||||
|
||||
@@ -69,7 +69,7 @@ RESOURCE_VERSION_FLAG = "v3"
|
||||
# 提供商目录不可用时仍能提供常用平台的初始化默认值,不代替运行时能力目录。
|
||||
LLM_PROVIDER_DEFAULTS = {
|
||||
"deepseek": {
|
||||
"model": "deepseek-chat",
|
||||
"model": "deepseek-v4-flash",
|
||||
"base_url": "https://api.deepseek.com",
|
||||
},
|
||||
"openai": {
|
||||
|
||||
@@ -328,3 +328,12 @@ def test_collect_agent_config_accepts_google_default_and_keeps_saved_model(saved
|
||||
|
||||
assert config["LLM_PROVIDER"] == "google"
|
||||
assert config["LLM_MODEL"] == (saved_model or "gemini-3.8-flash")
|
||||
|
||||
|
||||
def test_local_setup_deepseek_default_model_is_not_retired_alias() -> None:
|
||||
"""
|
||||
DeepSeek 默认模型不应使用已下线的 deepseek-chat / deepseek-reasoner。
|
||||
"""
|
||||
module = load_local_setup_module()
|
||||
|
||||
assert module.LLM_PROVIDER_DEFAULTS["deepseek"]["model"] == "deepseek-v4-flash"
|
||||
|
||||
Reference in New Issue
Block a user