Support for Assistants V2
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}}
@Bassiuz I Add Assistants V2 in Coming soon
@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:
https://github.com/redevrx/chat_gpt_sdk/pull/114
Thank you I will merge to main
Hi, any info when 3.0.9 will be available on pub dev?
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.
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
@muka459 @lzydaphne New Release chat_gpt_sdk 3.0.9
Huge thanks bro! let me try this out
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!
@biodegradable000 you can update last version
openAI.thread.v2;
openAI. assistants.v2;
Thank you!
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!
You should change code to v2
globals.chatAI.threads.v2.runs
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!