orhanerday / open-ai

OpenAI PHP SDK : Most downloaded, forked, contributed, huge community supported, and used PHP (Laravel , Symfony, Yii, Cake PHP or any PHP framework) SDK for OpenAI GPT-3 and DALL-E. It also supports chatGPT-like streaming. (ChatGPT AI is supported)
https://orhanerday.gitbook.io/openai-php-api-1/
MIT License
2.26k stars 285 forks source link

OpenAI-Beta: assistants=v2 #140

Closed thomasdv closed 4 months ago

thomasdv commented 5 months ago

Describe the bug

New Assistants API requires the OpenAI-Beta: assistants=v2 header. However it seems v1 is hardcoded in the library.

API now returns "The requested model 'gpt-4o' cannot be used with the Assistants API in v1. Follow the migration guide to upgrade to v2: https://platform.openai.com/docs/assistants/migration."

To Reproduce

Send request to any of the Assistants endpoint with gpt-4o model.

Code snippets

No response

OS

Any

PHP version

Any

Library version

5.1

orhanerday commented 5 months ago

If it's possible, could you please open a pr for this issue?

Thanks.

thomasdv commented 5 months ago

Issue addressed in PR https://github.com/orhanerday/open-ai/pull/141

orhanerday commented 4 months ago

Sorry for the delay, thank you so much.