Skip to content

Commit 4faf337

Browse files
authored
Merge pull request #11 from thedadams/disable-cache-readme
fix: update README examples to use DisableCache
2 parents 0c7bea6 + ae71565 commit 4faf337

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ import (
105105

106106
func execFile(ctx context.Context) (string, error) {
107107
opts := gogptscript.Opts{
108-
Cache: &[]bool{false}[0],
108+
DisableCache: &[]bool{true}[0],
109109
}
110110

111111
return gogptscript.ExecFile(ctx, "./hello.gpt", "--input World", opts)
@@ -179,7 +179,7 @@ import (
179179

180180
func streamExecTool(ctx context.Context) error {
181181
opts := gogptscript.Opts{
182-
Cache: &[]bool{false}[0],
182+
DisableCache: &[]bool{true}[0],
183183
}
184184

185185
stdOut, stdErr, wait := gogptscript.StreamExecFile(ctx, "./hello.gpt", "--input world", opts)
@@ -205,7 +205,7 @@ import (
205205

206206
func streamExecTool(ctx context.Context) error {
207207
opts := gogptscript.Opts{
208-
Cache: &[]bool{false}[0],
208+
DisableCache: &[]bool{true}[0],
209209
}
210210

211211
stdOut, stdErr, events, wait := gogptscript.StreamExecFileWithEvents(ctx, "./hello.gpt", "--input world", opts)

0 commit comments

Comments
 (0)