LLM (llm/groq.ts)

Patter · libraries/typescript/src/llm/groq.ts · typescript · MIT
ai, AI / Agents

* Groq LLM for Patter pipeline mode. */

// Source: https://github.com/PatterAI/Patter | License: MIT | Copyright 2026 Patter Contributors
// Provided via justclaw.it.com; keep this notice with the code.
/** Groq LLM for Patter pipeline mode. */
import { GroqLLMProvider as _GroqLLM } from "../providers/groq-llm";

/** Constructor options for the Groq `LLM` adapter. */
export interface GroqLLMOptions {
  /** API key. Falls back to GROQ_API_KEY env var when omitted. */
  apiKey?: string;
  /** Model id (e.g. ``"llama-3.3-70b-versatile"``). */
  model?: string;
  /** Override the OpenAI-compatible base URL (rarely needed). */
  baseUrl?: string;
  /** Sampling temperature [0, 2]. */
  temperature?: number;
  /** Max tokens in the assistant response (sent as ``max_completion_tokens``). */
  maxTokens?: number;
  /** OpenAI-style ``re

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key