Skip to content

Commit

Permalink
add new line to prevent shell prompt from deleting the last line
Browse files Browse the repository at this point in the history
  • Loading branch information
kznrluk committed Sep 27, 2023
1 parent 7234d04 commit d7e41c9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/dialog.go
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ func StartDialog(cfg config.Config, cv conv.Conversation, isRestMode bool, resto

func Single(cfg config.Config, ctx conv.Conversation, isRestMode bool) (string, error) {
data, err := chat.RetrieveResponse(isRestMode, cfg, ctx)
fmt.Printf("\n") // in some cases, shell prompt delete the last line so we add a new line
if err != nil {
fmt.Printf(err.Error())
return "", nil
Expand Down

0 comments on commit d7e41c9

Please sign in to comment.