alexrudall / ruby-openai

OpenAI API + Ruby! 🤖❤️
https://insertrobot.com
MIT License
2.79k stars 332 forks source link

Need documentation for the Assistants, Threads, Messages & Runs endpoints! #376

Closed alexrudall closed 6 months ago

alexrudall commented 11 months ago
hsztan commented 11 months ago

Hi @alexrudall. Where can I find documentation or examples for the assistants | threads | message | runs workflows? 😎

PetrosKalafatidis commented 11 months ago

I can help you to add these examples on the README

alexrudall commented 11 months ago

I can help you to add these examples on the README

I'd really appreciate a PR on this @PetrosKalafatidis ! Thank you! Following the style of the existing README, with examples that can just be copy pasted and work.

alexrudall commented 11 months ago

Shout out to @coezbek for adding Assistants docs! 3 more to go:

coezbek commented 11 months ago

I have some work in progress on Threads and Messages, but am lacking some testing on using the function call tool:

https://github.com/alexrudall/ruby-openai/compare/main...coezbek:ruby-openai:coezbek-readme-assistant

Hope to have it done in the next couple of days.

alexrudall commented 11 months ago

Legend!

coezbek commented 11 months ago

Done in PR #404

BassamAziz commented 9 months ago

hey guys, is the assistants api working for you? I'm getting undefined method error. undefined methodassistants' for #<OpenAI::Client:0x00007fb03182d7d0 @models=#> ` and from the official doc, it says add the beta header, but i also get undefined method for the .add_headers method any clue?

Thanks, Bassam

isasi88 commented 8 months ago

Hi @BassamAziz, I'm having the same problem. Any fix?

alexrudall commented 6 months ago

@BassamAziz @isasi88 I'm guessing you were on an older version of the library? If still an issue, let me know.