Closed rkgo55 closed 6 months ago
Hello, this library always helps me
The metadata is retrieved from the header, but it doesn't seem to be parsed properly. The azure AI header looks like this: (notice: The type is different from that of openAI)
array:14 [ // vendor/openai-php/client/src/Responses/Meta/MetaInformation.php:31 ~ Omitted ~ "x-ratelimit-remaining-requests" => array:1 [ 0 => INT ] "x-ratelimit-remaining-tokens" => array:1 [ 0 => INT ] ~ Omitted ~ ]
$response = $client->chat()->create([ 'messages' => [ ['role' => 'system', 'content' => 'hello'], ], ]);
0.8.0
8.1.13
No response
For those who are having trouble with this bug You can avoid it using the method below. https://github.com/openai-php/client/issues/218#issuecomment-1748755876
Fixed https://github.com/openai-php/client/pull/307
Description
Hello, this library always helps me
The metadata is retrieved from the header, but it doesn't seem to be parsed properly. The azure AI header looks like this: (notice: The type is different from that of openAI)
Steps To Reproduce
$response = $client->chat()->create([ 'messages' => [ ['role' => 'system', 'content' => 'hello'], ], ]);
OpenAI PHP Client Version
0.8.0
PHP Version
8.1.13
Notes
No response