Skip to content

Commit

Permalink
fix: lint error
Browse files Browse the repository at this point in the history
  • Loading branch information
jhen0409 committed Oct 20, 2023
1 parent 829e219 commit 6d50256
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@ export class LlamaContext {
/**
* Save current cached prompt & completion state to a file.
*/
async saveSession(filepath: string, options: { tokenSize: number }): Promise<number> {
return RNLlama.saveSession(this.id, filepath, options?.tokenSize)
async saveSession(filepath: string, options?: { tokenSize: number }): Promise<number> {
return RNLlama.saveSession(this.id, filepath, options?.tokenSize || -1)
}

async completion(
Expand Down

0 comments on commit 6d50256

Please sign in to comment.