File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3057,18 +3057,18 @@ use OpenAI\Testing\ClientFake;
30573057use 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
30703070expect($response->getIterator()->current())
3071- ->id->toBe('chatcmpl-6yo21W6LVo8Tw2yBf7aGf2g17IeIl');
3071+ ->id->toBe('chatcmpl-6yo21W6LVo8Tw2yBf7aGf2g17IeIl');
30723072```
30733073
30743074After the requests have been sent there are various methods to ensure that the expected requests were sent:
You can’t perform that action at this time.
0 commit comments