feat: 修改计费模式为tokens

This commit is contained in:
archer
2023-03-25 14:43:32 +08:00
parent 4eaf3a1be0
commit 6bba859060
18 changed files with 97 additions and 38 deletions

View File

@@ -112,7 +112,7 @@ const CreateModel = ({
{formatPrice(
modelList.find((item) => item.model === getValues('serviceModelName'))?.price || 0
) * 1000}
/1000()
/1K tokens()
</Box>
</ModalBody>

View File

@@ -195,7 +195,7 @@ const ModelDetail = ({ modelId }: { modelId: string }) => {
return () => {
window.onbeforeunload = null;
};
}, []);
}, [router]);
return (
<>
@@ -246,7 +246,13 @@ const ModelDetail = ({ modelId }: { modelId: string }) => {
</Card>
<Grid mt={5} gridTemplateColumns={media('1fr 1fr', '1fr')} gridGap={5}>
<ModelEditForm formHooks={formHooks} />
<Card p={4}>{!!model && <Training model={model} />}</Card>
{canTrain && (
<Card p={4}>
<Training model={model} />
</Card>
)}
<Card p={4}>
<Box fontWeight={'bold'} fontSize={'lg'}>