diff --git a/public/index.html b/public/index.html
index ccb7202..7e6c1d1 100644
--- a/public/index.html
+++ b/public/index.html
@@ -569,6 +569,11 @@
+
+
💡 Vorgeschlagene Folgesuchen
+
+
+
📝 Antwort
@@ -579,10 +584,6 @@
-
-
💡 Vorgeschlagene Folgesuchen
-
-
@@ -594,6 +595,7 @@
| # |
Typ |
+ Modell |
Eingabe |
Ausgabe |
Kosten (USD) |
@@ -948,6 +950,7 @@
tr.innerHTML = `
${item.index} |
${item.type} |
+ ${item.model || '-'} |
${item.prompt_tokens || '-'} |
${item.completion_tokens || '-'} |
${item.cost} |
@@ -956,7 +959,7 @@
});
} else {
const tr = document.createElement('tr');
- tr.innerHTML = 'Keine Kostendaten verfügbar | ';
+ tr.innerHTML = 'Keine Kostendaten verfügbar | ';
costTableBody.appendChild(tr);
}
diff --git a/src/services/searchService.js b/src/services/searchService.js
index 6c2a420..8c00fdb 100644
--- a/src/services/searchService.js
+++ b/src/services/searchService.js
@@ -89,6 +89,7 @@ function buildCostBreakdown(cost) {
cost.map((item, index) => ({
'#': index + 1,
Type: item.type,
+ Model: item.model || '-',
'Cost (USD)': `$${item.amount.toFixed(6)}`,
})),
);
@@ -99,6 +100,7 @@ function buildCostBreakdown(cost) {
const costBreakdown = cost.map((item, index) => ({
index: index + 1,
type: item.type,
+ model: item.model || '-',
prompt_tokens: item.prompt_tokens,
completion_tokens: item.completion_tokens,
cost: `$${item.amount.toFixed(6)}`,
@@ -128,7 +130,8 @@ export function createSearchService({ exa, openrouter, broadcast }) {
type:'openrouter_rephrase',
amount: rephraseResult.cost,
prompt_tokens: rephraseResult.prompt_tokens,
- completion_tokens: rephraseResult.completion_tokens
+ completion_tokens: rephraseResult.completion_tokens,
+ model: 'openai/gpt-5.4-mini'
});
} catch (error) {
throw new SearchServiceError('Failed to generate summary', 500, error);
@@ -214,7 +217,8 @@ export function createSearchService({ exa, openrouter, broadcast }) {
type:'openrouter_rank',
amount: summaryResult.cost,
prompt_tokens: summaryResult.prompt_tokens,
- completion_tokens: summaryResult.completion_tokens
+ completion_tokens: summaryResult.completion_tokens,
+ model: 'openai/gpt-oss-120b:nitro'
});
} catch (error) {
throw new SearchServiceError('Failed to generate summary', 500, error);
@@ -263,7 +267,8 @@ export function createSearchService({ exa, openrouter, broadcast }) {
type:'openrouter_final_summary',
amount: finalSummaryResult.cost,
prompt_tokens: finalSummaryResult.prompt_tokens,
- completion_tokens: finalSummaryResult.completion_tokens
+ completion_tokens: finalSummaryResult.completion_tokens,
+ model: 'openai/gpt-oss-120b:nitro'
});
} catch (error) {
throw new SearchServiceError('Failed to generate final summary', 500, error);