This commit is contained in:
Mckay Wrigley committed 2023-04-02 08:02:00 -06:00
1 parent e8e74bf773
commit a89308d03a
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -35,7 +35,7 @@ const handler = async (req: Request): Promise<Response> => {
const message = messages[i];
const tokens = encoding.encode(message.content);
if (tokenCount + tokens.length + 2000 > model.tokenLimit) {
if (tokenCount + tokens.length + 1000 > model.tokenLimit) {
break;
}
tokenCount += tokens.length;