diff --git a/public/scripts/mancer-settings.js b/public/scripts/mancer-settings.js index 14f9bbcaa..5db00ec71 100644 --- a/public/scripts/mancer-settings.js +++ b/public/scripts/mancer-settings.js @@ -38,9 +38,13 @@ function getMancerModelTemplate(option) { return option.text; } + const creditsPerPrompt = (model.limits?.context - model.limits?.completion) * model.pricing?.prompt; + const creditsPerCompletion = model.limits?.completion * model.pricing?.completion; + const creditsTotal = Math.round(creditsPerPrompt + creditsPerCompletion).toFixed(0); + return $((`