lib/gen_ai.rb in gen-ai-0.0.1 vs lib/gen_ai.rb in gen-ai-0.1.0

- old
+ new

@@ -1,13 +1,14 @@ # frozen_string_literal: true -require_relative "version" +require 'zeitwerk' +require 'pry' +loader = Zeitwerk::Loader.for_gem +loader.inflector.inflect('gen_ai' => 'GenAI', 'open_ai' => 'OpenAI') +loader.setup + module GenAI class Error < StandardError; end - class UnsupportedConfiguration < Error; end - # Your code goes here... + class ApiError < Error; end + class UnsupportedProvider < Error; end end - -require_relative "language/google_palm" -require_relative "language/open_ai" -require_relative "language"