Class: Groq::Generators::InstallGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Defined in:
lib/generators/groq/install_generator.rb

Instance Method Summary collapse

Instance Method Details

#create_groq_init_fileObject



8
9
10
11
12
13
14
15
16
17
# File 'lib/generators/groq/install_generator.rb', line 8

def create_groq_init_file
  create_file "config/initializers/groq.rb", <<~RUBY
    # frozen_string_literal: true

    Groq.configure do |config|
      config.api_key = ENV["GROQ_API_KEY"]
      config.model_id = "llama3-70b-8192"
    end
  RUBY
end