[GH-ISSUE #169] selectProviderWithFallback不正常,有可能会无法fallback #130

Closed
opened 2026-02-27 07:18:08 +03:00 by kerem · 0 comments
Owner

Originally created by @adeewu on GitHub (Jan 6, 2026).
Original GitHub issue: https://github.com/justlovemaki/AIClient-2-API/issues/169

效果

本来预想是如果openai-custom的账户不健康后,fallback到openai-qwen-oauth,实际效果却不是,在selectProviderWithFallback方法中的Provider Fallback Chain的配置池中,又重新获取到当前不健康的账户,导致无法进入Model Fallback Mapping

猜想

可能是我的配置有问题,可能就需要selectProviderWithFallback中需要过滤掉fallback前的账户

配置说明

在openai-custom添加账户(实际不可用的)

Image

在openai-qwen-oauth添加账户

Image

在config.json配置

"providerFallbackChain": {
    "openai-custom": [
      "openai-qwen-oauth"
    ]
  },
  "modelFallbackMapping": {
    "gpt-5.1-codex-max": {
      "targetProviderType": "openai-qwen-oauth",
      "targetModel": "qwen3-coder-plus"
    }
  }
Image
Originally created by @adeewu on GitHub (Jan 6, 2026). Original GitHub issue: https://github.com/justlovemaki/AIClient-2-API/issues/169 # 效果 本来预想是如果openai-custom的账户不健康后,fallback到openai-qwen-oauth,实际效果却不是,在`selectProviderWithFallback`方法中的`Provider Fallback Chain`的配置池中,又重新获取到当前不健康的账户,导致无法进入`Model Fallback Mapping` # 猜想 可能是我的配置有问题,可能就需要`selectProviderWithFallback`中需要过滤掉fallback前的账户 # 配置说明 在openai-custom添加账户(实际不可用的) <img width="1220" height="444" alt="Image" src="https://github.com/user-attachments/assets/3d8c8c91-15de-4c4e-ae1c-762a3688ebc6" /> 在openai-qwen-oauth添加账户 <img width="1224" height="452" alt="Image" src="https://github.com/user-attachments/assets/a808d2e8-c602-4234-a83d-c42958f9f0e3" /> 在config.json配置 ``` "providerFallbackChain": { "openai-custom": [ "openai-qwen-oauth" ] }, "modelFallbackMapping": { "gpt-5.1-codex-max": { "targetProviderType": "openai-qwen-oauth", "targetModel": "qwen3-coder-plus" } } ``` <img width="1382" height="644" alt="Image" src="https://github.com/user-attachments/assets/3b6ac8ef-a62b-4911-bf5e-cb041de0ec0a" />
kerem closed this issue 2026-02-27 07:18:09 +03:00
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/AIClient-2-API-justlovemaki#130
No description provided.