Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OpenAI-Beta: assistants=v2 #140

Closed
thomasdv opened this issue May 16, 2024 · 3 comments
Closed

OpenAI-Beta: assistants=v2 #140

thomasdv opened this issue May 16, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@thomasdv
Copy link

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

@thomasdv thomasdv added the bug Something isn't working label May 16, 2024
@orhanerday
Copy link
Owner

orhanerday commented May 16, 2024

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

Thanks.

@thomasdv
Copy link
Author

Issue addressed in PR #141

@orhanerday
Copy link
Owner

orhanerday commented May 29, 2024

Sorry for the delay, thank you so much.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants