openai-php / client

⚡️ OpenAI PHP is a supercharged community-maintained PHP API client that allows you to interact with OpenAI API.
MIT License
4.56k stars 465 forks source link

[Bug]: Support for gpt-4o? #426

Closed carlosvaldesweb closed 2 weeks ago

carlosvaldesweb commented 2 weeks ago

Description

I'm trying to use gpt-4o, but i get

Unknown model name: gpt-4o

Steps To Reproduce

$data = [
            'model' => $this->model, //gpt-4o
            'messages' => $this->messages,
        ];

        $response = $this->client->chat()->create($data);

OpenAI PHP Client Version

0.10.1

PHP Version

8.2

Notes

No response

carlosvaldesweb commented 2 weeks ago

Sorrt, we have a conflict with another package.