Jelajahi Sumber

fix: 日志详情

CalciumIon 1 tahun lalu
induk
melakukan
e062cf32e3
1 mengubah file dengan 2 tambahan dan 2 penghapusan
  1. 2 2
      web/src/helpers/render.js

+ 2 - 2
web/src/helpers/render.js

@@ -153,8 +153,8 @@ export function renderModelPrice(
     let inputRatioPrice = modelRatio * 2.0;
     let completionRatioPrice = modelRatio * 2.0 * completionRatio;
     let price =
-      (inputTokens / 1000000) * inputRatioPrice +
-      (completionTokens / 1000000) * completionRatioPrice;
+      (inputTokens / 1000000) * inputRatioPrice * groupRatio +
+      (completionTokens / 1000000) * completionRatioPrice * groupRatio;
     return (
       <>
         <article>