diff --git a/composer.json b/composer.json index e964005b..f51f8748 100644 --- a/composer.json +++ b/composer.json @@ -1,5 +1,5 @@ { - "name": "openai-php/client", + "name": "shellrent/openai-php-client", "description": "OpenAI PHP is a supercharged PHP API client that allows you to interact with the Open AI API", "keywords": ["php", "openai", "sdk", "codex", "GPT-3", "DALL-E", "api", "client", "natural", "language", "processing"], "license": "MIT", diff --git a/src/Responses/FineTuning/RetrieveJobResponseError.php b/src/Responses/FineTuning/RetrieveJobResponseError.php index 1fa9ebf4..6e590b17 100644 --- a/src/Responses/FineTuning/RetrieveJobResponseError.php +++ b/src/Responses/FineTuning/RetrieveJobResponseError.php @@ -18,9 +18,9 @@ final class RetrieveJobResponseError implements ResponseContract use ArrayAccessible; private function __construct( - public readonly string $code, + public readonly ?string $code, public readonly ?string $param, - public readonly string $message, + public readonly ?string $message, ) { } @@ -32,9 +32,9 @@ private function __construct( public static function from(array $attributes): ?self { return new self( - $attributes['code'], - $attributes['param'], - $attributes['message'], + $attributes['code'] ?? null, + $attributes['param'] ?? null, + $attributes['message'] ?? null, ); }