Giter VIP home page Giter VIP logo

Comments (2)

1llyaa avatar 1llyaa commented on June 4, 2024 1

I get same error message

from terminalgpt.

jucasoliveira avatar jucasoliveira commented on June 4, 2024

I'll need to seek further investigation on this error.

as of 21/11/2023 I've notice this error using npx .

Ive verified I also have the library installed on my local machine and using an old api key.

After removing the package and using npx again it prompt the API key

After adding a new key the package worked as expected:

npx terminalgpt chat

  **************** Welcome to terminalGPT ****************

     __
<(o )___
 ( ._> /
  `---'

  usage:
    TerminalGPT will ask you to add your OpenAI API key. Don't worry, it will be saved on your machine locally.

    Terminal will prompt you to enter a message. Type your message and press enter.
    Terminal will then prompt you to enter a response. Type your response and press enter.

    To exit, type "exit" and press enter.

    # Commands


✔ Enter your OpenAI API key: … ***************************************************
✔ You:  … Hello
GPT:
Hello! How can I assist you today? If you have any questions or need help with something, feel free to ask.
? You:  ›

I've also did with tgpt command and it worked as well:

tgpt chat --markdown

  **************** Welcome to terminalGPT ****************

     __
<(o )___
 ( ._> /
  `---'

  usage:
    TerminalGPT will ask you to add your OpenAI API key. Don't worry, it will be saved on your machine locally.

    Terminal will prompt you to enter a message. Type your message and press enter.
    Terminal will then prompt you to enter a response. Type your response and press enter.

    To exit, type "exit" and press enter.

    # Commands


✔ Enter your OpenAI API key: … ***************************************************
✔ You:  … hello
GPT:
Hello! How can I assist you today? If you have any questions or need support with something, feel free to ask.


? You:  ›

The troubleshooting I have for now is to uninstall the application:

npm uninstall -g terminalgpt

install it again and add a new api key.

Further needed:

tgpt delete is not removing the api key, so I'll leave this issue open to solve that

from terminalgpt.

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.