From 8f563f2c9a7d6109b2a981e453f7c0aa8ccad449 Mon Sep 17 00:00:00 2001 From: team2 Date: Tue, 17 Feb 2026 21:06:21 +0100 Subject: [PATCH] include agent --- config/services.yaml | 4 +- templates/admin/model_config/list.html.twig | 75 +++++++++++++++++---- 2 files changed, 63 insertions(+), 16 deletions(-) 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 %} +
-

KI Modell-Generierung Config

+

KI Modell-Generierung

{% if is_granted('ROLE_SUPER_ADMIN') %}
- + +
@@ -28,14 +30,20 @@ - + + {% for config in configs %} + - + + + + @@ -60,19 +69,32 @@ + {% else %} {% endfor %} +
ModellRepeat Ctx StatusAktionAktionen
{{ config.modelName }} + {{ config.modelName }} + v{{ config.version }} {% if config.stream %} Streaming @@ -43,6 +51,7 @@ Blocking {% endif %} {{ config.temperature }} {{ config.topK }} {{ config.topP }} + {% if not config.active and is_granted('ROLE_SUPER_ADMIN') %} - - Aktivieren - + {# Aktivieren via POST + CSRF #} +
+ + + +
+ + {# Löschen via POST + CSRF #}
+ class="d-inline" + onsubmit="return confirm('Konfiguration wirklich löschen?');"> -
+ {% else %} + {% endif %} +
@@ -90,13 +116,34 @@
+
-
+
Hinweis: Änderungen wirken sich unmittelbar auf die Generierungsparameter - des aktiven Modells aus. Nur eine Konfiguration pro Modell kann aktiv sein. + des aktiven Modells aus. Pro Modell kann nur eine Version aktiv sein. +
+ +

Agent Live Test

+ +
+
+ + + +
+
+ +
+ Der Agent läuft im isolierten Admin-Test-Modus. + Keine Persistenz. Keine produktive Session.
{% endblock %}