Skip to content

Commit 72f1279

Browse files
committed
edit: copy
1 parent 4bc38a9 commit 72f1279

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ Each chunk in the stream contains:
213213

214214
> **Note:** The streaming response follows the Server-Sent Events (SSE) format, with each chunk prefixed by `data: `. This is handled in the example above with the `.replace(/^data: /, '')` line.
215215
216-
#### Using the simplified streaming API (Anthropic-like):
216+
#### Using the simplified streaming API:
217217

218218
```jsx
219219
// Use the simplified stream method
@@ -253,7 +253,7 @@ stream.on('error', (error) => {
253253
});
254254
```
255255

256-
This simplified API provides a cleaner interface similar to Anthropic's Claude API, with events for:
256+
This simplified API provides a cleaner interface with events for:
257257

258258
- `text`: Emitted for each new piece of text
259259
- `end`: Emitted when the stream ends, with the full text as an argument

0 commit comments

Comments
 (0)