feat(settings): 模型选择器中增加直接编辑供应商的入口 - #330
Open
hopingmiao wants to merge 2 commits into
Open
Conversation
Add provider-group edit actions that open the matching provider editor in Settings for both desktop and Gateway WebUI. Consume pending provider IDs once to prevent the editor from reopening after navigation.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
功能概述
在模型选择器中增加直接编辑供应商的入口,并同步支持桌面 GUI 和 Gateway WebUI。
现在每个供应商分组右侧都会显示一个铅笔编辑按钮。点击后将会:
主要改动
pendingProviderId一次性消费供应商编辑请求:桌面 GUI 修改文件
crates/agent-gui/src/App.tsxcrates/agent-gui/src/pages/ChatPage.tsxcrates/agent-gui/src/pages/SettingsPage.tsxpendingProviderId。crates/agent-gui/src/pages/chat/components/ChatHeader.tsxcrates/agent-gui/src/pages/settings/ProvidersSection.tsxcrates/agent-gui/src/pages/settings/types.tsGateway WebUI 修改文件
crates/agent-gateway/web/src/app/GatewayApp.tsxcrates/agent-gateway/web/src/pages/SettingsPage.tsxpendingProviderId。crates/agent-gateway/web/src/pages/chat/ChatHeader.tsxcrates/agent-gateway/web/src/pages/settings/ProvidersSection.tsxcrates/agent-gateway/web/src/pages/settings/types.ts测试
更新测试:
crates/agent-gui/test/chat/execution-mode-model-picker.test.mjs新增测试:
crates/agent-gui/test/settings/provider-edit-deeplink.test.mjs测试命令: