This commit is contained in:
archer
2023-05-19 10:31:25 +08:00
parent 246ee973ec
commit d07e5b8501
4 changed files with 8 additions and 8 deletions

View File

@@ -32,7 +32,7 @@ export const ChatModelMap = {
contextMaxToken: 4096,
systemMaxToken: 2400,
maxTemperature: 1.2,
price: 3
price: 2.5
},
[OpenAiChatEnum.GPT4]: {
chatModel: OpenAiChatEnum.GPT4,

View File

@@ -26,7 +26,7 @@ export const pushChatBill = async ({
await connectToDatabase();
// 计算价格
const unitPrice = ChatModelMap[chatModel]?.price || 5;
const unitPrice = ChatModelMap[chatModel]?.price || 3;
const price = unitPrice * tokens;
try {