Skip to content

Commit b3c1a5c

Browse files
authored
Fix return-type typo (#10625)
1 parent 2fc3ac7 commit b3c1a5c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

responses.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,7 @@ For convenience, if the closure you provide to the `stream` method returns a [Ge
385385

386386
```php
387387
Route::post('/chat', function () {
388-
return response()->stream(function (): void {
388+
return response()->stream(function (): Generator {
389389
$stream = OpenAI::client()->chat()->createStreamed(...);
390390

391391
foreach ($stream as $response) {

0 commit comments

Comments
 (0)