Skip to content

Groq Prompt Driver

The Groq Prompt Driver node allows you to configure and utilize Groq's language models within the Griptape Nodes framework. This node provides access to Groq's high-performance inference engine and various language models.

Configuration

API Key

To use the Groq Prompt Driver, you need to provide a Groq API key. You can obtain an API key from the Groq Console.

Available Models

The Groq Prompt Driver supports the following models:

Production Models

Preview Models

Parameters

The Groq Prompt Driver supports the following configuration parameters:

Parameter Type Default Description
model string gemma2-9b-it The Groq model to use for text generation
temperature float 0.7 Controls randomness in the output (0.0 to 1.0)
top_p float 0.9 Controls diversity via nucleus sampling (0.0 to 1.0)
max_tokens integer 2048 Maximum number of tokens to generate
stream boolean false Whether to stream the response
max_attempts integer 3 Maximum number of retry attempts for failed requests

Usage

  1. Add the Groq Prompt Driver node to your workflow
  2. Make sure to get an API key here: Groq API Keys
  3. Configure your GROQ_API_KEY in the Griptape Configuration settings
  4. Select your desired model from the available options
  5. Adjust the generation parameters as needed
  6. Connect the node to other nodes in your workflow

Notes

  • The Groq Prompt Driver uses the OpenAI-compatible API endpoint at https://api.groq.com/openai/v1
  • Preview models are intended for evaluation purposes and may be discontinued at short notice
  • Production models are recommended for production environments
  • The node automatically handles API key validation before workflow execution