Skip to content

Commit fcb464a

Browse files
Update RetriveJobResponseError
1 parent 38fb90e commit fcb464a

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/Responses/FineTuning/RetrieveJobResponseError.php

+5-5
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ final class RetrieveJobResponseError implements ResponseContract
1818
use ArrayAccessible;
1919

2020
private function __construct(
21-
public readonly string $code,
21+
public readonly ?string $code,
2222
public readonly ?string $param,
23-
public readonly string $message,
23+
public readonly ?string $message,
2424
) {
2525
}
2626

@@ -32,9 +32,9 @@ private function __construct(
3232
public static function from(array $attributes): ?self
3333
{
3434
return new self(
35-
$attributes['code'],
36-
$attributes['param'],
37-
$attributes['message'],
35+
$attributes['code'] ?? null,
36+
$attributes['param'] ?? null,
37+
$attributes['message'] ?? null,
3838
);
3939
}
4040

0 commit comments

Comments
 (0)