lib/openai_assistant/client.rb in openai-assistant-1.0.0 vs lib/openai_assistant/client.rb in openai-assistant-1.1.0

- old
+ new

@@ -1,30 +1,30 @@ # frozen_string_literal: true -module OpenaiAsissistant +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) - OpenaiAsissistant::Assistant::Create.new(@api_key).create_assistant(model, instructions) + OpenaiAssistant::Assistant::Create.new(@api_key).create_assistant(model, instructions) end def retrieve_assistant(assistant_id) - OpenaiAsissistant::Assistant::Retrieve.new(@api_key).retrieve_assistant(assistant_id) + OpenaiAssistant::Assistant::Retrieve.new(@api_key).retrieve_assistant(assistant_id) end def list_assistant - OpenaiAsissistant::Assistant::List.new(@api_key).list_assistant + OpenaiAssistant::Assistant::List.new(@api_key).list_assistant end def delete_assistant(assistant_id) - OpenaiAsissistant::Assistant::Delete.new(@api_key).delete_assistant(assistant_id) + OpenaiAssistant::Assistant::Delete.new(@api_key).delete_assistant(assistant_id) end end end end