*/ protected $fillable = [ 'provider_id', 'name', 'slug', 'max_tokens', 'temperature_support', 'is_active', ]; /** * Get the attributes that should be cast. * * @return array */ protected function casts(): array { return [ 'temperature_support' => 'boolean', 'is_active' => 'boolean', ]; } /** * Get the AI provider that owns the model. * * @return \Illuminate\Database\Eloquent\Relations\BelongsTo<\App\Models\AiProvider, \App\Models\AiModel> */ public function provider(): BelongsTo { return $this->belongsTo(AiProvider::class); } }