中断问题比较严重 之前版本是会莫名其妙封号 刚开始用一两下就封号了 Windows
插件用不了是已知问题,已经安排修复计划中,这周会将原有的拆入到插件中完善
我看到今天有更新 kiro反代的那个流式输出截断问题解决了吗
测试环境Windows10
版本proxycast 0.31 直接使用kiro中导出的oauth凭证 还是无法正常使用cc反代 会出现文字截断问题
目前使用aiclient2api 搭配proxycast 使用api key的方式可以正常回复和使用 或许是一个解决方向
17:45:36
[INFO]
[CLAUDE] 使用 Claude API 代理: base_url=http://localhost:3000 -> http://localhost:3000/v1/messages credential_uuid=fallback stream=true
17:45:36
[DEBUG]
[CLAUDE] 请求参数: {"model":"claude-opus-4-5-20251101","messages":[{"role":"user","content":[{"text":"\nAs you answer the user's questions, you can use the following context:\n# claudeMd\nCodebase and user instructions are shown below. Be sure to adhere to these instructions. IMPORTANT: These instructions OVERRIDE any default behavior and you MUST follow them exactly as written.\n\nContents of C:\Users\Administrator\.claude\CLAUDE.md (user's private global instructions for all projects):\n\n>
17:45:38
[INFO]
[CLAUDE] 响应状态: status=200 OK model=claude-opus-4-5-20251101 stream=true
17:45:38
[INFO]
[CLAUDE] 流式请求,透传 SSE 响应
17:45:38
[INFO]
[HOT_RELOAD] 检测到配置文件变更: "C:\Users\Administrator\AppData\Roaming\proxycast\flows"
17:45:38
[INFO]
[HOT_RELOAD] 配置热重载成功
17:45:38
[INFO]
[HOT_RELOAD] 凭证池同步完成,共 0 个凭证
17:45:45
[INFO]
[CLAUDE] 使用 Claude API 代理: base_url=http://localhost:3000 -> http://localhost:3000/v1/messages credential_uuid=fallback stream=true
17:45:45
[DEBUG]
[CLAUDE] 请求参数: {"model":"claude-opus-4-5-20251101","messages":[{"role":"user","content":[{"text":"\nAs you answer the user's questions, you can use the following context:\n# claudeMd\nCodebase and user instructions are shown below. Be sure to adhere to these instructions. IMPORTANT: These instructions OVERRIDE any default behavior and you MUST follow them exactly as written.\n\nContents of C:\Users\Administrator\.claude\CLAUDE.md (user's private global instructions for all projects):\n\n>
17:45:46
[INFO]
[CLAUDE] 响应状态: status=200 OK model=claude-opus-4-5-20251101 stream=true
17:45:46
[INFO]
[CLAUDE] 流式请求,透传 SSE 响应
17:45:46
[INFO]
[HOT_RELOAD] 检测到配置文件变更: "C:\Users\Administrator\AppData\Roaming\proxycast\flows"
17:45:46
[INFO]
[HOT_RELOAD] 配置热重载成功
17:45:46
[INFO]
[HOT_RELOAD] 凭证池同步完成,共 0 个凭证
17:45:56
[INFO]
[CLAUDE] 使用 Claude API 代理: base_url=http://localhost:3000 -> http://localhost:3000/v1/messages credential_uuid=fallback stream=true
17:45:56
[DEBUG]
[CLAUDE] 请求参数: {"model":"claude-opus-4-5-20251101","messages":[{"role":"user","content":[{"text":"\nAs you answer the user's questions, you can use the following context:\n# claudeMd\nCodebase and user instructions are shown below. Be sure to adhere to these instructions. IMPORTANT: These instructions OVERRIDE any default behavior and you MUST follow them exactly as written.\n\nContents of C:\Users\Administrator\.claude\CLAUDE.md (user's private global instructions for all projects):\n\n>
17:45:57
[INFO]
[CLAUDE] 响应状态: status=200 OK model=claude-opus-4-5-20251101 stream=true
17:45:57
[INFO]
[CLAUDE] 流式请求,透传 SSE 响应
我也感觉断流 就是有的时候回答到一部分 就直接没声音了 直接断了
感谢反馈!我已经在 v0.32.0 中做了一些流式响应的优化:
-
HTTP 客户端超时配置:
- 连接超时:30 秒
- 总超时:10 分钟(支持长时间流式响应)
- TCP keepalive:60 秒
-
SSE 响应头优化:
Cache-Control: no-cache, no-store, must-revalidate
X-Accel-Buffering: no(禁用代理缓冲)
Transfer-Encoding: chunked
需要确认几个问题:
-
你使用的是哪种凭证类型?
- [ ] Kiro OAuth 凭证(直接在 ProxyCast 中配置)
- [ ] Claude API Key(通过 aiclient2api 转发)
-
如果是通过 aiclient2api 转发,能否尝试直接使用 Kiro OAuth 凭证?
- 在 ProxyCast 中添加 Kiro 凭证(选择 Kiro 类型,指定 token 文件路径)
- 这样可以排除 aiclient2api 的问题
-
能否提供更详细的日志?
- 在 ProxyCast 中查看完整的请求/响应日志
- 特别是流式响应是否有
[KIRO_STREAM] 或 [CLAUDE] 前缀
临时解决方案:
如果你目前使用 aiclient2api 可以正常工作,建议继续使用这种方式。我们会继续调查直接使用 Kiro OAuth 凭证时的问题。