Configuration
php artisan vendor:publish --tag=ai-usage-config
| Key | Default | |
|---|---|---|
enabled |
true |
Record usage (AI_USAGE_ENABLED). |
store_content |
false |
Also store the prompt and response text, truncated to content_limit characters. |
content_limit |
5000 |
Characters kept of the stored prompt and response (AI_USAGE_CONTENT_LIMIT). |
trace.enabled |
false |
Store the full execution trace of agent calls (AI_USAGE_TRACE), see Execution traces. |
trace.content_limit |
null |
Characters kept of each string in a trace (AI_USAGE_TRACE_CONTENT_LIMIT). null uses content_limit. |
trace.attachments |
false |
Also copy prompt attachments to trace.disk / trace.path (AI_USAGE_TRACE_ATTACHMENTS). |
redaction.enabled |
true |
Mask redaction.keys and redaction.patterns in all stored content (AI_USAGE_REDACTION). |
user_model |
App\Models\User |
The model user_id points to. |
currency |
USD |
The currency of the prices (OpenRouter prices are USD). |
retention_days |
null |
Rows older than this are deleted by model:prune. null keeps everything. |
content_retention_days |
null |
model:prune clears the stored prompt and response of older rows, keeping the rows (AI_USAGE_CONTENT_RETENTION_DAYS). |
trace_retention_days |
null |
model:prune clears the execution trace of older rows, and deletes their attachments (AI_USAGE_TRACE_RETENTION_DAYS). |
attachment_retention_days |
null |
model:prune deletes only the stored attachment files of older rows (AI_USAGE_ATTACHMENT_RETENTION_DAYS). |
budgets |
[] |
See Budgets. |
routes.enabled |
true |
Register the pages. |
routes.prefix |
ai-usage |
URL prefix of the pages. |
routes.middleware |
['web', 'auth'] |
Middleware of the pages; the gate is added to it. |
gate |
viewAiUsage |
The gate that allows access to the pages. |
layout |
ai-usage::layout |
Layout of the pages, see Pages. |
back_link |
label, route, url |
A link back to your application in the standalone header. |
Een fout gevonden of een vraag? Maak een issue aan op GitHub.