Skip to content

Commit

Permalink
Modified to open a dialog instead of single mode when using a pipe
Browse files Browse the repository at this point in the history
  • Loading branch information
kznrluk committed Sep 27, 2023
1 parent d7e41c9 commit 6553ebd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/aski.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ func Aski(cmd *cobra.Command, args []string) {
ctx.Append(openai.ChatMessageRoleUser, content)
}

if content != "" || session.IsPipe() {
if content != "" {
_, err = Single(cfg, ctx, isRestMode)
if err != nil {
fmt.Printf("error: %s", err.Error())
Expand Down

0 comments on commit 6553ebd

Please sign in to comment.