From b6f3d0cb4c8ddf2364d72baf3acf7ce9c9e6432b Mon Sep 17 00:00:00 2001 From: CorrectRoadH Date: Wed, 24 May 2023 11:12:00 +0800 Subject: [PATCH] fix: error token calc (#107) --- src/components/ConversationView/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/ConversationView/index.tsx b/src/components/ConversationView/index.tsx index 39e6979..5a9a3d9 100644 --- a/src/components/ConversationView/index.tsx +++ b/src/components/ConversationView/index.tsx @@ -167,7 +167,7 @@ const ConversationView = () => { if (tableList) { for (const table of tableList) { if (tokens < MAX_TOKENS / 2) { - tokens += countTextTokens(schema + table); + tokens += countTextTokens(table); schema += table; } }