Giter VIP home page Giter VIP logo

chatgpt-cli's Introduction

chatgpt-cli

Interactive command line tool to access Chatgpt's feature

You can easily access chatgpt features from your terminal

Demo

Usage

I recommend installing the tool globally, so that you can make use of it no matter where you are, but you can take out -g flag if you want to use it in particular work instead:

npm i -g @yonashailug/chatgpt-cli

Note: You may need to run sudo before this command sudo npm i -g @yonashailug/chatgpt-cli

Then, to kick off the tool, type:

chatgpt-cli

You will be guided through prompts

To use different model types you can pass the model type to end of the script

chatgpt-cli -m model-id-2 or chatgpt-cli --model model-id-2, the default model is text-davinci-003

Configuration

To use chatgpt's feature require api key to be generated and can be generated here and when you run this npm package it will prompt to enter api key and save it.

To enter api key in case of expire or miss typing, please use the command below chatgpt-cli -k

chatgpt-cli's People

Contributors

yonashailug avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

chatgpt-cli's Issues

Question crashes the CLI

Hello,
I installed your CLI as per instructions, and inputted my ChatGPT key. Then when I ask a question:

What is the best state to invest in AirBnb

it crashes and goes back to the zsh prompt every time.

Please advise,
Igor

is it not possible to insert api key

i am unable to insert my api key,not even after deleting it and cleaning the cache,it simply doesn't request the api key and neither there's a flag option to use.

http 401

The api key is printed twice in the Authorization field.

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.