Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit c9e4fa9

Browse filesBrowse files
authored
Merge pull request openai-php#471 from datashaman/attachments-error
Fix 'attachments' key exception on thread message modify
2 parents 5bfb908 + d7a346e commit c9e4fa9
Copy full SHA for c9e4fa9

File tree

Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed

‎src/Responses/Threads/Messages/ThreadMessageResponse.php

Copy file name to clipboardExpand all lines: src/Responses/Threads/Messages/ThreadMessageResponse.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public static function from(array $attributes, MetaInformation $meta): self
6161

6262
$attachments = array_map(
6363
fn (array $attachment): ThreadMessageResponseAttachment => ThreadMessageResponseAttachment::from($attachment),
64-
$attributes['attachments']
64+
$attributes['attachments'] ?? []
6565
);
6666

6767
return new self(

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.