the RunwareAI Plugin is working now

This commit is contained in:
2025-07-30 23:24:47 +02:00
parent 07c6786bda
commit 47860b4b7d
35 changed files with 544 additions and 218 deletions

View File

@@ -35,12 +35,16 @@ class AiModelResource extends Resource
->required()
->maxLength(255),
TextInput::make('model_type')
->label(__('filament.resource.ai_model.form.model_type'))
->nullable()
->maxLength(255),
Forms\Components\Toggle::make('enabled')
->label(__('filament.resource.ai_model.form.enabled'))
->default(true),
Select::make('apiProviders')
->relationship('apiProviders', 'name')
->multiple()
->preload()
->searchable(false)
->label(__('filament.resource.ai_model.form.api_providers')),
]);
}
@@ -52,6 +56,9 @@ class AiModelResource extends Resource
TextColumn::make('name')->label(__('filament.resource.ai_model.table.name'))->searchable()->sortable(),
TextColumn::make('model_id')->label(__('filament.resource.ai_model.table.model_id'))->searchable()->sortable(),
TextColumn::make('model_type')->label(__('filament.resource.ai_model.table.model_type'))->searchable()->sortable(),
Tables\Columns\IconColumn::make('enabled')
->label(__('filament.resource.ai_model.table.enabled'))
->boolean(),
TextColumn::make('apiProviders.name')->label(__('filament.resource.ai_model.table.api_providers'))->searchable()->sortable(),
])
->filters([