j178 / chatgpt

An elegant interactive CLI for ChatGPT
693 stars 52 forks source link

Prompt Not Resetting when `-p` is used. #65

Closed piercecohen1 closed 1 year ago

piercecohen1 commented 1 year ago

The prompt is not resetting when -p is used until the conversation is cleared manually with the ctrl+r keybinding. Also, it was always choosing the default prompt for me even when I specified a different prompt, but I was modify my code to fix that issue.

j178 commented 1 year ago

Hi, could you please elaborate on how you fixed this issue?

I created PR #66, which sets the prompt of the current conversation to the one provided with the -p flag. Does this fix your issue?

piercecohen1 commented 1 year ago

This fixes the issue. My solution was very similar. PR #66 fully addressed the issues I was having. Thanks!