0xacx / chatGPT-shell-cli

Simple shell script to use OpenAI's ChatGPT and DALL-E from the terminal. No Python or JS required.
https://gptshell.cc
MIT License
1.05k stars 150 forks source link

Newlines are not saved in history #41

Closed edshamis closed 1 year ago

edshamis commented 1 year ago

❯ ./repos/bin/chatGPT-shell-cli/chatgpt.sh Welcome to chatgpt. You can quit with 'exit'.

Enter a prompt: write any python function

chatgpt Here's an example of a Python function that takes two arguments (a and b) and returns their sum:

def add_numbers(a, b):
    sum = a + b
    return sum

Once defined, you can call this function with two numbers as arguments:

result = add_numbers(5, 7)
print(result)

This would output 12 because the function adds 5 and 7 together.

Enter a prompt: history

16/03/2023 20:58 write any python function Here's an example of a Python function that takes two arguments (a and b) and returns their sum: def add_numbers(a, b): sum = a + b return sum Once defined, you can call this function with two numbers as arguments: result = add_numbers(5, 7) print(result) This would output 12 because the function adds 5 and 7 together.

0xacx commented 1 year ago

This should be fixed now! 👍
Thank you for reporting! 🙏