Skip to content

Commit

Permalink
Upgrade default model to GPT-4o-mini
Browse files Browse the repository at this point in the history
  • Loading branch information
edofic committed Aug 5, 2024
1 parent 23e6fd6 commit 8db2418
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ CMD ["./myApp"]
### Model versions

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

Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ module github.com/edofic/chatgpt-cli

go 1.22

require github.com/sashabaranov/go-openai v1.20.4
require github.com/sashabaranov/go-openai v1.27.1
2 changes: 2 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
github.com/sashabaranov/go-openai v1.20.4 h1:095xQ/fAtRa0+Rj21sezVJABgKfGPNbyx/sAN/hJUmg=
github.com/sashabaranov/go-openai v1.20.4/go.mod h1:lj5b/K+zjTSFxVLijLSTDZuP7adOgerWeFyZLUhAKRg=
github.com/sashabaranov/go-openai v1.27.1 h1:7Nx6db5NXbcoutNmAUQulEQZEpHG/SkzfexP2X5RWMk=
github.com/sashabaranov/go-openai v1.27.1/go.mod h1:lj5b/K+zjTSFxVLijLSTDZuP7adOgerWeFyZLUhAKRg=
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import (
)

const (
defaultModel = openai.GPT4TurboPreview
defaultModel = openai.GPT4oMini
sessionFile = "/tmp/chatgpt-cli-last-session.json"
)

Expand Down

0 comments on commit 8db2418

Please sign in to comment.