Giter Site home page Giter Site logo

plazide / local-ai-code-completion Goto Github PK

View Code? Open in Web Editor NEW
16.0 1.0 3.0 7.7 MB

A vscode extension providing AI code completion locally on your computer.

License: MIT License

TypeScript 100.00%
artificial-intelligence developer-tools large-language-models typescript vscode-extension

local-ai-code-completion's Introduction

local-ai-code-completion README

Enables AI Assisted code completion, similar to Github Copilot, completely locally. No code leaves your machine. This has two major benefits:

  • Cost. This extension is completely free to use.
  • Privacy. No data is shared with third-parties, everything stays on your computer.

Features

AI Assisted code completion.

You trigger code completion by pressing Ctrl+Alt+C.

You accept a completion by pressing Tab.

You cancel an ongoing completion by pressing Escape.

You delete a non-accepted completion by pressing Escape.

GIF is sped up.

usage example

The extension uses codellama 7B under the hood, which supports many languages including Python, C++, Java, PHP, Typescript (Javascript), C# and Bash.

According to evaluation results from Meta, codellama 7B is almost on par with Codex, the model used by Github Copilot.

Requirements

This extension requires an Ollama installation to run the language model locally. Ollama does not currently support Windows, which also means that this extension is not compatible with Windows.

Known Issues

  • Time to start generating can be very long. This is an inherent issue to the model running locally on your computer.
  • Inference is slow. Also a consequence of running the model locally, but depends on your system.

Release Notes

1.2.0

Added

  • Config option for generation timeout
  • Config options for baseUrl of Ollama API (enables use of the extension with a remote or local Ollama server)

Changed

  • Improved logging

Fixed

  • Bug where aborting generation would not work

Thanks to @johnnyasantoss for making these changes.


1.1.0

Added options for changing model, temperature and top_p parameters.


1.0.0

Initial release.


local-ai-code-completion's People

Contributors

entaigner avatar johnnyasantoss avatar plazide avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

local-ai-code-completion's Issues

Support for configs

Hello, I just found your extension, and it looks like it could be improved by having settings to control how the model runs, how big the context is, and other configs.

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.