mirror of
https://github.com/justlovemaki/AIClient-2-API.git
synced 2026-04-25 09:25:59 +03:00
[PR #94] [MERGED] fix: 修复 Kiro API 工具调用和流式传输问题 #259
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#259
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/94
Author: @MicoMiOvO
Created: 12/3/2025
Status: ✅ Merged
Merged: 12/3/2025
Merged by: @justlovemaki
Base:
main← Head:main📝 Commits (10+)
11094f8fix: remove content deduplication to fix token counting and display01bc3d4fix: correct tool calls parsing for streaming - support structured and bracket formatsf010267fix: ensure content is never empty when sending toolResults6528797fix: only include history when non-emptyf20d860fix: tools calling failed due to nested JSON parsing4562af2fix: skip AWS Event Stream binary headers when parsing JSON80f8ed7fix: filter duplicate consecutive content events from Kiro streamcfb41e6fix: handle multi-part toolUse events (input/stop sent separately)7b767ebfix: deduplicate toolResults to avoid Kiro API validation error5cce0a6fix: merge toolUse events with same toolUseId instead of creating separate blocks📊 Changes
1 file changed (+211 additions, -35 deletions)
View changed files
📝
src/claude/claude-kiro.js(+211 -35)📄 Description
概要
修复 Kiro API 集成中工具调用和流式传输的多个问题。
更改内容
工具调用修复
{"input":{"path":"..."}}{"content":,{"name":等),避免解析二进制头部字节流式传输修复
资源管理
finally块确保出错或完成时销毁流maxSockets和maxFreeSockets防止资源泄漏测试
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.