diff --git a/README.md b/README.md index e927149..7cca275 100644 --- a/README.md +++ b/README.md @@ -75,11 +75,6 @@ gem install groq - Place in env var `GROQ_API_KEY`, or explicitly pass into configuration below. - Use the `Groq::Client` to interact with Groq and your favourite model. -```plain -rails g groq:install -``` -to generate inializer file - ```ruby client = Groq::Client.new # uses ENV["GROQ_API_KEY"] and "llama3-8b-8192" client = Groq::Client.new(api_key: "...", model_id: "llama3-8b-8192") @@ -91,6 +86,12 @@ end client = Groq::Client.new ``` +In a Rails application, you can generate a `config/initializer/groq.rb` file with: + +```plain +rails g groq:install +``` + There is a simple chat function to send messages to a model: ```ruby