q2api icon indicating copy to clipboard operation
q2api copied to clipboard

求助大佬,claude code使用总是发起很多重复的请求和响应,还有API 调用工具错误的问题

Open ixxxxoooo opened this issue 11 months ago • 4 comments

重复的请求如图:Image

重复的请求很容易陷入无限循环。

工具主要是:API Error: Tool use input must be a string or object 还有就是有时候写文件失败。

ixxxxoooo avatar Dec 05 '25 17:12 ixxxxoooo

stream的问题,这个要等项目维护者修复了。如果有能力的话,你可以自己先把stream给关掉。会好很多

6639835 avatar Dec 06 '25 10:12 6639835

再试试,现在应该没问题了

jerry-271828 avatar Dec 14 '25 12:12 jerry-271828

你搞简单点吧,aws返回的对话没有conversation id,所以会重复。你搞的这些去重我写了很多代码 都没用,随机生成一个conversationid就可以了,tool和对话都不会有问题

On Sun, Dec 14, 2025 at 20:08 jerry-271828 @.***> wrote:

jerry-271828 left a comment (CassiopeiaCode/q2api#13) https://github.com/CassiopeiaCode/q2api/issues/13#issuecomment-3650812561

再试试,现在应该没问题了

— Reply to this email directly, view it on GitHub https://github.com/CassiopeiaCode/q2api/issues/13#issuecomment-3650812561, or unsubscribe https://github.com/notifications/unsubscribe-auth/BBCGQTGXECNNHRSAPEAO3SD4BVHMHAVCNFSM6AAAAACOFS7XICVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZTMNJQHAYTENJWGE . You are receiving this because you commented.Message ID: @.***>

6639835 avatar Dec 14 '25 12:12 6639835

大佬们,我也是这样,而且我token统计那里也不对,经常不会自动压缩

kj326646302 avatar Dec 26 '25 12:12 kj326646302