Giter Site home page Giter Site logo

Comments (3)

Freed-Wu avatar Freed-Wu commented on September 21, 2024

Currenly, this program detect input and if input is exit, it will exit. However, it limit its usage. which make it even cannot be a translator:

> Please translate the following word to Chinese, just input Chinese.

Sure, please provide the word or phrase you would like me to translate to Chinese.

> hello

你好 (nǐ hǎo)

> exit

退出 (tuìchū)

I suggest give up the function exit/q to exit, just use C-D to replace it. The name of this program is ChatGPT-shell, Why not make it like a true bash?

from chatgpt-shell-cli.

mountaineerbr avatar mountaineerbr commented on September 21, 2024

Well, did you check the big prompt option?

  -b, --big-prompt           Allow multi-line prompts during chat mode

It can be improved, of course. Instead of using the cat command, there is some things you can do to use bash readline with read command. My chatgpt.sh wrapper is probably too code-spaghetty to be readable but multiline input can be implemented in various ways.

from chatgpt-shell-cli.

martin-bernholc avatar martin-bernholc commented on September 21, 2024

I'm not sure if i'm using the option properly but when asking chatgpt it tells me the same thing that option isn't properly "mapped".

chatgpt

Yes, there is a bug in the script. The bug is in the section where the script checks for the --big-prompt option. The
script incorrectly uses the --big-prompt option instead of the correct option --multi-line-prompt . To fix the bug, you
need to replace all occurrences of --big-prompt with --multi-line-prompt in the script.

from chatgpt-shell-cli.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.