feat: 聚合供应商支持按模型路由 - #1780
Open
kokotao wants to merge 3 commits into
Open
Conversation
1 task
…-model-routing # Conflicts: # crates/codex-plus-core/src/relay_config.rs
Owner
|
审查结论:暂不建议合并。当前 Windows artifacts CI 失败,失败用例是 |
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.
概述
model改写为被选中成员供应商的默认模型requires_openai_auth = false详细说明
deepseek-*、gpt-*等通配符模式及精确模型名匹配。修复:聚合供应商不再强制要求 OpenAI 登录
requires_openai_auth = true,强制要求聚合中继并不需要的 OpenAI 登录态。RelayMode::Aggregate生成的供应商配置现在写入requires_openai_auth = false,并且relay_config_status_from_home会将「base_url + bearer token」的聚合配置视为已配置,无需 OpenAI 登录。relay_config_status_treats_aggregate_provider_as_configured_without_openai_auth。Closes #1744.
测试计划
npm testnpm run checkcargo test -p codex-plus-core --test relay_rotationcargo test -p codex-plus-core --test protocol_proxy aggregate -- --nocapturecargo test -p codex-plus-core --test relay_configcargo test -p codex-plus-core --test relay_switch