sashabaranov / go-openai

OpenAI ChatGPT, GPT-3, GPT-4, DALL·E, Whisper API wrapper for Go
Apache License 2.0
8.6k stars 1.29k forks source link

Add support for V2 Assistants #745

Closed qhenkart closed 1 month ago

qhenkart commented 1 month ago

Is your feature request related to a problem? Please describe. OpenAI Quietly released the V2 of the Assistant API, in their migration guide they announced a few major changes mostly related to files. However all of the response objects have been modified. For example, function calling is not possible with this SDK and the V2 of the Assistant API

Describe the solution you'd like The library needs to provide first class support for V2.

Describe alternatives you've considered No alternatives. Support needs to be added

Additional context I will work on the updates

related to: https://github.com/sashabaranov/go-openai/issues/735

qhenkart commented 1 month ago

I made an error about the requirements of supporting V2. There are a lot of fields that need to be added, but existing functionality seems to be working