Skip to content

Commit 2f3aa15

Browse files
fix: expect delta to not exist
1 parent 7ec1207 commit 2f3aa15

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Responses/Chat/CreateStreamedResponseChoice.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ public static function from(array $attributes): self
2020
{
2121
return new self(
2222
$attributes['index'],
23-
CreateStreamedResponseDelta::from($attributes['delta']),
23+
CreateStreamedResponseDelta::from($attributes['delta'] ?? []),
2424
$attributes['finish_reason'] ?? null,
2525
);
2626
}

0 commit comments

Comments
 (0)