GithubHelp home page GithubHelp logo

gpt-shell's Introduction

Setup

Environment

Best practice is to create a virtual environment and install relevant dependencies in there to develop and run the code.

conda create -n <env_name> python=3.11
conda activate <env_name>
pip install -r requirements.txt -r requirements_linting.txt

Ensure that the env variable OPENAI_API_KEY provides a valid API key.

Pre-commit

Install pre-commit in your local dev environment.

pip install pre-commit
pre-commit install

This makes applies various hooks before when you commit code. These hooks check the linting and formatting of your code and ensure that code is formatted properly following flake8 and black standards.

You can read more here.

When you get stuck/annoyed by pre-commit rejecting your commit, you may choose to run git commit -m "your message" --no-verify or -n to skip the hooks. This is not recommended because it bypasses the linting and can introduce trouble for other devs.

Tasks

  • Send Request To Model
  • Get Text Input From Shell
  • Run Bash Commands with approval

Demo

Export your OPENAI_API_KEY. Run python main.py.

Use Case 1: List All Files In ~/Downloads

DONE

Use Case 2: List Only PDF Files In Downloads

DONE

Use Case 3: Run Docker-Compose in another repo & Get Model Predictions

(not completed/tested)

gpt-shell's People

Contributors

curlykonda avatar

Watchers

 avatar

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.