Skip to content

Commit 16f5f8a

Browse files
committed
docs: separate shell command from output in examples
Signed-off-by: tylerslaton <[email protected]>
1 parent 01583db commit 16f5f8a

File tree

3 files changed

+13
-9
lines changed

3 files changed

+13
-9
lines changed

README.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,10 @@ Form and run a SQL query to find the artist with the most number of albums and o
2727
the result of that.
2828

2929
When done remove the database file and the downloaded content.
30+
```shell
31+
$ gptscript ./example.gpt
3032
```
3133
```
32-
$ gptscript ./example.gpt
33-
3434
OUTPUT:
3535

3636
The artist with the most number of albums in the database is Iron Maiden, with a total
@@ -89,7 +89,8 @@ $env:OPENAI = 'your-api-key'
8989

9090
```shell
9191
gptscript https://get.gptscript.ai/echo.gpt --input 'Hello, World!'
92-
92+
```
93+
```
9394
OUTPUT:
9495
9596
Hello, World!
@@ -134,7 +135,8 @@ When asked how I am doing, respond with "Thanks for asking "${question}", I'm do
134135
Put the above content in a file named `bob.gpt` and run the following command:
135136
```shell
136137
$ gptscript bob.gpt
137-
138+
```
139+
```
138140
OUTPUT:
139141
140142
Bob said, "Thanks for asking 'How are you doing?', I'm doing great fellow friendly AI tool!"

docs/docs/01-overview.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ GPTScript is a new scripting language to automate your interaction with a Large
1111
We are currently exploring options for interacting with local models using GPTScript.
1212
:::
1313

14-
```yaml
14+
````yaml
1515
# example.gpt
1616

1717
Tools: sys.download, sys.exec, sys.remove
@@ -26,10 +26,11 @@ Form and run a SQL query to find the artist with the most number of albums and o
2626
the result of that.
2727

2828
When done remove the database file and the downloaded content.
29-
```
30-
```
29+
```shell
3130
$ gptscript ./example.gpt
31+
````
3232
33+
```
3334
OUTPUT:
3435

3536
The artist with the most number of albums in the database is Iron Maiden, with a total

docs/docs/100-tools/100-tools.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,10 @@ When asked how I am doing, respond with "Thanks for asking "${question}", I'm do
2323

2424

2525
Put the above content in a file named `bob.gpt` and run the following command:
26-
```sh
26+
```shell
2727
$ gptscript bob.gpt
28-
28+
```
29+
```
2930
OUTPUT:
3031
3132
Bob said, "Thanks for asking 'How are you doing?', I'm doing great fellow friendly AI tool!"

0 commit comments

Comments
 (0)