Skip to content

Commit fae210e

Browse files
authored
docs: fix syntax error in README.md example code (#741)
1 parent c52f871 commit fae210e

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3057,18 +3057,18 @@ use OpenAI\Testing\ClientFake;
30573057
use OpenAI\Responses\Chat\CreateStreamedResponse;
30583058

30593059
$client = new ClientFake([
3060-
CreateStreamedResponse::fake(fopen('file.txt', 'r'););
3060+
CreateStreamedResponse::fake(fopen('file.txt', 'r'))
30613061
]);
30623062

30633063
$completion = $client->chat()->createStreamed([
3064-
'model' => 'gpt-3.5-turbo',
3065-
'messages' => [
3066-
['role' => 'user', 'content' => 'Hello!'],
3067-
],
3064+
'model' => 'gpt-3.5-turbo',
3065+
'messages' => [
3066+
['role' => 'user', 'content' => 'Hello!'],
3067+
],
30683068
]);
30693069

30703070
expect($response->getIterator()->current())
3071-
->id->toBe('chatcmpl-6yo21W6LVo8Tw2yBf7aGf2g17IeIl');
3071+
->id->toBe('chatcmpl-6yo21W6LVo8Tw2yBf7aGf2g17IeIl');
30723072
```
30733073

30743074
After the requests have been sent there are various methods to ensure that the expected requests were sent:

0 commit comments

Comments
 (0)