Closed thomasdv closed 4 months ago
New Assistants API requires the OpenAI-Beta: assistants=v2 header. However it seems v1 is hardcoded in the library.
OpenAI-Beta: assistants=v2
v1
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."
Send request to any of the Assistants endpoint with gpt-4o model.
No response
Any
5.1
If it's possible, could you please open a pr for this issue?
Thanks.
Issue addressed in PR https://github.com/orhanerday/open-ai/pull/141
Sorry for the delay, thank you so much.
Describe the bug
New Assistants API requires the
OpenAI-Beta: assistants=v2
header. However it seemsv1
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