Skip to content

Commit 28f04de

Browse files
committed
new gpt example
Signed-off-by: Saiyam Pathak <[email protected]>
1 parent 357da7b commit 28f04de

File tree

2 files changed

+20
-1
lines changed

2 files changed

+20
-1
lines changed

README.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ curl https://get.gptscript.ai/install.sh | sh
5050

5151
#### Manually
5252

53-
Download and install the archive for your platform and architecture from the [release page](https://github.com/gptscript-ai/gptscript/releases).
53+
Download and install the archive for your platform and architecture from the [releases page](https://github.com/gptscript-ai/gptscript/releases).
5454

5555
### 2. Get an API key from [OpenAI](https://platform.openai.com/api-keys).
5656

@@ -62,7 +62,12 @@ export OPENAI_API_KEY="your-api-key"
6262

6363
```shell
6464
gptscript https://get.gptscript.ai/echo.gpt --input 'Hello, World!'
65+
66+
OUTPUT:
67+
68+
Hello, World!
6569
```
70+
The model used by default is `gpt-4-turbo-preview` and you must have access to that model in your OpenAI account.
6671

6772
### 4. Extra Credit: Examples and Run Debugging UI
6873

examples/time.gpt

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
tools: time
2+
3+
Ask time to get you the time in different timezones.
4+
5+
---
6+
name: time
7+
description: Can tell current time in any timezone,
8+
args: timezone: The timezone you want time in.
9+
10+
#!/bin/bash
11+
echo "Your current date and time is "
12+
date
13+
echo "Time in your requested timezone ${timezone} is "
14+
TZ=${timezone} date

0 commit comments

Comments
 (0)