Coder Social home page Coder Social logo

gpt-cli's Introduction

GPT CLI

Why?

My terminal is always at my fingertips, unlike my browser. Moreover, it allows

  • tinkering with some GPT parameters,
  • saving and loading conversation context,
  • using GPT-4 without paying 20$ a month.

And, to be honest, I also just wanted to play around with OpenAI API and Typer.

TODO

  • Show what the model is typing instead of just "Typing" spinner
  • Improve README with usage demos.

Install

The easiest is to install it with pipx:

pipx install git+https://gitlab.com/nickto/gpt-cli.git

Use

TODO

Set up development environment

Install required Python version with pyenv

You can skip this if you system version is already compatible with the requirements in pyproject.toml.

pyenv install 3.11.2 # or any other compatible version

Create virtual environment

If you are using system Python:

/usr/bin/env python -m venv .venv

If you are using pyenv:

$(pyenv shell 3.11.2; python -m venv .venv)

Activate virtual environment

source .venv/bin/activate

and when done working on this project:

deactivate

Alternatively, automate it with direnv:

echo 'source .venv/bin/activate\nunset PS1' >> .envrc && direnv allow

Install dependencies

poetry install

Make sure you have installed all the dependencies:

poetry install | grep -q 'No dependencies to install or update' && echo "All good\!" || echo "Some packages are missing :("

gpt-cli's People

Contributors

nickto avatar

Stargazers

Dmitry Balabka avatar Denys Shkliarenko avatar

Watchers

 avatar

Forkers

dbalabka

gpt-cli's Issues

CLI ommand execution improvements

User must have simple possibility to ask how to exectute the command that is suggested by LLM.

  1. Enhance the context with:
    1. existing commands man help
    2. existing files in the current folder
  2. Add possibility to execute the suggested command.

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.