Giter Club home page Giter Club logo

chatgpt-cli's Introduction

chatgpt-cli (0.1.1)

CI python

ChatGPT cli version with history.

How to use

  • Install ffmpeg if you didn't install it on your machine.
  • Create a virtualenv (Optional)
  • Use pip install -r requirements.txt command to install the dependencies.
  • Check python main.py --help for more detailed arguments
  • Use python main.py <args> to run the ChatGPT-cli.

Pre-requisites

  • <= python 3.8
  • ffmpeg

Setup Environment

  • Dev
    • Run make setup-dev-chatpg
  • Prod
    • Run make setup-chatpg

Features

  • Voice assistant
    • You can hear the answer of the question by voice.
  • History
    • You can save history what you were asking and the answer from ChatGPT.
    • Only working properly with Turbo model and paid version, currently.
    • The history data will be stored in history.sqlite3.
  • continuous / single
    • You can ask multiple questions or single question.
  • models
    • You can choose models which are proviced from ChatGPT.
      • turbo
      • davinci
      • curie
      • babbage
      • ada

Arguments

  • --con
    • Ask continuous questions to ChatGPT (Default: Single).
    • example
      • python main.py --con
  • --paid
    • Use paid version (Default: Free).
    • example
      • python main.py --paid
  • -m / --model
    • Please choose one of the provided models (Default: Turbo).
    • Provided models
      • turbo
      • davinci
      • curie
      • babbage
      • ada
    • example
      • python main.py -m davinci
  • --voice
    • Enable voice assistant (Default: disabled)
    • example
      • python main.py --voice

Test

  • Pytest
    • Run make test-ci-chatpg
  • Tox
    • To run tox, python versions in the default setting are 3.8, 3.9, and 3.10. You can configure the python versions in tox.ini file.
    • Run make test-chatpg

chatgpt-cli's People

Contributors

sammiee5311 avatar

Stargazers

 avatar hiyori avatar  avatar

Watchers

Kostas Georgiou avatar  avatar

Forkers

dks8979

chatgpt-cli's Issues

Add `Whisper` api

Whisper might be good to have it ?

It can be integrated with chatGPT.

Possible workflow:

Client Question -> Speech -> Whisper -> Text -> ChatGPT -> Answer -> Client

Add GUI

It is better to have a GUI with this project so that more easily to use.

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.