Skip to content

Commit dfe5270

Browse files
committed
Switch to gpt4 by default
1 parent 555919d commit dfe5270

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

README.md

+6-3
Original file line numberDiff line numberDiff line change
@@ -71,12 +71,15 @@ RUN go build -o myApp .
7171
CMD ["./myApp"]
7272
```
7373

74-
### GPT-4
74+
### Model versions
7575

76-
Currently this tool defaults to `gpt-3.5-turbo`, if you have access to GPT-4 and want to use it you can set an evironment variable just like for the api key
76+
Currently this tool defaults to
77+
[`gpt-4-turbo-preview`](https://platform.openai.com/docs/models/gpt-4-and-gpt-4-turbo).
78+
You can alternatively use any of the 3.5 & 4 models by specifying the model
79+
name in an environment variable
7780

7881
```sh
79-
export OPENAI_MODEL=gpt-4
82+
export OPENAI_MODEL=gpt-3.5-turbo-0125
8083
```
8184

8285

main.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@ import (
1212
"strings"
1313
"time"
1414

15-
openai "github.com/sashabaranov/go-openai"
15+
"github.com/sashabaranov/go-openai"
1616
)
1717

1818
const (
19-
defaultModel = openai.GPT3Dot5Turbo
19+
defaultModel = openai.GPT4TurboPreview
2020
sessionFile = "/tmp/chatgpt-cli-last-session.json"
2121
)
2222

0 commit comments

Comments
 (0)