From 86c270cb6a27600149f9bd56f675628109c4a134 Mon Sep 17 00:00:00 2001 From: Bazyli Brzoska Date: Fri, 6 Oct 2023 17:45:50 -0700 Subject: [PATCH] fix: bind encodeChat and encodeChatGenerator fixes #15 --- src/GptEncoding.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/GptEncoding.ts b/src/GptEncoding.ts index ac7edb4..44ba479 100644 --- a/src/GptEncoding.ts +++ b/src/GptEncoding.ts @@ -97,6 +97,8 @@ export class GptEncoding { this.decodeGenerator = this.decodeGenerator.bind(this) this.decodeAsyncGenerator = this.decodeAsyncGenerator.bind(this) this.isWithinTokenLimit = this.isWithinTokenLimit.bind(this) + this.encodeChat = this.encodeChat.bind(this) + this.encodeChatGenerator = this.encodeChatGenerator.bind(this) this.modelName = modelName }