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

Table output support is not very good, hope it can be optimized #62

Closed 191338780 closed 1 year ago

191338780 commented 1 year ago

Table output support is not very good, hope it can be optimized

咖啡种类 咖啡 牛奶 其他
拿铁 浓缩咖啡 牛奶 可选 -
卡布奇诺 浓缩咖啡 牛奶 可选 泡沫奶
美式咖啡 浓缩咖啡 可选 可选 -
摩卡咖啡 浓缩咖啡 牛奶 巧克力 -
香草拿铁 浓缩咖啡 牛奶 香草糖浆 -
卡布奇诺玛奇朵 浓缩咖啡 牛奶 可选 一层巧克力酱和泡沫奶
冰咖啡 浓缩咖啡 可选 可选 冰块
浓缩咖啡 浓缩咖啡 可选 可选 -

注意,这个表格只是一个示例,并不代表所有咖啡店都会使用相同的成分。成分可能因品牌、制作方式、地区和个人口味而异。

0xacx commented 1 year ago

I am planning to add markdown rendering at some point, that will hopefully help with tables.

0xacx commented 1 year ago

I just merged a PR https://github.com/0xacx/chatGPT-shell-cli/pull/81 that adds support for markdown, which greatly improves table rendering. You need to install glow for this to work. Even though this doesn't render 100% perfect, it is a big improvement from the previous output.

I am closing this issue as done. Please let me know if you face any issues.