Skip to content
This repository was archived by the owner on Mar 21, 2024. It is now read-only.

Commit 0d0b3cc

Browse files
committed
fix README; clean stream
1 parent 6423306 commit 0d0b3cc

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ $identifiers = $conversation->getIdentifiers();
5959

6060
// ...
6161
// Resume conversation with $identifiers parameter
62-
$conversation = $ai->resumeChatConversation($identifiers);
62+
$conversation = $ai->resumeConversation($identifiers);
6363
```
6464

6565
</details>

src/Conversation.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -114,11 +114,7 @@ public function ask(Prompt $message, $callback = null)
114114
CURLOPT_POSTFIELDS => json_encode($data)
115115
]);
116116

117-
$es->onMessage(function (Event $event) use ($es, &$callback) {
118-
if ($es === 4) {
119-
$es->abort();
120-
}
121-
117+
$es->onMessage(function (Event $event) use (&$callback) {
122118
$message = $this->handlePacket($event->data);
123119

124120
if ($message === false)

0 commit comments

Comments
 (0)