File tree Expand file tree Collapse file tree 3 files changed +21
-5
lines changed Expand file tree Collapse file tree 3 files changed +21
-5
lines changed Original file line number Diff line number Diff line change @@ -59,10 +59,18 @@ Download and install the archive for your platform and architecture from the [re
59
59
60
60
### 2. Get an API key from [ OpenAI] ( https://platform.openai.com/api-keys ) .
61
61
62
+ #### macOS and Linux
63
+
62
64
``` shell
63
65
export OPENAI_API_KEY=" your-api-key"
64
66
```
65
67
68
+ #### Windows
69
+
70
+ ``` powershell
71
+ $env:OPENAI = 'your-api-key'
72
+ ```
73
+
66
74
### 3. Run Hello World
67
75
68
76
``` shell
Original file line number Diff line number Diff line change @@ -26,10 +26,18 @@ Download and install the archive for your platform and architecture from the [re
26
26
27
27
### 2. Get an API key from [ OpenAI] ( https://platform.openai.com/api-keys ) .
28
28
29
+ #### macOS and Linux
30
+
29
31
``` shell
30
32
export OPENAI_API_KEY=" your-api-key"
31
33
```
32
34
35
+ #### Windows
36
+
37
+ ``` powershell
38
+ $env:OPENAI = 'your-api-key'
39
+ ```
40
+
33
41
### 3. Run Hello World
34
42
35
43
``` shell
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ For example:
30
30
description : This is a tool that calls a binary.
31
31
args : arg1: The first argument.
32
32
33
- # !/usr/bin/env ./path/to/binary
33
+ # !/usr/bin/env ./path/to/binary --arg1="${arg1}"
34
34
```
35
35
36
36
## Shell
@@ -42,11 +42,11 @@ args: arg1: The first argument.
42
42
43
43
# !/usr/bin/env sh
44
44
echo "Hello, world!"
45
- ./path/to/script.sh
45
+ ./path/to/script.sh --arg1="${arg1}"
46
46
```
47
47
48
48
## Python
49
- You can also call Python scripts directly the same way. For example:
49
+ You can call Python scripts directly, for example:
50
50
51
51
``` yaml
52
52
description : This is a tool that calls a Python script.
@@ -69,7 +69,7 @@ python3 ./path/to/script.py
69
69
70
70
## Node
71
71
72
- You can also call Node.js scripts directly the same way. For example:
72
+ You can call Node.js scripts directly, for example:
73
73
74
74
``` yaml
75
75
description : This is a tool that calls a Node.js script.
@@ -91,7 +91,7 @@ node ./path/to/script.js
91
91
92
92
## Golang
93
93
94
- You can also call Golang binaries directly the same way. For example:
94
+ You can call Golang binaries directly, for example:
95
95
96
96
``` yaml
97
97
description : This is a tool that calls a Golang binary.
You can’t perform that action at this time.
0 commit comments