Skip to content

Commit

Permalink
bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
moqsien committed Oct 26, 2023
1 parent d9ebbff commit 31ae4ce
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkgs/tui/ui.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,6 @@ func (that *GPTUI) Run() {
that.Program = tea.NewProgram(that.GVM, tea.WithAltScreen())
}
if _, err := that.Program.Run(); err != nil {
gprint.PrintError("%+v", err)
gprint.PrintError("Run bubbletea failed: %+v", err)
}
}
2 changes: 1 addition & 1 deletion pkgs/tui/ui_conf.go
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ func SetConfig(cfg *config.Config, values map[string]string) {
cfg.Spark.APPKey = values[sparkApiKey]
}
if values[sparkApiSecrete] != "" {
cfg.Spark.APPSecrete = values[sparkApiKey]
cfg.Spark.APPSecrete = values[sparkApiSecrete]
}
if values[sparkMaxTokens] != "" {
cfg.Spark.MaxTokens = gconv.Int64(values[sparkMaxTokens])
Expand Down

0 comments on commit 31ae4ce

Please sign in to comment.