Skip to content

Commit fe3dae2

Browse files
committed
feat: add disable cache to parse
Signed-off-by: Donnie Adams <[email protected]>
1 parent a3a6e4d commit fe3dae2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/gptscript.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,11 +179,11 @@ export class GPTScript {
179179
return (new Run("evaluate", tool, opts, GPTScript.serverURL)).nextChat(opts.input)
180180
}
181181

182-
async parse(fileName: string): Promise<Block[]> {
182+
async parse(fileName: string, disableCache?: boolean): Promise<Block[]> {
183183
if (!this.ready) {
184184
this.ready = await this.testGPTScriptURL(20)
185185
}
186-
const r: Run = new RunSubcommand("parse", fileName, {}, GPTScript.serverURL)
186+
const r: Run = new RunSubcommand("parse", fileName, {disableCache: disableCache}, GPTScript.serverURL)
187187
r.request({file: fileName})
188188
return parseBlocksFromNodes((await r.json()).nodes)
189189
}

0 commit comments

Comments
 (0)