diff options
| -rw-r--r-- | src/gpt_chat_cli/argparsing.py | 4 | ||||
| -rw-r--r-- | src/gpt_chat_cli/gcli.py | 1 | 
2 files changed, 3 insertions, 2 deletions
| diff --git a/src/gpt_chat_cli/argparsing.py b/src/gpt_chat_cli/argparsing.py index 04d3645..15826f2 100644 --- a/src/gpt_chat_cli/argparsing.py +++ b/src/gpt_chat_cli/argparsing.py @@ -287,7 +287,9 @@ def parse_args() -> Arguments:              args.adornments = AutoDetectedOption.OFF      if args.message is None: -        if sys.stdin.isatty(): +        if debug and args.load_response_from_file: +            args.interactive = False +        elif sys.stdin.isatty():              args.interactive = True      if not debug: diff --git a/src/gpt_chat_cli/gcli.py b/src/gpt_chat_cli/gcli.py index 8ac7ac8..d904733 100644 --- a/src/gpt_chat_cli/gcli.py +++ b/src/gpt_chat_cli/gcli.py @@ -125,7 +125,6 @@ def print_streamed_response(              prompt_printed = True              print(PROMPT, end=' ', flush=True) -          content = display_response.take_delta()          print(f'{COLOR_CODE.WHITE}{content}{COLOR_CODE.RESET}',                sep='', end='', flush=True) | 
