Class: GenAI::Language

Inherits:
Object
  • Object
show all
Extended by:
Forwardable
Defined in:
lib/gen_ai/language.rb,
lib/gen_ai/language/base.rb,
lib/gen_ai/language/gemini.rb,
lib/gen_ai/language/open_ai.rb,
lib/gen_ai/language/anthropic.rb,
lib/gen_ai/language/google_palm.rb

Defined Under Namespace

Classes: Anthropic, Base, Gemini, GooglePalm, OpenAI

Instance Method Summary collapse

Constructor Details

#initialize(provider, token, options: {}) ⇒ Language

Returns a new instance of Language.



11
12
13
# File 'lib/gen_ai/language.rb', line 11

def initialize(provider, token, options: {})
  build_llm(provider, token, options)
end