Skip to content

Commit

Permalink
Add a ? to the exit() function (#84)
Browse files Browse the repository at this point in the history
flatsiedatsie authored Jul 3, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent d20441c commit dfcb986
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/wllama.ts
Original file line number Diff line number Diff line change
@@ -639,7 +639,7 @@ export class Wllama {
* Unload the model and free all memory
*/
async exit(): Promise<void> {
await this.proxy.wllamaExit();
await this.proxy?.wllamaExit();
}

/**
@@ -650,4 +650,4 @@ export class Wllama {
}

// TODO: add current_status
}
}

0 comments on commit dfcb986

Please sign in to comment.