Skip to content

Commit

Permalink
Set default model to gpt-4o-mini
Browse files Browse the repository at this point in the history
  • Loading branch information
kercre123 committed Aug 2, 2024
1 parent ea16df7 commit 2395bd3
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion chipper/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ require (
github.com/ncruces/zenity v0.10.10
github.com/orcaman/writerseeker v0.0.0-20200621085525-1d3f536ff85e
github.com/pkg/errors v0.9.1
github.com/sashabaranov/go-openai v1.24.0
github.com/sashabaranov/go-openai v1.27.1
github.com/soheilhy/cmux v0.1.5
github.com/soundhound/houndify-sdk-go v0.3.5
github.com/vadv/gopher-lua-libs v0.5.0
Expand Down
4 changes: 2 additions & 2 deletions chipper/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -483,8 +483,8 @@ github.com/rogpeppe/go-internal v1.2.2/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFR
github.com/rogpeppe/go-internal v1.3.0/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFRclV5y23lUDJ4=
github.com/russross/blackfriday/v2 v2.0.1/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM=
github.com/ryanuber/columnize v0.0.0-20160712163229-9b3edd62028f/go.mod h1:sm1tb6uqfes/u+d4ooFouqFdy9/2g9QGwK3SQygK0Ts=
github.com/sashabaranov/go-openai v1.24.0 h1:4H4Pg8Bl2RH/YSnU8DYumZbuHnnkfioor/dtNlB20D4=
github.com/sashabaranov/go-openai v1.24.0/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=
github.com/schollz/progressbar/v3 v3.7.4/go.mod h1:1H8m5kMPW6q5fyjpDqtBHW1JT22mu2NwHQ1ApuCPh/8=
github.com/sean-/seed v0.0.0-20170313163322-e2103e2c3529/go.mod h1:DxrIzT+xaE7yg65j358z/aeFdxmN0P9QXhEzd20vsDc=
github.com/shurcooL/sanitized_anchor_name v1.0.0/go.mod h1:1NzhyTcUVG4SuEtjjoZeVRXNmyL/1OwPU0+IJeTBvfc=
Expand Down
2 changes: 1 addition & 1 deletion chipper/pkg/wirepod/ttr/kgsim.go
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ func CreateAIReq(transcribedText, esn string, gpt3tryagain, isKG bool) openai.Ch
if gpt3tryagain {
model = openai.GPT3Dot5Turbo
} else if vars.APIConfig.Knowledge.Provider == "openai" {
model = openai.GPT4o
model = openai.GPT4oMini
logger.Println("Using " + model)
} else {
logger.Println("Using " + vars.APIConfig.Knowledge.Model)
Expand Down
4 changes: 2 additions & 2 deletions chipper/pkg/wirepod/ttr/kgsim_cmds.go
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ var ValidLLMCommands []LLMCommand = []LLMCommand{
// not impl yet
ParamChoices: "front, lookingUp",
Action: ActionGetImage,
SupportedModels: []string{openai.GPT4o},
SupportedModels: []string{openai.GPT4o, openai.GPT4oMini},
},
{
Command: "newVoiceRequest",
Expand Down Expand Up @@ -490,7 +490,7 @@ func DoGetImage(msgs []openai.ChatCompletionMessage, param string, robot *vector
Stream: true,
}
if vars.APIConfig.Knowledge.Provider == "openai" {
aireq.Model = openai.GPT4o
aireq.Model = openai.GPT4oMini
logger.Println("Using " + aireq.Model)
} else {
logger.Println("Using " + vars.APIConfig.Knowledge.Model)
Expand Down

0 comments on commit 2395bd3

Please sign in to comment.