Skip to content

Commit 98c1fcd

Browse files
Merge pull request #9 from cloudnautique/main
chore: bump version to v0.5.0
2 parents 18cf344 + 5d51752 commit 98c1fcd

File tree

5 files changed

+10
-6
lines changed

5 files changed

+10
-6
lines changed

gptscript/command.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
from gptscript.tool import FreeForm, Tool
66

77
optToArg = {
8-
"cache": "--cache=",
8+
"cache": "--disable-cache=",
99
"cacheDir": "--cache-dir=",
1010
}
1111

@@ -92,7 +92,10 @@ def toArgs(opts):
9292
args = ["--quiet=false"]
9393
for opt, val in opts.items():
9494
if optToArg.get(opt):
95-
args.append(optToArg[opt] + val)
95+
if opt == "cache":
96+
args.append(optToArg[opt] + str(not val))
97+
else:
98+
args.append(optToArg[opt] + val)
9699
return args
97100

98101

gptscript/install.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
gptscript_info = {
2727
"name": "gptscript",
2828
"url": "https://github.com/gptscript-ai/gptscript/releases/download/",
29-
"version": "v0.4.2",
29+
"version": "v0.5.0",
3030
}
3131

3232
pltfm = {"windows": "windows", "linux": "linux", "darwin": "macOS"}.get(

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "gptscript"
7-
version = "0.4.2"
7+
version = "0.5.0"
88
description = "Run gptscripts from Python apps"
99
readme = "README.md"
1010
authors = [{ name = "Bill Maxwell", email = "[email protected]" }]

scripts/package

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ from tempfile import TemporaryDirectory
1717
gptscript_info = {
1818
"name": "gptscript",
1919
"url": "https://github.com/gptscript-ai/gptscript/releases/download/",
20-
"version": "v0.4.2",
20+
"version": "v0.5.0",
2121
}
2222

2323
# Define platform-specific variables

tests/test_gptscript.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,8 @@ def test_exec_simple_tool(simple_tool):
8888

8989
# Test execution of a complex tool
9090
def test_exec_complex_tool(complex_tool):
91-
out, err = exec(complex_tool)
91+
opts = {"cache": False}
92+
out, err = exec(complex_tool, opts=opts)
9293
assert out is not None, "Expected some output from exec using complex_tool"
9394

9495

0 commit comments

Comments
 (0)