From f16eb7dd2492d1880ee908892c122573f0e7c7ff Mon Sep 17 00:00:00 2001 From: Ruthenic Date: Sat, 15 Oct 2022 13:30:28 -0400 Subject: [PATCH] forgor to actually implement token rotation :skull: --- src/ai/huggingface.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/ai/huggingface.ts b/src/ai/huggingface.ts index d9097c9..cbc9219 100644 --- a/src/ai/huggingface.ts +++ b/src/ai/huggingface.ts @@ -47,6 +47,10 @@ class HuggingFaceAI { }, method: "POST", }); + this.tokenNum++ + if (this.tokenNum > this.tokens.length - 1) { + this.tokenNum = 0 + } return await res.json(); }