Class: AI::Engine::OpenAI::Threads::Create
- Inherits:
-
Object
- Object
- AI::Engine::OpenAI::Threads::Create
- Defined in:
- app/services/ai/engine/openai/threads/create.rb
Class Method Summary collapse
-
.call ⇒ Object
Gets the OpenAI ID of a new Thread.
Class Method Details
.call ⇒ Object
Gets the OpenAI ID of a new Thread.
3 4 5 6 7 |
# File 'app/services/ai/engine/openai/threads/create.rb', line 3 def self.call response = client.threads.create(parameters: {}) response["id"] end |