Giter Club home page Giter Club logo

chatgpt_tool's Introduction

ChatGPT Tool

δΈ­ζ–‡

  • A tool for explaining and reviewing code, which supports large files.
  • ChatGPT command-line tool, which can be called via command-line to utilize ChatGPT.

Requirements

  • Windows
  • Python 3.10

Installation

  • pip install -r requirements.txt

Usage

Configuring ChatGPT

Create a .chatgpt_tool folder in your user directory and create a config.json file inside it with content like this:

{
    "model": "text-davinci-002-render-sha",
    "access_token": "your_access_token",
    "export_dir": "your_export_dir",
    "language": "chinese"
}

where:

  • model is the model to use, default to text-davinci-002-render-sha.
  • access_token is your token, which can be obtained from here.
  • export_dir is the directory to export the conversations.
  • language is the language to do code review and explanation

Additionally, environment variables can be supported, like: "export_dir": ${CHATGPT_EXPORT_DIR}

Running

  • Code explanation: python code_explainer.py -h
  • Code review: python code_reviewer.py -h
  • Command-line tool: python cli.py -h We recommend using the Windows Terminal, which can output more user-friendly interfaces and colors.

After executing the above commands, you will see specific command-line prompts, which can be followed to continue.

Others

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.