[GH-ISSUE #22] Cherry Studio上不能流式输出 #20

Closed
opened 2026-02-27 07:17:25 +03:00 by kerem · 1 comment
Owner

Originally created by @mailbyms on GitHub (Aug 7, 2025).
Original GitHub issue: https://github.com/justlovemaki/AIClient-2-API/issues/22

使用 kiro oauth,把接口填到 cherry studio,发现输出是一整块输出,不是流式,虽然后台日志打印了 stream:true

2025/8/7 15:51:21
[Server] Received request: POST http://localhost:3000/v1/messages
[Config] Ignoring invalid MODEL_PROVIDER in path segment: v1
[Request Convert] Request format matches backend provider. No conversion needed.
[Content Generation] Model: claude-3-7-sonnet-20250219, Stream: true
2025/8/7 15:51:21 [INPUT]:
如何设置流式输出
--------------------------------------

2025/8/7 15:51:32 [OUTPUT]:
流式输出的设置方式取决于您使用的具体平台或工具:

## API调用方式
如果您通过API使用Claude:
```python
# 使用官方SDK
import anthropic

client = anthropic.Anthropic(api_key="your-api-key")
Originally created by @mailbyms on GitHub (Aug 7, 2025). Original GitHub issue: https://github.com/justlovemaki/AIClient-2-API/issues/22 使用 kiro oauth,把接口填到 cherry studio,发现输出是一整块输出,不是流式,虽然后台日志打印了 stream:true ``` 2025/8/7 15:51:21 [Server] Received request: POST http://localhost:3000/v1/messages [Config] Ignoring invalid MODEL_PROVIDER in path segment: v1 [Request Convert] Request format matches backend provider. No conversion needed. [Content Generation] Model: claude-3-7-sonnet-20250219, Stream: true 2025/8/7 15:51:21 [INPUT]: 如何设置流式输出 -------------------------------------- 2025/8/7 15:51:32 [OUTPUT]: 流式输出的设置方式取决于您使用的具体平台或工具: ## API调用方式 如果您通过API使用Claude: ```python # 使用官方SDK import anthropic client = anthropic.Anthropic(api_key="your-api-key") ```
kerem closed this issue 2026-02-27 07:17:26 +03:00
Author
Owner

@justlovemaki commented on GitHub (Aug 7, 2025):

kiro的接口就不支持流式,这也是大多数人觉得kiro的claude慢的原因。
所以只是在接口层面做了流式的模拟,让它兼容流式接口。

<!-- gh-comment-id:3163033882 --> @justlovemaki commented on GitHub (Aug 7, 2025): kiro的接口就不支持流式,这也是大多数人觉得kiro的claude慢的原因。 所以只是在接口层面做了流式的模拟,让它兼容流式接口。
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/AIClient-2-API-justlovemaki#20
No description provided.