diff --git a/config/services.yaml b/config/services.yaml index 54ed98f..dc45f61 100644 --- a/config/services.yaml +++ b/config/services.yaml @@ -76,8 +76,8 @@ services: App\Infrastructure\OllamaClient: arguments: - $apiUrl: '%env(OLLAMA_API_URL)%' - $model: '%env(OLLAMA_MODEL)%' + $apiUrl: '%env(AI_LLM_API_URL)%' + $model: '%env(AI_LLM_MODEL)%' $timeoutSeconds: 600 $configProvider: '@App\Service\ModelGenerationConfigProvider' diff --git a/templates/admin/model_config/list.html.twig b/templates/admin/model_config/list.html.twig index acbf5a8..aa09169 100644 --- a/templates/admin/model_config/list.html.twig +++ b/templates/admin/model_config/list.html.twig @@ -1,10 +1,11 @@ {% extends 'admin/base.html.twig' %} -{% block title %}KI Modell-Generierung Config{% endblock %} +{% block title %}KI Modell-Generierung{% endblock %} {% block body %} +
| Modell | @@ -28,14 +30,20 @@Repeat | Ctx | Status | -Aktion | +Aktionen | ||||
|---|---|---|---|---|---|---|---|---|---|
| {{ config.modelName }} | ++ {{ config.modelName }} + | +v{{ config.version }} | +{% if config.stream %} Streaming @@ -43,6 +51,7 @@ Blocking {% endif %} | +{{ config.temperature }} | {{ config.topK }} | {{ config.topP }} | @@ -60,19 +69,32 @@+ {% if not config.active and is_granted('ROLE_SUPER_ADMIN') %} - - Aktivieren - + {# Aktivieren via POST + CSRF #} + + + {# Löschen via POST + CSRF #} + {% else %} + — {% endif %} + | ||
| @@ -90,13 +116,34 @@ | |||||||||