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 b25a26e

Browse filesBrowse files
Update RetrieveJobResponseError.php
1 parent 9a520de commit b25a26e
Copy full SHA for b25a26e

File tree

Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Open diff view settings
Collapse file

‎src/Responses/FineTuning/RetrieveJobResponseError.php‎

Copy file name to clipboardExpand all lines: src/Responses/FineTuning/RetrieveJobResponseError.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ private function __construct(
3131
*/
3232
public static function from(array $attributes): ?self
3333
{
34-
if (key_exists('error', $attributes) && is_null($attributes['error'])) {
34+
if ((key_exists('error', $attributes) && is_null($attributes['error'])) || !isset($attributes['code']) || !isset($attributes['param']) || !isset($attributes['message'])) {
3535
return null;
3636
}
3737
return new self(

0 commit comments

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