[PR #51] [CLOSED] feat(server): 多提供商数组配置与启动初始化; fix(qwen-auth): 复用缓存凭据与账号级刷新清理 #252

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

📋 Pull Request Information

Original PR: https://github.com/justlovemaki/AIClient-2-API/pull/51
Author: @d7185540
Created: 9/18/2025
Status: Closed

Base: mainHead: feature/qwen-auth-and-providers


📝 Commits (1)

  • 96b7a9d feat(server): 多提供商数组配置与启动初始化; fix(qwen-auth): 复用缓存凭据与账号级刷新清理

📊 Changes

8 files changed (+6739 additions, -6579 deletions)

View changed files

📝 .babelrc (+3 -3)
📝 .dockerignore (+22 -22)
📝 .gitignore (+4 -4)
fetch_system_prompt.txt (+1 -0)
📝 package-lock.json (+6419 -6419)
📝 provider_pools.json (+18 -18)
📝 src/api-server.js (+117 -28)
📝 src/openai/qwen-core.js (+155 -85)

📄 Description

  • Qwen OAuth/认证修复

    • 复用本地缓存凭据,避免误入设备授权流
    • 修正缓存凭据有效性判断(access_token + expiry_date)
    • 刷新 400 仅清理当前上下文凭据文件,避免误删其他账号
    • 保留 Qwen 模型名容错回退逻辑
  • 多提供商同时生效(配置与启动增强)

    • 新增 normalizeConfiguredProviders,支持 MODEL_PROVIDER 数组/逗号分隔
    • 启动期依据 DEFAULT_MODEL_PROVIDERS 与号池集合进行适配器初始化
    • 启动日志展示 Primary + Additional Model Providers

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/justlovemaki/AIClient-2-API/pull/51 **Author:** [@d7185540](https://github.com/d7185540) **Created:** 9/18/2025 **Status:** ❌ Closed **Base:** `main` ← **Head:** `feature/qwen-auth-and-providers` --- ### 📝 Commits (1) - [`96b7a9d`](https://github.com/justlovemaki/AIClient-2-API/commit/96b7a9d65b6d8a150e0eb6cd4ebaf9d50008fbb8) feat(server): 多提供商数组配置与启动初始化; fix(qwen-auth): 复用缓存凭据与账号级刷新清理 ### 📊 Changes **8 files changed** (+6739 additions, -6579 deletions) <details> <summary>View changed files</summary> 📝 `.babelrc` (+3 -3) 📝 `.dockerignore` (+22 -22) 📝 `.gitignore` (+4 -4) ➕ `fetch_system_prompt.txt` (+1 -0) 📝 `package-lock.json` (+6419 -6419) 📝 `provider_pools.json` (+18 -18) 📝 `src/api-server.js` (+117 -28) 📝 `src/openai/qwen-core.js` (+155 -85) </details> ### 📄 Description - Qwen OAuth/认证修复 - 复用本地缓存凭据,避免误入设备授权流 - 修正缓存凭据有效性判断(access_token + expiry_date) - 刷新 400 仅清理当前上下文凭据文件,避免误删其他账号 - 保留 Qwen 模型名容错回退逻辑 - 多提供商同时生效(配置与启动增强) - 新增 normalizeConfiguredProviders,支持 MODEL_PROVIDER 数组/逗号分隔 - 启动期依据 DEFAULT_MODEL_PROVIDERS 与号池集合进行适配器初始化 - 启动日志展示 Primary + Additional Model Providers --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-27 07:18:42 +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#252
No description provided.