LLM Drivers provide a flexible interface to connect with different AI providers while maintaining a consistent API for your application.
OPENAI_API_KEY
to your .env
file.GROQ_API_KEY
to your .env
file and use “groq” provider in your agentsdefault
(OpenAI) gemini
& groq
drivers pre-configured in config/laragent.php
providers.
You can use them right away or delete which isn’t needed.config/laragent.php
):
fallback_provider
to null
in configuration file or just by removing it.
LlmDriver
interface: