openai-php / client

⚡️ OpenAI PHP is a supercharged community-maintained PHP API client that allows you to interact with OpenAI API.
MIT License
4.56k stars 466 forks source link

[Bug]: Wrong type RetrieveJobResponseError constructor #342

Open PietroGhislieri98 opened 4 months ago

PietroGhislieri98 commented 4 months ago

Description

OpenAI\Responses\FineTuning\RetrieveJobResponseError::__construct(): Argument #1 ($code) must be of type string, null given, called in /home/apps/manager-shellrent/vendor/openai-php/client/src/Responses/FineTuning/RetrieveJobResponseError.php on line 37 When creating a FineTuning Job, the instance returned from FineTuning::createJob() is an intance of RetrieveJobResponse and gives the error above even if the job from the dashboard is succesfull

Steps To Reproduce

create FineTuning::createJob() that gives a succesful response

OpenAI PHP Client Version

0.8.4

PHP Version

8.1

Notes

No response