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", "    # frozen_string_literal: true\n\n    Groq.configure do |config|\n      config.api_key = ENV[\"GROQ_API_KEY\"]\n      config.model_id = \"llama3-70b-8192\"\n    end\n  RUBY\nend\n"