kardolus / chatgpt-cli

ChatGPT CLI is a versatile tool for interacting with ChatGPT models via OpenAI and Azure, as well as with models from Perplexity AI. It offers streaming, query mode, and history tracking for seamless, context-aware interactions. With extensive configuration options, it’s designed for both users and developers to create a tailored GPT experience.
MIT License
503 stars 34 forks source link

Error message should not go to stdout #45

Closed gzqx closed 4 months ago

gzqx commented 4 months ago

Currently, if I redirect output of chatgpt-cli to a file as

chatgpt "1+1" >> output

If an error occurs, e.g. internet connection goes wrong, the error message will go to the file.

kardolus commented 4 months ago

That's a great point! Fixed it in this commit: https://github.com/kardolus/chatgpt-cli/commit/675a74627a067f1dacef31b4a541108a42775559

Will cut a new release tonigh.