Skip to content

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

@BjornValkOptimizers

Description

@BjornValkOptimizers

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Non-OpenAI ModelNot an OpenAI Model.bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions