Skip to content

[Bug]: Warning: undefined array key 'id' using chat() #568

Description

@the-fermi-paradox

Description

Another error with using the client to interact with Gemini - once again, Google doesn't provide a field (id) that the client expects to be present in the response.

Steps To Reproduce

return $client->chat()->create([
            'model' => 'gemini-2.0-flash',
            'messages' => [
                ['role' => 'user', 'content' => $text],
            ],
        ]);

OpenAI PHP Client Version

v0.10.3

PHP Version

8.4

Notes

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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