Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Undefinded array key "created" in src/Responses/Models/RetrieveResponse #457

Open
BjornValkOptimizers opened this issue Jul 26, 2024 · 0 comments
Labels
Azure bug Something isn't working

Comments

@BjornValkOptimizers
Copy link

Description

When using the Azure OpenAI, calling $client->models()->list() will result in a "Undefined array key "created" exception thrown by src/Responses/Models/RetrieveResponse.

Steps To Reproduce

create a client using:
$client = OpenAI::factory()
->withBaseUri('{your-resource-name}.openai.azure.com/openai')
->withHttpHeader('api-key', '{your-api-key}')
->withQueryParam('api-version', '{version}')
->make();

fetch and output the response of models list using $client->models()->list()

OpenAI PHP Client Version

v0.10.1

PHP Version

8.1.0

Notes

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Azure bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants