Skip to content

Commit

Permalink
change default model to gpt-3.5-turbo; clean context when switch in p…
Browse files Browse the repository at this point in the history
…rompts
  • Loading branch information
linexjlin committed Nov 10, 2023
1 parent 169bf72 commit 6dd0a69
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ type UserSetting struct {

func (us *UserSetting) initUserSetting() {
g_userSetting.mask = "Default"
g_userSetting.model = "gpt-3.5-turbo-0613"
g_userSetting.model = "gpt-3.5-turbo"
g_userSetting.maxConext = getMaxContext()
g_userSetting.headMessages = []gpt.ChatCompletionRequestMessage{
{
Expand Down
3 changes: 3 additions & 0 deletions systray.go
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,7 @@ func onReady() {

g_userSetting.maxConext = p.MaxContext

clearContext()
updateClearContextTitle(0)
g_userSetting.mask = mk
}
Expand Down Expand Up @@ -230,6 +231,8 @@ func onReady() {
if p.MaxContext != 0 {
g_userSetting.maxConext = p.MaxContext
}

clearContext()
updateClearContextTitle(0)
g_userSetting.mask = p.Name

Expand Down

0 comments on commit 6dd0a69

Please sign in to comment.