新增"七牛云"服务商支持#2373
Open
JackChiang233 wants to merge 1 commit into
Open
Conversation
f088ec3 to
3602149
Compare
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.
变更内容
具体改动
relay/adaptor/openai/compatible.go- 把 Qiniu 正式注册为 OpenAI 兼容通道,让系统能按 qiniu 标识识别该厂商并使用其模型列表完成路由relay/adaptor/qiniu/constants.go- 定义qiniu适配器的基础常量配置,目前主要提供默认可用模型列表(如 deepseek-v3)供后续请求与展示逻辑复用relay/channeltype/define.go- 在渠道类型枚举中新增 Qiniu 常量,让系统可以把七牛云作为独立渠道类型进行配置与识别,并在后续按该类型走对应的处理逻辑relay/channeltype/url.go- 为 qiniu 渠道新增默认 Base URL(https://api.qnaigc.com/)web/air/src/constants/channel.constants.js- 在前端渠道类型常量里新增了 key/value=52 的“七牛云”选项web/air/src/pages/Channel/EditChannel.js- 当渠道类型选择“七牛云”(type=52)时会自动填入默认模型 deepseek-v3,让创建渠道时无需手动配置基础模型web/berry/src/constants/ChannelConstants.js- 在前端渠道类型常量里新增了“七牛云”(value/key: 52)选项,让用户在创建或编辑渠道时可以直接选择七牛云作为渠道类型web/berry/src/views/Channel/type/Config.js- 为qiniu渠道类型(52)补上默认模型 deepseek-v3 并指定 modelGroup: 'qiniu',作用是让前端在编辑该渠道时能按 qiniu 分组正确展示和初始化模型配置web/default/src/constants/channel.constants.js- 在前端渠道里新增了“七牛云”(key/value: 52)选项测试情况
影响范围
我已确认该 PR 已自测通过,相关截图如下:
