sashabaranov / go-openai

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

assistants API #533

Open Koeng101 opened 1 year ago

Koeng101 commented 1 year ago

Is your feature request related to a problem? Please describe. Today, OpenAI announced their assistants API. I would like support for this API in golang. https://platform.openai.com/docs/api-reference/assistants

Describe the solution you'd like Support for the assistants API

Describe alternatives you've considered N/A

Additional context N/A

I expect others also will want this feature, and hopefully someone is working on a fork right now! If not, I'll probably eventually make one, since I want to use it.

danai-antoniou commented 1 year ago

@henomis thanks so much for adding assistants and threads! 🚀 OOI are you planning on adding runs along with the threads?

Koeng101 commented 1 year ago

Holy crap. That was fast.

henomis commented 1 year ago

I think threads and runs must have a separated PRs

henomis commented 1 year ago

@sashabaranov @vvatanabe Run API PR is completed. It's a lot of code, I need some help from the go-openai community to test/review this one before merging it.

kb commented 1 year ago

@henomis I've been working on some code that is using the Assistant, Thread, Run, (and yet to be merged Message) APIs and things so far have worked out. Just put up a small PR to fix one issue I had with the Runs logic. https://github.com/sashabaranov/go-openai/pull/561

henomis commented 1 year ago

@kb Great job! Thanks for testing! I'll check your PR