Giter Club home page Giter Club logo

go-git-aico's Introduction

go-git-aico

  • Inspired by git-aico
  • The majority of the code was written using aider

Installation

To install the tool using go install, run the following command:

go install github.com/komapotter/go-git-aico/cmd/git-aico@latest

This will install the git-aico executable in your $GOPATH/bin directory.

  1. Ensure you have staged changes in your git repository by running git add.
  2. Run the tool using git aico to generate commit message suggestions.
  3. If you want verbose output, which includes the raw response from OpenAI, run the tool with the -v flag like this: git aico -v.
  4. The tool will present you with a list of commit message suggestions based on the staged changes.
  5. Select the appropriate commit message by entering the number corresponding to the suggestion.
  6. The tool will automatically commit your staged changes with the selected commit message.

Environment Variables

To use this tool, you need to set the following environment variables:

  • OPENAI_API_KEY: Your OpenAI API key
  • NUM_CANDIDATES: The number of commit message candidates to generate (default: 3)
  • OPENAI_MODEL: The OpenAI model to use (default: gpt-4o)
  • OPENAI_TEMPERATURE: The OpenAI temperature parameter (default: 0.1)
  • OPENAI_MAX_TOKENS: The maximum number of tokens for OpenAI (default: 450)

Example of setting environment variables:

export OPENAI_API_KEY="your_openai_api_key"
export NUM_CANDIDATES=3
export OPENAI_MODEL="gpt-4o"
export OPENAI_TEMPERATURE=0.1
export OPENAI_MAX_TOKENS=450

go-git-aico's People

Contributors

komapotter 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.