From 3e82a7d4399d6824afa4a60fa4a0965fd8ee980b Mon Sep 17 00:00:00 2001 From: based Date: Thu, 14 Dec 2023 16:31:08 +1000 Subject: [PATCH] tokenizer changes and fixes. + a toggle --- public/index.html | 8 ++++++++ public/scripts/openai.js | 11 +++++++++++ public/scripts/tokenizers.js | 2 +- src/chat-completion.js | 1 - src/endpoints/tokenizers.js | 9 ++++----- 5 files changed, 24 insertions(+), 7 deletions(-) diff --git a/public/index.html b/public/index.html index 474d605de..67bb1b96d 100644 --- a/public/index.html +++ b/public/index.html @@ -1516,6 +1516,14 @@ Use the appropriate tokenizer for Jurassic models, which is more efficient than GPT's. +
+ +
+ Use the appropriate tokenizer for Google models via their API. Slower prompt processing, but offers much more accurate token counting. +
+