We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4c90a78 commit 39d1e05Copy full SHA for 39d1e05
src/index.ts
@@ -75,7 +75,9 @@ export class LlamaContext {
75
* Load cached prompt & completion state from a file.
76
*/
77
async loadSession(filepath: string): Promise<NativeSessionLoadResult> {
78
- return RNLlama.loadSession(this.id, filepath)
+ let path = filepath
79
+ if (path.startsWith('file://')) path = path.slice(7)
80
+ return RNLlama.loadSession(this.id, path)
81
}
82
83
/**
0 commit comments