perf: 文案;feat: 知识库模糊搜索

This commit is contained in:
archer
2023-04-13 21:34:36 +08:00
parent ff24042df5
commit 56a0b48b97
9 changed files with 62 additions and 43 deletions

View File

@@ -21,7 +21,7 @@ export const pushChatBill = async ({
try {
// 计算 token 数量
const tokens = Math.floor(encode(text).length * 0.7);
const tokens = Math.floor(encode(text).length * 0.75);
console.log(`chat generate success. text len: ${text.length}. token len: ${tokens}`);