From 8db24187247308a6e5a1c2c1ecd9c971f86c10c6 Mon Sep 17 00:00:00 2001 From: Andraz Bajt Date: Mon, 5 Aug 2024 15:54:05 +0200 Subject: [PATCH] Upgrade default model to GPT-4o-mini --- README.md | 2 +- go.mod | 2 +- go.sum | 2 ++ main.go | 2 +- 4 files changed, 5 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index e326989..7e3fd36 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/go.mod b/go.mod index 70e0f2e..575c614 100644 --- a/go.mod +++ b/go.mod @@ -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 diff --git a/go.sum b/go.sum index 506269e..936efc6 100644 --- a/go.sum +++ b/go.sum @@ -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= diff --git a/main.go b/main.go index f0ec565..23c5f8a 100644 --- a/main.go +++ b/main.go @@ -16,7 +16,7 @@ import ( ) const ( - defaultModel = openai.GPT4TurboPreview + defaultModel = openai.GPT4oMini sessionFile = "/tmp/chatgpt-cli-last-session.json" )