optimize ui
add new ki endpoint params
This commit is contained in:
102
templates/admin/model_config/list.html.twig
Normal file
102
templates/admin/model_config/list.html.twig
Normal file
@@ -0,0 +1,102 @@
|
||||
{% extends 'admin/base.html.twig' %}
|
||||
|
||||
{% block title %}KI Modell-Generierung Config{% endblock %}
|
||||
|
||||
{% block body %}
|
||||
<div class="d-flex justify-content-between align-items-center mb-4">
|
||||
<h1 class="h3">KI Modell-Generierung Config</h1>
|
||||
|
||||
{% if is_granted('ROLE_SUPER_ADMIN') %}
|
||||
<a href="{{ path('admin_model_config_create') }}"
|
||||
class="btn btn-sm btn-outline-info">
|
||||
Neue Konfiguration
|
||||
</a>
|
||||
{% endif %}
|
||||
</div>
|
||||
|
||||
<div class="card bg-black border-secondary">
|
||||
<div class="card-body p-0">
|
||||
<table class="table table-dark table-striped table-hover mb-0 align-middle">
|
||||
<thead class="table-secondary text-dark">
|
||||
<tr>
|
||||
<th>Modell</th>
|
||||
<th>Version</th>
|
||||
<th>Stream</th>
|
||||
<th>Temp</th>
|
||||
<th>Top K</th>
|
||||
<th>Top P</th>
|
||||
<th>Repeat</th>
|
||||
<th>Ctx</th>
|
||||
<th>Status</th>
|
||||
<th class="text-end">Aktion</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for config in configs %}
|
||||
<tr>
|
||||
<td>{{ config.modelName }}</td>
|
||||
<td>v{{ config.version }}</td>
|
||||
<td>
|
||||
{% if config.stream %}
|
||||
<span class="badge bg-info text-dark">Streaming</span>
|
||||
{% else %}
|
||||
<span class="badge bg-secondary">Blocking</span>
|
||||
{% endif %}
|
||||
</td>
|
||||
<td>{{ config.temperature }}</td>
|
||||
<td>{{ config.topK }}</td>
|
||||
<td>{{ config.topP }}</td>
|
||||
<td>{{ config.repeatPenalty }}</td>
|
||||
<td>{{ config.numCtx }}</td>
|
||||
|
||||
<td>
|
||||
{% if config.active %}
|
||||
<span class="badge bg-success">Aktiv</span>
|
||||
{% else %}
|
||||
<span class="badge bg-dark border border-secondary">
|
||||
Inaktiv
|
||||
</span>
|
||||
{% endif %}
|
||||
</td>
|
||||
|
||||
<td class="text-end">
|
||||
{% if not config.active and is_granted('ROLE_SUPER_ADMIN') %}
|
||||
|
||||
<a href="{{ path('admin_model_config_activate', {id: config.id}) }}"
|
||||
class="btn btn-sm btn-outline-success me-2">
|
||||
Aktivieren
|
||||
</a>
|
||||
|
||||
<form method="post"
|
||||
action="{{ path('admin_model_config_delete', {id: config.id}) }}"
|
||||
style="display:inline-block"
|
||||
onsubmit="return confirm('Wirklich löschen?');">
|
||||
|
||||
<input type="hidden" name="_token"
|
||||
value="{{ csrf_token('delete_model_config_' ~ config.id) }}">
|
||||
|
||||
<button class="btn btn-sm btn-outline-danger">
|
||||
Löschen
|
||||
</button>
|
||||
</form>
|
||||
|
||||
{% endif %}
|
||||
</td>
|
||||
</tr>
|
||||
{% else %}
|
||||
<tr>
|
||||
<td colspan="10" class="text-center text-secondary py-4">
|
||||
Keine Konfiguration vorhanden.
|
||||
</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="mt-4 small text-secondary">
|
||||
Hinweis: Änderungen wirken sich unmittelbar auf die Generierungsparameter
|
||||
des aktiven Modells aus. Nur eine Konfiguration pro Modell kann aktiv sein.
|
||||
</div>
|
||||
{% endblock %}
|
||||
Reference in New Issue
Block a user