j178 / chatgpt

An elegant interactive CLI for ChatGPT

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Prompt Not Resetting when `-p` is used.

piercecohen1 opened this issue · comments

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.

commented

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?

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