mirror of
https://github.com/justlovemaki/AIClient-2-API.git
synced 2026-04-25 01:16:01 +03:00
[PR #343] refactor: 提取凭证错误处理与重试逻辑为共享函数 #344
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#344
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/343
Author: @lly835
Created: 2/26/2026
Status: 🔄 Open
Base:
main← Head:refactor/extract-retry-logic📝 Commits (1)
bc16f2frefactor: 提取凭证错误处理与重试逻辑为共享函数 handleCredentialErrorAndRetry📊 Changes
1 file changed (+95 additions, -153 deletions)
View changed files
📝
src/utils/common.js(+95 -153)📄 Description
handleStreamRequest 和 handleUnaryRequest 中有约 150 行几乎完全相同的凭证标记不健康 + 切换重试逻辑,提取为 handleCredentialErrorAndRetry 共享函数。
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.