Skip to content

Commit

Permalink
Support multiple JSON schema per engine
Browse files Browse the repository at this point in the history
  • Loading branch information
SMarioMan committed Sep 14, 2024
1 parent 1fe4fc6 commit 77b555e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/llm_chat.ts
Original file line number Diff line number Diff line change
Expand Up @@ -506,7 +506,7 @@ export class LLMChatPipeline {
if (this.grammarStateMatcher) {
this.grammarStateMatcher.dispose();
}
if (this.tokenTable === undefined) {
if (this.tokenTable === undefined || !this.tokenTable.handle) {
const rawTokenTable = getTokenTableFromTokenizer(this.tokenizer);
// Post process entire table
this.tokenTable = this.fpostProcessTokenTable(
Expand Down

0 comments on commit 77b555e

Please sign in to comment.