anasfik / openai

Dart/Flutter SDK for ChatGPT and all OpenAI APIs (GPT, Dall-e..)
https://pub.dev/packages/dart_openai
MIT License
540 stars 153 forks source link

Support new features from DevDay #112

Open danmou opened 8 months ago

danmou commented 8 months ago

OpenAI just released some new features to their API, namely:

Here are the corresponding changes in the Python API, for reference.

anasfik commented 8 months ago

Hello @danmou.

I will work on new things once I get older issues fixed, if you can code implment this or anyone can from the community, I will be happy to review and merge it.

anasfik commented 8 months ago

After rethinking, I don't really want to invest time to implement such BETA features, since I am sure they will just move and change around after a while as it happens with the chat API and functions...

Let me know if anyone needs this really for production use. otherwise, I will be happy to review your pull requests and help with them.

patgpt commented 8 months ago

I would like to add the beta features to instance. I will do my best to maintain the breaking changes.

anasfik commented 8 months ago

@patgpt

Cool, let me know if you got issues or questions.

odedsolutions commented 8 months ago

JsonMode is something worth supporting IMO and relatively super easy.

https://platform.openai.com/docs/guides/text-generation/json-mode

anasfik commented 7 months ago

JsonMode is something worth supporting IMO and relatively super easy.

https://platform.openai.com/docs/guides/text-generation/json-mode

It is already implmented.

anasfik commented 7 months ago

The dall-e-3 (model field for image methods), text-to-speech, vision input for chats and other old APIs feature changes are implemented.

anasfik commented 7 months ago

@patgpt We would appreciate it if you could handle the threads and assistant new features that are in BETA.

RockStone commented 7 months ago

@patgpt We would appreciate it if you could handle the threads and assistant new features that are in BETA.

very much appreciate it. though in Beta, these features can come really handy if implemented 🙏🏼 wish I could help but I've not much experience 🥲

anasfik commented 7 months ago

Anu updates on this?

anasfik commented 7 months ago

if anyone is interested in working on this, these are the BETA features that I don't intend to touch until they are in alpha or stable in the API reference:

if you want to help, please do.

odedsolutions commented 7 months ago

Thanks for all the progress!

RockStone commented 7 months ago

doesn't seem like this is going anywhere? 🥹

peoplesdriver commented 7 months ago

Hi, Anybody made any progress with the Assistant API, I would really like to integrate it in my app. Thank you

anasfik commented 7 months ago

Hi, Anybody made any progress with the Assistant API, I would really like to integrate it in my app. Thank you

do you need it for a production app? I intend currently to support it once it gets out of BETA phase, so I can ensure I don't reimplement the same things twice.

5hirish commented 7 months ago

Hey y'all, looking at the assistant APIs, there is lot to be desired honestly. And hence, a lot of room for improvement. It seems highly unlikely that unofficial SDKs would take on that kinda implementation efforts when the APIs are expected to go through a lot of changes. I am building an MVP and I went ahead and implemented those APIs from scratch if anyone wants to reuse them feel free to reach out to me via Twitter or mail. I might be able to get you a head start!

RockStone commented 7 months ago

Hey y'all, looking at the assistant APIs, there is lot to be desired honestly. And hence, a lot of room for improvement. It seems highly unlikely that unofficial SDKs would take on that kinda implementation efforts when the APIs are expected to go through a lot of changes. I am building an MVP and I went ahead and implemented those APIs from scratch if anyone wants to reuse them feel free to reach out to me via Twitter or mail. I might be able to get you a head start!

Hi Shirish, I do need the assistant API for my app. Did you build it based on this dart_openai package or totally from scratch?

davidmigloz commented 6 months ago

https://pub.dev/packages/openai_dart now supports the assistant API (docs)

anasfik commented 4 months ago

@5hirish Thank you for helping the community out.

anasfik commented 4 months ago

@davidmigloz

Thank you!

anasfik commented 2 months ago

I knew they will deprecate things there.

Update: still waiting for a stable release for the Assistant & Threads.. APIs to have them in the package.