Skip to content

Commit 739fb33

Browse files
Merge pull request #13 from cloudnautique/main
chore: update gptscript version v0.5.0
2 parents 4788aac + db2ba89 commit 739fb33

File tree

4 files changed

+14
-10
lines changed

4 files changed

+14
-10
lines changed

package-lock.json

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@gptscript-ai/gptscript",
3-
"version": "0.4.2",
3+
"version": "0.5.0",
44
"description": "Run gptscript in node.js",
55
"main": "lib/gptscript.js",
66
"repository": {
@@ -40,4 +40,4 @@
4040
"<rootDir>/tests/gptscript.test.js"
4141
]
4242
}
43-
}
43+
}

scripts/install-binary.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ if (process.platform === 'win32') {
6666
const gptscript_info = {
6767
name: "gptscript",
6868
url: "https://github.com/gptscript-ai/gptscript/releases/download/",
69-
version: "v0.4.2"
69+
version: "v0.5.0"
7070
}
7171

7272
const pltfm = {

src/gptscript.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,19 @@ function getCmdPath() {
77
}
88

99
const optToArg = {
10-
cache: "--cache=",
10+
cache: "--disable-cache=",
1111
cacheDir: "--cache-dir=",
1212
}
1313

1414
function toArgs(opts) {
1515
let args = ["--quiet=false"];
1616
for (const [key, value] of Object.entries(opts)) {
1717
if (optToArg[key]) {
18-
args.push(optToArg[key] + value);
18+
if (key === "cache") {
19+
args.push(optToArg[key] + !value);
20+
} else {
21+
args.push(optToArg[key] + value);
22+
}
1923
}
2024
}
2125
return args;

0 commit comments

Comments
 (0)