marcolardera / chatgpt-cli

Simple yet effective command line client for chatting with ChatGPT using the official API

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Python code broken because of space prefix

monperrus opened this issue · comments

Action: I copy-paste Python code produced by chatgpt-cli

Expected behavior: it runs

Actual behavior: it's broken because of a space indentation (coming from the highlighting perhaps).

How to fix this?

Thanks!

This is because markdown: true.

with markdown: false it works, and the output is still colorful, probably thanks to rich.Console