alexrudall / ruby-openai

OpenAI API + Ruby! 🤖❤️ NEW: Assistant Vector Stores
MIT License
2.73k stars 321 forks source link

Support API Create a thread and run it in one request. #385

Closed quocphien90 closed 5 months ago

quocphien90 commented 10 months ago

Summary

Usage

OpenAI::Client.new.runs.create_thread_and_run(
  parameters: {
    assistant_id: assistant_id,
    thread: {
      messages: [{ role: "user", content: "Describe a character called Anna!", file_ids: [] }]
    }
  }
)

All Submissions:

manuelmeurer commented 10 months ago

Would be great to get this merged! :)

manuelmeurer commented 9 months ago

@alexrudall Would it be possible to include this in the next release? I've been using it for a month now and it's solid! 🧱

manuelmeurer commented 5 months ago

@alexrudall Could we include this PR in the next version please?

Saicheg commented 5 months ago

@alexrudall ++ for this endpoint, would be lovely to release it as soon as possible 👁️