fix: error token calc (#107)

This commit is contained in:
CorrectRoadH
2023-05-24 11:12:00 +08:00
committed by GitHub
parent d9835b3a46
commit b6f3d0cb4c

View File

@ -167,7 +167,7 @@ const ConversationView = () => {
if (tableList) { if (tableList) {
for (const table of tableList) { for (const table of tableList) {
if (tokens < MAX_TOKENS / 2) { if (tokens < MAX_TOKENS / 2) {
tokens += countTextTokens(schema + table); tokens += countTextTokens(table);
schema += table; schema += table;
} }
} }