redevrx / chat_gpt_sdk

Flutter ChatGPT
https://pub.dev/packages/chat_gpt_sdk
MIT License
308 stars 157 forks source link

Support for Assistants V2 #113

Open Bassiuz opened 1 month ago

Bassiuz commented 1 month ago

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 commented 1 month ago

@Bassiuz I Add Assistants V2 in Coming soon

Bassiuz commented 1 month ago

@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

redevrx commented 1 month ago

Thank you I will merge to main

muka459 commented 1 month ago

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

redevrx commented 1 month ago

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 commented 3 weeks ago

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 commented 3 weeks ago

@muka459 @lzydaphne New Release chat_gpt_sdk 3.0.9

lzydaphne commented 3 weeks ago

Huge thanks bro! let me try this out

biodegradable000 commented 1 week ago

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 commented 1 week ago

@biodegradable000 you can update last version

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