Hi,
new user of this wonderful library: many thanks to everybody involved!
I'm running into an issue when using the files endpoint giving me the following error:
OpenAI\Responses\Files\RetrieveResponse::__construct(): Argument #3 ($bytes) must be of type int, null given, called in /[xxxxxxxx]/vendor/openai-php/client/src/Responses/Files/RetrieveResponse.php on line 50
pinging issue #313 here as that actually isn't solved but working around the issue by not using the files endpoint.
Steps To Reproduce
try to get a list of files:
$response = $client->files()->list();
try to get the file object for a file with id file-xyz
Description
Hi, new user of this wonderful library: many thanks to everybody involved!
I'm running into an issue when using the files endpoint giving me the following error:
pinging issue #313 here as that actually isn't solved but working around the issue by not using the files endpoint.
Steps To Reproduce
The organization has files in it and the file with I'm trying to receive exists as I can download it just fine when doing:
both 1 and 2 will result in the error.
If anymore information is needed, just ask.
OpenAI PHP Client Version
v0.8.1
PHP Version
8.2.15
Notes
When doing a curl lookup curl https://api.openai.com/v1/files -H "Authorization: Bearer [my super secret key]"
I get a correct response but do notice that there are files with bytes = null (see snippet below)