Skip to content

fix: only show legacy auto-config warning when api key is set - #1812

Merged
coltea merged 1 commit into
chaitin:mainfrom
coltea:fix-api-key-warnning
Jun 26, 2026
Merged

coltea merged 1 commit into
chaitin:mainfrom
coltea:fix-api-key-warnning

Conversation

@coltea

@coltea coltea commented Jun 26, 2026 •

Copy link
Copy Markdown
Collaborator

PR 标题

fix: only show legacy auto-config warning when api key is set

变更类型

请勾选适用的变更类型:

  • Bug 修复 (不兼容变更的修复)
  • 新功能 (不兼容变更的新功能)
  • 功能改进 (不兼容现有功能的改进)
  • 文档更新
  • 依赖更新
  • 重构 (不影响功能的代码修改)
  • 测试用例
  • CI/CD 配置变更
  • 其他 (请描述):

变更内容

详细描述本次 PR 的具体变更内容:

  1. fix: only show legacy auto-config warning when api key is set

测试情况

描述本次变更的测试情况:

  • 已本地测试
  • 已添加测试用例
  • 不需要测试 (理由: )

其他说明

任何其他需要说明的事项:

Copilot AI review requested due to automatic review settings June 26, 2026 11:02
@coltea
coltea merged commit 84c545b into chaitin:main Jun 26, 2026
2 checks passed

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

此 PR 修复了后台管理端「模型配置」页面中“legacy 自动配置”警告的触发条件:仅当处于自动模式且已配置 auto_mode_api_key 时,才显示该遗留配置提示,避免在未设置 API Key 的情况下出现误提示。

Changes:

  • 在初始化获取模型模式配置后,更新 legacy auto-config 判定逻辑:新增 auto_mode_api_key 必须存在的条件。

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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.

2 participants