Skip to content

Commit a0c09e6

Browse files
committed
Remove array filter on array map for urlCitations
1 parent e5afedf commit a0c09e6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Responses/Chat/CreateResponseChoiceAnnotations.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public static function from(array $attributes): self
1818
{
1919
$urlCitations = array_map(
2020
fn (array $citation) => CreateResponseChoiceAnnotationsUrlCitations::from($citation['url_citation']),
21-
array_filter($attributes, fn (array $annotation) => $annotation['type'] === 'url_citation')
21+
$attributes
2222
);
2323

2424
return new self($urlCitations);

0 commit comments

Comments
 (0)