Skip to content

Commit

Permalink
fix: bind encodeChat and encodeChatGenerator
Browse files Browse the repository at this point in the history
fixes #15
  • Loading branch information
niieani committed Oct 7, 2023
1 parent 2a55474 commit 86c270c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/GptEncoding.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit 86c270c

Please sign in to comment.