* OpenAI-compatible provider adapter * OpenAI support * LM Studio support * Ollama OpenAI-compatible support * Encrypted API-key storage * Default provider and model selection * Provider connection testing * Reusable prompt library * Prompt variables and templates * Prompt version field * AI execution history * Token-usage storage * Duration and failure tracking * Manual knowledge sources * Knowledge-source chunking * Knowledge indexing status * Authenticated AI REST endpoint * AI administration dashboard * AI permissions * Module registration and boot test
9 lines
387 B
PHP
9 lines
387 B
PHP
<?php
|
|
namespace Modules\AI\Models;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
final class AIExecution extends Model
|
|
{
|
|
protected $fillable=['execution_id','ai_provider_id','ai_prompt_id','user_id','model','purpose','input','output','context','usage','status','error','duration_ms','completed_at'];
|
|
protected $casts=['context'=>'array','usage'=>'array','completed_at'=>'datetime'];
|
|
}
|