Skip to content

Commit 8d6af6b

Browse files
authored
docs: replace --cache=false with --disable-cache (#236)
Signed-off-by: Grant Linville <[email protected]>
1 parent f4284f4 commit 8d6af6b

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

docs/docs/03-tools/04-credentials.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ name: my-credential-tool
1818

1919
#!/usr/bin/env bash
2020

21-
output=$(gptscript -q --cache=false sys.prompt '{"message":"Please enter your fake credential.","fields":"credential","sensitive":"true"}')
21+
output=$(gptscript -q --disable-cache sys.prompt '{"message":"Please enter your fake credential.","fields":"credential","sensitive":"true"}')
2222
credential=$(echo $output | jq -r '.credential')
2323
echo "{\"env\":{\"MY_ENV_VAR\":\"$credential\"}}"
2424
```
@@ -57,10 +57,12 @@ This config file also has another parameter, `credsStore`, which indicates where
5757

5858
- `file` (default): The credentials are stored directly in the config file.
5959
- `osxkeychain`: The credentials are stored in the macOS Keychain.
60+
- `wincred`: The credentials are stored in the Windows Credential Manager.
6061

61-
In order to use `osxkeychain` as the credsStore, you must have the `gptscript-credential-osxkeychain` executable
62-
available in your PATH. There will probably be better packaging for this in the future, but for now, you can build it
63-
from the [repo](https://github.com/gptscript-ai/gptscript-credential-helpers).
62+
In order to use `osxkeychain` or `wincred` as the credsStore, you must have the `gptscript-credential-*` executable
63+
available in your PATH. There will probably be better packaging for this in the future, but for now, you can build them
64+
from the [repo](https://github.com/gptscript-ai/gptscript-credential-helpers). (For wincred, make sure the executable
65+
is called `gptscript-credential-wincred.exe`.)
6466

6567
There will likely be support added for other credential stores in the future.
6668

examples/car-notifier/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,5 +30,5 @@ export PGURL=your-postgres-connection-url
3030
export SENDGRID_API_KEY=your-sendgrid-api-key
3131

3232
# Run the script
33-
gptscript --cache=false car-notifier.gpt
33+
gptscript --disable-cache car-notifier.gpt
3434
```

examples/hamlet-summarizer/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,5 +36,5 @@ pip install -r requirements.txt
3636
export OPENAI_API_KEY=your-api-key
3737

3838
# Run the example
39-
gptscript --cache=false hamlet-summarizer.gpt
39+
gptscript --disable-cache hamlet-summarizer.gpt
4040
```

0 commit comments

Comments
 (0)