openai-php / laravel

⚡️ OpenAI PHP for Laravel is a supercharged PHP API client that allows you to interact with OpenAI API
MIT License
2.83k stars 189 forks source link

Undefined array key "file_id" #116

Closed ckefalianou closed 2 weeks ago

ckefalianou commented 4 months ago

I am using the library, sending a text and some image_url as content. After retrieving the Assistant, creating a Thread, I create a Message:

[ 'role' => 'user', 'content' => [ [ 'type' => 'text', 'text' => $prompt['title'] ], [ 'type' => 'image_url', 'image_url' => [ 'url' => $photo[0]->large, 'detail' => 'high', ], ], [ 'type' => 'image_url', 'image_url' => [ 'url' => $photo[1]->large, 'detail' => 'high', ], ], ] ];

Thank you in advance!

elephantux commented 3 months ago

Did you solve this?

gehrisandro commented 2 weeks ago

Fixed