mirror of
https://github.com/justlovemaki/AIClient-2-API.git
synced 2026-04-25 17:35:58 +03:00
[PR #95] [MERGED] fix: 修复 Kiro API 工具调用、流式传输优化及号池错误处理 #260
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#260
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/95
Author: @MicoMiOvO
Created: 12/3/2025
Status: ✅ Merged
Merged: 12/3/2025
Merged by: @justlovemaki
Base:
main← Head:main📝 Commits (4)
b850d58fix: prevent resource leak - close streams properly and limit connection poold9e3903perf: move token counting to end of stream to avoid blocking event loop369062efeat: return 400 error when no available provider in pool3976bd2fix: only throw NoAvailableProviderError for Kiro providers📊 Changes
3 files changed (+83 additions, -8 deletions)
View changed files
📝
src/claude/claude-kiro.js(+37 -4)📝
src/common.js(+18 -3)📝
src/service-manager.js(+28 -1)📄 Description
概要
修复 Kiro API 集成的多个问题,并添加号池错误处理。
更改内容
工具调用修复
流式传输修复
性能优化
finally块确保出错或完成时销毁流maxSockets防止资源泄漏号池错误处理
响应格式(号池为空时)
{
"error": {
"type": "no_available_provider",
"message": "号池无可用账号: claude-kiro-oauth"
}
}## 测试
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.