Sha256: d2e67857546a3b675338a2a3aea925c874c22fd26269d99641c5192af45c61b6
Contents?: true
Size: 550 Bytes
Versions: 4
Compression:
Stored size: 550 Bytes
Contents
module OpenAI class Threads def initialize(client:) @client = client.beta(assistants: "v1") end def list @client.get(path: "/threads") 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
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
ruby-openai-6.3.1 | lib/openai/threads.rb |
ruby-openai-6.3.0 | lib/openai/threads.rb |
ruby-openai-6.2.0 | lib/openai/threads.rb |
ruby-openai-6.1.0 | lib/openai/threads.rb |