Sha256: 46a62225b00212d5b7efbf6a32b1974b00543a812a55a022c8fdfaaf7a129882
Contents?: true
Size: 784 Bytes
Versions: 1
Compression:
Stored size: 784 Bytes
Contents
# frozen_string_literal: true module OpenaiAssistant module Assistant # An openai assistant client class Client attr_accessor :api_key def initialize(api_key) @api_key = api_key end def create_assistant(model, instructions) OpenaiAssistant::Assistant::Create.new(@api_key).create_assistant(model, instructions) end def retrieve_assistant(assistant_id) OpenaiAssistant::Assistant::Retrieve.new(@api_key).retrieve_assistant(assistant_id) end def list_assistant OpenaiAssistant::Assistant::List.new(@api_key).list_assistant end def delete_assistant(assistant_id) OpenaiAssistant::Assistant::Delete.new(@api_key).delete_assistant(assistant_id) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
openai-assistant-1.1.0 | lib/openai_assistant/client.rb |