GithubHelp home page GithubHelp logo

moon-ai's Introduction

moon-ai README

moon-ai是一个简单的vscode扩展,作为一个AI助手,可以支持代码生成、代码解释。

Features

一个简单的vscode扩展,可以支持OPENAI的国内代理服务网站,也支持text-generation-webui本地部署的模型服务。

v0.0.1

  • 支持1.67以上版本安装;
  • 支持tab键触发推理,并提示,可用tab进行选择;
  • 支持静止5秒后进行提示,以减少对服务端的访问频率;

当前已经测试的模型:

  • deepseek-coder-33B-instruct-GPTQ alt text
  • nous-hermes-2-mixtral-8x7b-sft.Q4_K_M.gguf (文本生成结果不好,文不对题,可能是api调用问题) alt text alt text
  • bagel-dpo-34b-v0.2.Q4_K_M.gguf (生成的不错,而且有足够的想象力) alt text alt text

代码解释

选择一块代码,右键菜单中点击"moon-ai:解释代码",可以用快捷键"ctrl+shift+e"

代码生成

选择一块代码,右键菜单中点击"moon-ai:生成代码",可以用快捷键"ctrl+shift+m"

配置文件

.moon-ai.json文件,放置在当前用户的home目录中

.moon-ai.json配置文件说明

text-generation-webui的配置文件

{
        "apiKey": "",
        "baseURL": "http://127.0.0.1:5000/v1",
        "model": "gpt-3.5-turbo"
}

text-generation-webui的启动命令中要打开api支持

./start_linux.sh --listen --api

OPENAI的配置文件

{
        "apiKey": "sk-XXXXXXX",
        "baseURL": "https://api.XXXXX.com.cn/v1",
        "model": "gpt-3.5-turbo-instruct"
}

参数解释

Enjoy!

moon-ai's People

Contributors

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