FROM: https://agiclass.feishu.cn/docx/ClrVddclboshICxgMmgcOggMnU3
2种编程的AI助手工具
tabbyml [本地版]
描述: Tabby是目前完全开源,从模型到插件都开源的一个AI编程助手。 Tabby分成模型和插件两部分
模型支持的环境: Mac M1/M2, Docker (Docker可以在Windows和Linux上安装)
插件支持的环境: Visual Studio Code, IntelliJ Platform IDEs系列: IDEA, PyCharm, GoLand, Android Studio, VIM / NeoVIM
官方文档参考地址: https://tabby.tabbyml.com/docs/getting-started
支持的编码模型:
<style> td {white-space:nowrap;border:1px solid #dee0e3;font-size:10pt;font-style:normal;font-weight:normal;vertical-align:middle;word-break:normal;word-wrap:normal;}</style> <byte-sheet-html-origin data-id="" data-version="4" data-is-embed="true" data-grid-line-hidden="false" data-copy-type="col"><colgroup><col width="283"><col width="269"></colgroup>
Mac电脑安装
- 第一步:安装本地模型
https://tabby.tabbyml.com/docs/installation/
通过Homebrew安装管理命令: brew install tabbyml/tabby/tabby
tabby服务的启动: tabby serve --device metal --model TabbyML/StarCoder-1B
vscode -》扩展 -》 安装 tabby
-
tabby的代理服务器配置
-
指定代理服务器配置里的 server - endpoint 指向了本地运行的 8080端口
[server]
endpoint = "http://localhost:8080" # http or https URL
- 命令行输入
vim ~/.tabby/config.toml
# Index three repositories' source code as additional context for code completion.
[[repositories]]
name = "tabby"
git_url = "https://github.com/TabbyML/tabby.git" # 远程的git项目,但是如果没有代理很容易失败
# git through ssh protocol.
[[repositories]]
name = "CTranslate2"
git_url = "git@github.com:OpenNMT/CTranslate2.git"
# local directory is also supported!
[[repositories]]
name = "dify"
# 你自己下载下来本地的项目, 如果你的项目目录是 /home/xiaoming/Code/Dify
git_url = "file:///Users/taopeng/Desktop/AI/dify-main"
- 向量化上面的dify模板
tabby scheduler --now