Skip to content

fix(llm): 更新 DeepSeek 默认模型并隐藏方舟预设#131

Closed
Cooper-X-Oak wants to merge 1 commit into
Open-Less:mainfrom
Cooper-X-Oak:codex/fix-llm-deepseek-defaults
Closed

fix(llm): 更新 DeepSeek 默认模型并隐藏方舟预设#131
Cooper-X-Oak wants to merge 1 commit into
Open-Less:mainfrom
Cooper-X-Oak:codex/fix-llm-deepseek-defaults

Conversation

@Cooper-X-Oak
Copy link
Copy Markdown
Contributor

@Cooper-X-Oak Cooper-X-Oak commented May 1, 2026

摘要

Fixes #130

这个 PR 解决 v1.2.8 设置页 LLM 供应商预设和 DeepSeek 默认模型过期的问题:不再暴露 ARK 预设,并将默认 DeepSeek 模型切到官方当前模型名 deepseek-v4-flash

修复 / 新增 / 改进

  • 抽出 LLM_PRESETSDEFAULT_LLM_PRESET_ID,让 LLM 默认配置可以被轻量测试覆盖。
  • 移除 LLM 下拉框中的 ARK(火山方舟) 预设,默认供应商改为 DeepSeek
  • DeepSeek 默认模型提示、mock 模型列表和 Rust 后端兜底模型统一更新为 deepseek-v4-flash,并补充 deepseek-v4-pro
  • 后端无显式 endpoint 时不再回落到方舟 endpoint,改用 https://api.deepseek.com/v1

兼容

  • 不包含:重命名历史 ark.* credential account;这些 key 仍作为兼容层使用,避免破坏已有本地凭据读取。
  • 不包含:禁用豆包/火山系 OpenAI-compatible 使用方式;已开通豆包官方套餐的用户仍可通过 自定义 供应商按官方 OpenAI 接口参数填写 Base URL / Model / API Key 使用。
  • 对现有用户 / 本地环境 / 构建流程的影响:新安装默认走 DeepSeek;已经保存自定义 endpoint/model 的用户继续通过现有 credential account 读取。

测试计划

  • 命令:npm exec --yes tsx src/lib/llmPresets.test.ts
  • 命令:npm exec --yes tsx src/lib/providerSetup.test.ts
  • 命令:npm exec --yes tsx src/lib/capsuleLayout.test.ts
  • 命令:npm run build
  • 命令:cargo +stable-x86_64-pc-windows-gnu test --manifest-path src-tauri\Cargo.toml --no-run
  • 命令:git diff --check / git diff --cached --check
  • 结果:以上均通过;Rust 编译仍有既有 unused/unreachable warnings。

@chatgpt-codex-connector
Copy link
Copy Markdown

Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits.
Credits must be used to enable repository wide code reviews.

Copy link
Copy Markdown

@sourcery-ai sourcery-ai Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry @Cooper-X-Oak, you have reached your weekly rate limit of 500000 diff characters.

Please try again later or upgrade to continue using Sourcery

@Cooper-X-Oak
Copy link
Copy Markdown
Contributor Author

按最新反馈撤销这个 PR:本轮不再移除 ARK 预设,也不修改默认 LLM provider;后续只提交 DeepSeek 模型引用名修复。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[llm] 移除方舟预设并更新 DeepSeek 默认模型

1 participant