tabelle ai_model_api_provider entfernt

This commit is contained in:
2025-08-29 14:09:01 +02:00
parent 9b1f6a479f
commit d271f256b7
11 changed files with 47 additions and 103 deletions

View File

@@ -14,6 +14,7 @@ class AiModel extends Model
'model_id',
'model_type',
'parameters',
'api_provider_id',
];
protected $casts = [
@@ -24,9 +25,4 @@ class AiModel extends Model
{
return $this->belongsTo(ApiProvider::class, 'api_provider_id');
}
public function apiProviders()
{
return $this->belongsToMany(ApiProvider::class, 'ai_model_api_provider');
}
}