More precise prompt costs
This commit is contained in:
parent
ea4b1759aa
commit
aa49efe656
|
@ -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(2);
|
||||
cost = totalCost.toFixed(3);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue