mirror of
https://github.com/justlovemaki/AIClient-2-API.git
synced 2026-04-25 17:35:58 +03:00
[GH-ISSUE #170] 跨协议模型 Fallback 映射不起作用 #131
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/AIClient-2-API-justlovemaki#131
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @adeewu on GitHub (Jan 6, 2026).
Original GitHub issue: https://github.com/justlovemaki/AIClient-2-API/issues/170
配置跨协议模型后完全没效果,不知道是不是我配置的有问题,能否出个示例呢?
@ZqinKing commented on GitHub (Jan 6, 2026):
openai-qwen-oauth里有claude-sonnet-4-5吗?应该改成这样
@ZqinKing commented on GitHub (Jan 6, 2026):
示例配置文件中有跨协议回退的配置样例。反重力和kiro中的claude模型可相互回退。
@adeewu commented on GitHub (Jan 6, 2026):
意思是没办法从openai兼容模式回退到qwen吗?
@adeewu commented on GitHub (Jan 6, 2026):
配置贴错了,应该是这样的:
预想的过程是:在kilo code通过 http://localhost:3000/v1/messages 走openai兼容模式使用gpt-5.1-codex-max模型,先消耗modelscope的2000额度,等消耗完,根据跨协议模型回退走qwen code的qwen3-coder-plus模型,这样能走通吗? modelscope其实没有gpt-5.1-codex-max,看过程就好,细节不要太在意
@ZqinKing commented on GitHub (Jan 6, 2026):
可以啊,gpt凭证不健康的时候就会回退的,如果出错那可能是模型字段不兼容,具体可以看下回退日志。测试可以将gpt凭证中的codex-max模型勾选过滤,应该就可以触发回退。做功能时只是测了反重力和kiro中的claude模型,这两只是渠道不同。
@ZqinKing commented on GitHub (Jan 6, 2026):
话说,你这个codex模型是咋弄出来的?刚好有个chatgpt的plus订阅号,能挂反代用吗?
@adeewu commented on GitHub (Jan 7, 2026):
没弄到codex模型,自己填写的,kilo code的配置可以一直不用变,预想在aiclient2api中降级走modelscope的
Qwen/Qwen3-Coder-480B-A35B-Instruct实际上我没在日志看到回退处理,第一步走gpt-5.1-codex-max就出现500后停下,从代码上看,走的是getApiService,没走getApiServiceWithFallback,觉得是我使用方式有问题
@justlovemaki commented on GitHub (Jan 8, 2026):
第一步走gpt-5.1-codex-max就出现500,这和fallback就没关系