Pages · Laravilt
Perplexity
Use Perplexity Sonar models with built-in web search.
Laravilt\AI\Providers\PerplexityProvider uses the Perplexity API (https://api.perplexity.ai). Sonar models answer with up-to-date web results.
Configuration
env
Models
Laravilt\AI\Enums\PerplexityModel:
| Case | Value |
|---|---|
SONAR | sonar (default) |
SONAR_PRO | sonar-pro |
SONAR_REASONING | sonar-reasoning |
SONAR_REASONING_PRO | sonar-reasoning-pro |
Registering the provider
AIManager does not build Perplexity from config automatically. Add it to a panel:
php
Or register it on the manager yourself:
php
new PerplexityProvider reads its key and model from laravilt-ai.providers.perplexity.