Sha256: 30731012f34ebdba3db3cc3d1be1622fca5c217651d498733b7eaa7040da2da7
Contents?: true
Size: 492 Bytes
Versions: 2
Compression:
Stored size: 492 Bytes
Contents
module OpenAI class Threads def initialize(client:) @client = client.beta(assistants: "v2") end def retrieve(id:) @client.get(path: "/threads/#{id}") end def create(parameters: {}) @client.json_post(path: "/threads", parameters: parameters) end def modify(id:, parameters: {}) @client.json_post(path: "/threads/#{id}", parameters: parameters) end def delete(id:) @client.delete(path: "/threads/#{id}") end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ruby-openai-transitory-v2-6.5.3 | lib/openai/threads.rb |
ruby-openai-transitory-v2-6.5.2 | lib/openai/threads.rb |