feat: UI-Verbesserungen und Model-Informationen in Kostenaufschlüsselung
- Vorgeschlagene Folgesuchen im UI nach oben verschoben - Spalte "Modell" zur Kostenaufschlüsselungstabelle hinzugefügt - Modellnamen für OpenRouter-API-Aufrufe (Rephrase, Rank, Final Summary) ergänzt - Datenstruktur für Kostenaufschlüsselung um Modell-Information erweitert
This commit is contained in:
@@ -569,6 +569,11 @@
|
||||
<div class="error" id="error"></div>
|
||||
|
||||
<div class="results" id="results">
|
||||
<div class="result-section">
|
||||
<h2>💡 Vorgeschlagene Folgesuchen</h2>
|
||||
<div class="suggested-searches" id="suggestedSearches"></div>
|
||||
</div>
|
||||
|
||||
<div class="result-section">
|
||||
<h2>📝 Antwort</h2>
|
||||
<div class="answer" id="answer"></div>
|
||||
@@ -579,10 +584,6 @@
|
||||
<ul class="sources" id="sources"></ul>
|
||||
</div>
|
||||
|
||||
<div class="result-section">
|
||||
<h2>💡 Vorgeschlagene Folgesuchen</h2>
|
||||
<div class="suggested-searches" id="suggestedSearches"></div>
|
||||
</div>
|
||||
|
||||
<!-- Cost Breakdown Section -->
|
||||
<div class="result-section">
|
||||
@@ -594,6 +595,7 @@
|
||||
<tr>
|
||||
<th>#</th>
|
||||
<th>Typ</th>
|
||||
<th>Modell</th>
|
||||
<th>Eingabe</th>
|
||||
<th>Ausgabe</th>
|
||||
<th>Kosten (USD)</th>
|
||||
@@ -948,6 +950,7 @@
|
||||
tr.innerHTML = `
|
||||
<td>${item.index}</td>
|
||||
<td>${item.type}</td>
|
||||
<td>${item.model || '-'}</td>
|
||||
<td>${item.prompt_tokens || '-'}</td>
|
||||
<td>${item.completion_tokens || '-'}</td>
|
||||
<td>${item.cost}</td>
|
||||
@@ -956,7 +959,7 @@
|
||||
});
|
||||
} else {
|
||||
const tr = document.createElement('tr');
|
||||
tr.innerHTML = '<td colspan="5">Keine Kostendaten verfügbar</td>';
|
||||
tr.innerHTML = '<td colspan="6">Keine Kostendaten verfügbar</td>';
|
||||
costTableBody.appendChild(tr);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user