papi-ai/groq

Groq provider for PapiAI

Maintainers

Package info

github.com/papi-ai/groq

pkg:composer/papi-ai/groq

Statistics

Installs: 0

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

v0.9.1 2026-03-08 18:14 UTC

This package is not auto-updated.

Last update: 2026-03-11 16:39:56 UTC


README

Tests

Groq provider for PapiAI - A simple but powerful PHP library for building AI agents.

Installation

composer require papi-ai/groq

Usage

use PapiAI\Core\Agent;
use PapiAI\Groq\GroqProvider;

$provider = new GroqProvider(
    apiKey: $_ENV['GROQ_API_KEY'],
);

$agent = new Agent(
    provider: $provider,
    instructions: 'You are a helpful assistant.',
);

$response = $agent->run('Hello!');
echo $response->text;

Available Models

GroqProvider::MODEL_LLAMA_3_3_70B  // 'llama-3.3-70b-versatile' (default)
GroqProvider::MODEL_LLAMA_3_1_8B   // 'llama-3.1-8b-instant' (fast)
GroqProvider::MODEL_MIXTRAL_8X7B   // 'mixtral-8x7b-32768'

Features

  • Ultra-fast inference via Groq LPU
  • Tool/function calling
  • Streaming support

License

MIT