add bill range

This commit is contained in:
archer
2023-08-20 14:05:13 +08:00
parent 006b1be2c3
commit c7d0975f6d
3 changed files with 10 additions and 12 deletions

View File

@@ -32,8 +32,7 @@ const OpenAIAccountModal = ({
<MyModal isOpen onClose={onClose} title={t('user.OpenAI Account Setting')}>
<ModalBody>
<Box fontSize={'sm'} color={'myGray.500'}>
线使 OpenAI Chat
API
线使 OpenAI Chat
</Box>
<Flex alignItems={'center'} mt={5}>
<Box flex={'0 0 65px'}>API Key:</Box>

View File

@@ -94,9 +94,9 @@ export default withNextCors(async function handler(req: NextApiRequest, res: Nex
if (!user) {
throw new Error('Account is error');
}
if (authType === AuthUserTypeEnum.apikey || shareId) {
user.openaiAccount = undefined;
}
// if (authType === AuthUserTypeEnum.apikey || shareId) {
// user.openaiAccount = undefined;
// }
appId = appId ? appId : authAppid;
if (!appId) {