mirror of
https://github.com/justlovemaki/AIClient-2-API.git
synced 2026-04-25 09:25:59 +03:00
[PR #52] [MERGED] feat(server): 多提供商数组配置与启动初始化; fix(qwen-auth): 复用缓存凭据与账号级刷新清理 (src-only) #250
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#250
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?
📋 Pull Request Information
Original PR: https://github.com/justlovemaki/AIClient-2-API/pull/52
Author: @d7185540
Created: 9/18/2025
Status: ✅ Merged
Merged: 9/18/2025
Merged by: @justlovemaki
Base:
main← Head:feature/qwen-auth-and-providers📝 Commits (1)
e7d8b23feat(server): 多提供商数组配置与启动初始化; fix(qwen-auth): 复用缓存凭据与账号级刷新清理 (src-only)📊 Changes
2 files changed (+272 additions, -113 deletions)
View changed files
📝
src/api-server.js(+117 -28)📝
src/openai/qwen-core.js(+155 -85)📄 Description
概述
授权与刷新失败。
历史问题与现象
健康。
失败。
根因分析(对照历史代码)
恒为 false,后续总进入设备授权流。
fe42aed的 src/openai/qwen-core.js:297, 302-304(逻辑分布,调用 getAccessToken 的位置)导致对应账号坏凭据未被清理,持续失败。
fe42aed的 src/openai/qwen-core.js:663缓存错位,导致“服务读写 A 文件,管理器刷新 B 文件”。
本次修复(核心改动)
this.tokenManagerOptions)),552–606(getContext/resolveCredentialFilePath/resolveLockFilePath)
expiry_date 判定)
件 context.credentialFilePath。
多提供商并行(配置/启动增强)
DEFAULT_MODEL_PROVIDERS + 号池键集合 预初始化,日志展示“Primary + Additional Providers”。
701(启动日志展示)
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.