aboutsummaryrefslogtreecommitdiff
path: root/examples/main/README.md
diff options
context:
space:
mode:
authorDannyDaemonic <DannyDaemonic@gmail.com>2023-05-04 05:08:25 -0700
committerGitHub <noreply@github.com>2023-05-04 05:08:25 -0700
commitdb1080876a62ec3bb4119d90b16e7dce7594b733 (patch)
treeff0ba9990d20f5a77d0928d4295c9efad7400757 /examples/main/README.md
parentc65a7fbfa9c736416a25369cc05d356789df4c15 (diff)
Only escape prompts when used with `-e` (#1311)
Diffstat (limited to 'examples/main/README.md')
-rw-r--r--examples/main/README.md9
1 files changed, 7 insertions, 2 deletions
diff --git a/examples/main/README.md b/examples/main/README.md
index 493a8c0..6b7facb 100644
--- a/examples/main/README.md
+++ b/examples/main/README.md
@@ -34,13 +34,18 @@ For an interactive experience, try this command:
#### Unix-based systems (Linux, macOS, etc.):
```bash
-./main -m models/7B/ggml-model.bin -n -1 --color -r "User:" --in-prefix " " --prompt 'User: Hi\nAI: Hello. I am an AI chatbot. Would you like to talk?\nUser: Sure!\nAI: What would you like to talk about?\nUser:'
+./main -m models/7B/ggml-model.bin -n -1 --color -r "User:" --in-prefix " " \
+'User: Hi
+AI: Hello. I am an AI chatbot. Would you like to talk?
+User: Sure!
+AI: What would you like to talk about?
+User:'
```
#### Windows:
```powershell
-main.exe -m models\7B\ggml-model.bin -n -1 --color -r "User:" --in-prefix " " --prompt "User: Hi\nAI: Hello. I am an AI chatbot. Would you like to talk?\nUser: Sure!\nAI: What would you like to talk about?\nUser:"
+main.exe -m models\7B\ggml-model.bin -n -1 --color -r "User:" --in-prefix " " -e --prompt "User: Hi\nAI: Hello. I am an AI chatbot. Would you like to talk?\nUser: Sure!\nAI: What would you like to talk about?\nUser:"
```
The following command generates "infinite" text from a starting prompt (you can use `Ctrl-C` to stop it):