Currency formatting

This commit is contained in:
Cohee
2023-08-10 13:01:55 +03:00
parent aa49efe656
commit c6b18de4ef
2 changed files with 2 additions and 2 deletions

View File

@ -707,7 +707,7 @@ function calculateOpenRouterCost() {
const promptTokens = (oai_settings.openai_max_context - completionTokens);
const totalCost = (completionCost * completionTokens) + (promptCost * promptTokens);
if (!isNaN(totalCost)) {
cost = totalCost.toFixed(3);
cost = '$' + totalCost.toFixed(3);
}
}