Sha256: 8bddffcdf8cb2bc0bbc78aac17d4e4de155d3793c914b441a06d77f071490a8e
Contents?: true
Size: 568 Bytes
Versions: 7
Compression:
Stored size: 568 Bytes
Contents
module OpenAI class Assistants def initialize(client:) @client = client.beta(assistants: "v1") end def list @client.get(path: "/assistants") end def retrieve(id:) @client.get(path: "/assistants/#{id}") end def create(parameters: {}) @client.json_post(path: "/assistants", parameters: parameters) end def modify(id:, parameters: {}) @client.json_post(path: "/assistants/#{id}", parameters: parameters) end def delete(id:) @client.delete(path: "/assistants/#{id}") end end end
Version data entries
7 entries across 7 versions & 2 rubygems