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

Support for Assistants V2 #113

Open
Bassiuz opened this issue May 22, 2024 · 14 comments
Open

Support for Assistants V2 #113

Bassiuz opened this issue May 22, 2024 · 14 comments

Comments

@Bassiuz
Copy link

Bassiuz commented May 22, 2024

Is there any plan to support Assistants V2 in the future? Currently it is not possible to query into 4o, as it only supports the new Assistants V2 integration

{error: {message: 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., type: invalid_request_error, param: model, code: unsupported_model}}
@redevrx
Copy link
Owner

redevrx commented May 23, 2024

@Bassiuz I Add Assistants V2 in Coming soon

@Bassiuz
Copy link
Author

Bassiuz commented May 31, 2024

@redevrx I saw that you built the Assistants V2 and pushed it to main! I tested it and it works fantastic! However, I found a small bug in parsing the thread response. This fixes it:

#114

@redevrx
Copy link
Owner

redevrx commented May 31, 2024 via email

@muka459
Copy link

muka459 commented Jun 1, 2024

Hi, any info when 3.0.9 will be available on pub dev?

@redevrx
Copy link
Owner

redevrx commented Jun 2, 2024

Hi, any info when 3.0.9 will be available on pub dev?

I'm working on run v2. If this one is finished I'll be able to release the next version.

@lzydaphne
Copy link

Hi! thanks for your effort into building this amazing package!
I just wonder when will you release the next version? I would like to use assistant v2 at my course final project lol

@redevrx
Copy link
Owner

redevrx commented Jun 8, 2024

@muka459 @lzydaphne New Release chat_gpt_sdk 3.0.9

@lzydaphne
Copy link

Huge thanks bro! let me try this out

@biodegradable000
Copy link

Pardon my ignorance, but how do I use the v2? What do I have to change in my current code? The documentation is not yet updated, right? I'm not sure where I can find more information on how to implement this.
Thanks for you work in any case!

@redevrx
Copy link
Owner

redevrx commented Jun 25, 2024

@biodegradable000 you can update last version

openAI.thread.v2;
openAI. assistants.v2;

@biodegradable000
Copy link

Thank you!

@biodegradable000
Copy link

Do runs already work with v2? I get an error "The requested model 'gpt-4o' cannot be used with the Assistants API in v1. " when I try to create a run with an gpt4o assistant. Is it me or is this not working yet?
Should this be working?

final runRequest = CreateRun(assistantId: assistantID);
runResult = await globals.chatAI.threads.runs.createRun(threadId: threadID, request: runRequest);

Because the second line is where the error is thrown.
Thank you!

@redevrx
Copy link
Owner

redevrx commented Sep 10, 2024 via email

@biodegradable000
Copy link

Thank you, that actually worked! It was not obvious for me how to use v2. It would be great if you could update the documentation and your examples to the new possibilities. That would be very helpful.

Thanks a lot!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants