Skip to content

Commit 8db2418

Browse files
committed
Upgrade default model to GPT-4o-mini
1 parent 23e6fd6 commit 8db2418

File tree

4 files changed

+5
-3
lines changed

4 files changed

+5
-3
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ CMD ["./myApp"]
7474
### Model versions
7575

7676
Currently this tool defaults to
77-
[`gpt-4-turbo-preview`](https://platform.openai.com/docs/models/gpt-4-and-gpt-4-turbo).
77+
[`gpt-4o-mini`](https://platform.openai.com/docs/models/gpt-4o-mini).
7878
You can alternatively use any of the 3.5 & 4 models by specifying the model
7979
name in an environment variable
8080

go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ module github.com/edofic/chatgpt-cli
22

33
go 1.22
44

5-
require github.com/sashabaranov/go-openai v1.20.4
5+
require github.com/sashabaranov/go-openai v1.27.1

go.sum

+2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
github.com/sashabaranov/go-openai v1.20.4 h1:095xQ/fAtRa0+Rj21sezVJABgKfGPNbyx/sAN/hJUmg=
22
github.com/sashabaranov/go-openai v1.20.4/go.mod h1:lj5b/K+zjTSFxVLijLSTDZuP7adOgerWeFyZLUhAKRg=
3+
github.com/sashabaranov/go-openai v1.27.1 h1:7Nx6db5NXbcoutNmAUQulEQZEpHG/SkzfexP2X5RWMk=
4+
github.com/sashabaranov/go-openai v1.27.1/go.mod h1:lj5b/K+zjTSFxVLijLSTDZuP7adOgerWeFyZLUhAKRg=

main.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import (
1616
)
1717

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

0 commit comments

Comments
 (0)