openai-php / client

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

Undefined array key "transient" #167

Closed ofaws closed 1 year ago

ofaws commented 1 year ago

I constantly get this error from Whisper API:

image

Does anyone know how to fix it?

nunomaduro commented 1 year ago

Are you using the latest version of our package?

ofaws commented 1 year ago

Currently I have v0.4.2. Will upgrade and check again. Thank you)

SanderMuller commented 1 year ago

@nunomaduro I got this error on 0.5.2, upgraded to 0.5.3 but I am still getting it.

image

pb30 commented 1 year ago

upgraded to 0.5.3 but I am still getting it.

0.5.3 or 0.6.3? Latest is 0.6.3

ofaws commented 1 year ago

Upgrading to 0.6.3 solved issue for me

SanderMuller commented 1 year ago

Ah, openai-php/laravel didn't want to upgrade past v0.5.3. Not sure how tags vs releases work, but maybe the Laravel wrapper requires some releases @nunomaduro

pb30 commented 1 year ago

openai-php/laravel also has v0.6.3 version which should require 0.6.3 of this library. You can require/upgrade them both with:

composer require -W "openai-php/client:^v0.6.3" "openai-php/laravel:^v0.6.3"

SanderMuller commented 1 year ago

I did upgrade them by changing the version in my composer.json for openai-php/laravel and no longer face this issue, but I would expect that composer update openai-php/laravel or composer update pulls in v0.6.3 but it stays on 0.5.3 somehow

SanderMuller commented 1 year ago

Update: while it's fixed on v0.6.3 for the transcription call, it still gives this exception for the translation call. I have created #168 which fixes this, similar to #160

nunomaduro commented 1 year ago

You guys need to simply use the latest version of both the API Client and Laravel integration: v0.6.