Skip to content

Commit 7b61b9b

Browse files
authored
Merge pull request #408 from beliven-daniele-sarnari/main
fix: expect delta to not exist
2 parents 9d14eef + 2f3aa15 commit 7b61b9b

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)