mirror of
https://github.com/sqlchat/sqlchat.git
synced 2025-08-01 07:12:21 +08:00
fix: error token calc (#107)
This commit is contained in:
@ -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;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user