ページ · Laravilt
Configuration
Choose providers, models and safe defaults for agents.
Agents use the providers from config/laravilt-ai.php and the panel's aiProviders(). See Providers for the full config file.
env
Model selection
php
getAiModelValue() returns the string value whether you passed an enum or a string.
Temperature and tokens
Set these per provider with env keys (OPENAI_TEMPERATURE, OPENAI_MAX_TOKENS, and so on) or in code:
php
Recommendations
- Use a small model (
gpt-4o-mini,claude-3-5-haiku) for lookups and a larger one for reasoning. - Every permission defaults to
true, so turn offcanDelete()(and others) unless you need them. - Write a clear
systemPrompt()per resource.