Skip to content

Adding Groq API client

Choose a tag to compare

@javiergs javiergs released this 05 Mar 08:23
· 138 commits to main since this release

New Features

  • Added Groq API client support to the TULIP library.
  • New package: tulip.groq

Includes:

  • GroqClient – main interface for interacting with the Groq API
  • GroqConfig – configuration class for API key, base URL, and model
  • GroqMessage – simple message object used for chat interactions

Capabilities

The Groq client supports:

  • Chat completions using Groq LLMs
  • Single prompt requests
  • Multi-message conversations
  • Configurable parameters (model, temperature, max tokens)

Example Usage

GroqConfig cfg = new GroqConfig(apiKey, baseUrl, model);
GroqClient groq = new GroqClient(cfg);

String answer = groq.chat("Explain the pipeline pattern in software engineering.");

Configuration

GROQ_API_KEY
GROQ_BASE_URL=https://api.groq.com/openai/v1
GROQ_MODEL=llama-3.3-70b-versatile

Purpose

This release extends TULIP to support AI-assisted features via Groq,
complementing the existing integrations with GitHub and Taiga.