fix: 修复自定义渠道出错 #243

This commit is contained in:
CaIon committed 2024-05-13 14:32:32 +08:00
1 parent 699e29e229
commit 5cf33f35ae
5 files changed
+11 -17

No files matched your search

+2 -3
View File
@@ -1,4 +1,3 @@
import { Label } from 'semantic-ui-react';
import { Tag } from '@douyinfe/semi-ui';
export function renderText(text, limit) {
@@ -152,9 +151,9 @@ export function renderModelPrice(
let completionRatioPrice =
modelRatio * completionRatio * 0.002 * groupRatio;
return (
'输入:$' +
'输入 $' +
inputRatioPrice.toFixed(3) +
'/1K tokens,补全:$' +
'/1K tokens,补全 $' +
completionRatioPrice.toFixed(3) +
'/1K tokens'
);