go-openai icon indicating copy to clipboard operation
go-openai copied to clipboard

assistants API

Open Koeng101 opened this issue 2 years ago • 6 comments

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.

Koeng101 avatar Nov 07 '23 05:11 Koeng101

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

danai-antoniou avatar Nov 07 '23 18:11 danai-antoniou

Holy crap. That was fast.

Koeng101 avatar Nov 07 '23 18:11 Koeng101

I think threads and runs must have a separated PRs

henomis avatar Nov 07 '23 18:11 henomis

@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.

henomis avatar Nov 09 '23 08:11 henomis

@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

kb avatar Nov 10 '23 16:11 kb

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

henomis avatar Nov 10 '23 18:11 henomis