Skip to content

feat: 飞书端 /model 命令 — 模型选择与 per-chat 切换#152

Closed
shellmind112 wants to merge 1 commit intofeishu/basefrom
feishu/model
Closed

feat: 飞书端 /model 命令 — 模型选择与 per-chat 切换#152
shellmind112 wants to merge 1 commit intofeishu/basefrom
feishu/model

Conversation

@shellmind112
Copy link
Copy Markdown
Collaborator

@shellmind112 shellmind112 commented Apr 7, 2026

Issue for this PR

Closes #147
Depends on #151

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

在飞书端支持模型选择与切换。

  • 连接时前端将 web UI 当前模型传入后端作为连接快照(_connectedModel
  • /model 命令列出所有可用模型,按 provider 分组,当前选中标 ★
  • /model n 设置 per-chat 模型 override(_modelOverrides[chatId]
  • 三级模型解析:per-chat override → 连接快照 → 默认
  • /new 清除本聊天的 override,连接快照保持不变

How did you verify your code works?

  • 验证连接时模型快照正确
  • 验证 /model 列表显示
  • 验证 /model n 切换后回复使用新模型
  • 验证 /new 后 override 被清除

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

@github-actions
Copy link
Copy Markdown

github-actions bot commented Apr 7, 2026

The following comment was made by an LLM, it may be inaccurate:

This PR may overlap with existing open pull requests:

Please check whether this work should be consolidated.

@github-actions
Copy link
Copy Markdown

github-actions bot commented Apr 7, 2026

Thanks for updating your PR! It now meets our contributing guidelines. 👍

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.

1 participant