diff --git a/client/public/docs/chatProblem.md b/client/public/docs/chatProblem.md index 91374ec50..82f61db41 100644 --- a/client/public/docs/chatProblem.md +++ b/client/public/docs/chatProblem.md @@ -7,10 +7,10 @@ | 计费项 | 价格: 元/ 1K tokens(包含上下文)| | --- | --- | | 知识库 - 索引 | 0.001 | -| chatgpt - 对话 | 0.022 | -| chatgpt16K - 对话 | 0.025 | -| gpt4 - 对话 | 0.5 | -| 文件拆分 | 0.025 | +| chatgpt - 对话 | 0.015 | +| chatgpt16K - 对话 | 0.015 | +| gpt4 - 对话 | 0.1 | +| 文件拆分 | 0.015 | **其他问题** | 交流群 | 小助手 | diff --git a/client/public/docs/intro.md b/client/public/docs/intro.md index 0eb929950..09ffb3ca4 100644 --- a/client/public/docs/intro.md +++ b/client/public/docs/intro.md @@ -19,10 +19,10 @@ FastGpt 项目完全开源,可随意私有化部署,去除平台风险忧虑 | 计费项 | 价格: 元/ 1K tokens(包含上下文)| | --- | --- | | 知识库 - 索引 | 0.001 | -| chatgpt - 对话 | 0.022 | -| chatgpt16K - 对话 | 0.025 | -| gpt4 - 对话 | 0.5 | -| 文件拆分 | 0.025 | +| chatgpt - 对话 | 0.015 | +| chatgpt16K - 对话 | 0.015 | +| gpt4 - 对话 | 0.1 | +| 文件拆分 | 0.015 | ### 交流群/问题反馈 diff --git a/client/src/constants/model.ts b/client/src/constants/model.ts index 303696d25..47e897f6c 100644 --- a/client/src/constants/model.ts +++ b/client/src/constants/model.ts @@ -31,7 +31,7 @@ export const ChatModelMap = { contextMaxToken: 4000, systemMaxToken: 2400, maxTemperature: 1.2, - price: 2.2 + price: 1.5 }, [OpenAiChatEnum.GPT3516k]: { chatModel: OpenAiChatEnum.GPT3516k, @@ -39,7 +39,7 @@ export const ChatModelMap = { contextMaxToken: 16000, systemMaxToken: 8000, maxTemperature: 1.2, - price: 2.5 + price: 1.5 }, [OpenAiChatEnum.GPT4]: { chatModel: OpenAiChatEnum.GPT4, @@ -47,7 +47,7 @@ export const ChatModelMap = { contextMaxToken: 8000, systemMaxToken: 4000, maxTemperature: 1.2, - price: 50 + price: 10 }, [OpenAiChatEnum.GPT432k]: { chatModel: OpenAiChatEnum.GPT432k, diff --git a/client/src/pages/api/openapi/plugin/openaiEmbedding.ts b/client/src/pages/api/openapi/plugin/openaiEmbedding.ts index 8c006d7c5..86e78bcd6 100644 --- a/client/src/pages/api/openapi/plugin/openaiEmbedding.ts +++ b/client/src/pages/api/openapi/plugin/openaiEmbedding.ts @@ -61,7 +61,7 @@ export async function openaiEmbedding({ } ) .then((res) => ({ - tokenLen: res.data.usage.total_tokens || 0, + tokenLen: res.data?.usage?.total_tokens || 0, vectors: res.data.data.map((item) => item.embedding) })); diff --git a/client/src/pages/number/components/PayModal.tsx b/client/src/pages/number/components/PayModal.tsx index 583e9dc70..3f25a60de 100644 --- a/client/src/pages/number/components/PayModal.tsx +++ b/client/src/pages/number/components/PayModal.tsx @@ -114,10 +114,10 @@ const PayModal = ({ onClose }: { onClose: () => void }) => { | 计费项 | 价格: 元/ 1K tokens(包含上下文)| | --- | --- | | 知识库 - 索引 | 0.001 | -| chatgpt - 对话 | 0.022 | -| chatgpt16K - 对话 | 0.025 | -| gpt4 - 对话 | 0.5 | -| 文件拆分 | 0.025 |`} +| chatgpt - 对话 | 0.015 | +| chatgpt16K - 对话 | 0.015 | +| gpt4 - 对话 | 0.1 | +| 文件拆分 | 0.015 |`} /> )}