Sha256: ea73206c1d00ad6dae08df035d3b88db55134e8ef0eeb01a9cfe2b69f6325878
Contents?: true
Size: 681 Bytes
Versions: 2
Compression:
Stored size: 681 Bytes
Contents
module OpenAI class Messages def initialize(client:) @client = client.beta(assistants: OpenAI::Assistants::BETA_VERSION) end def list(thread_id:, parameters: {}) @client.get(path: "/threads/#{thread_id}/messages", parameters: parameters) end def retrieve(thread_id:, id:) @client.get(path: "/threads/#{thread_id}/messages/#{id}") end def create(thread_id:, parameters: {}) @client.json_post(path: "/threads/#{thread_id}/messages", parameters: parameters) end def modify(id:, thread_id:, parameters: {}) @client.json_post(path: "/threads/#{thread_id}/messages/#{id}", parameters: parameters) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ruby-openai-7.1.0 | lib/openai/messages.rb |
ruby-openai-7.0.1 | lib/openai/messages.rb |