FROM: https://agiclass.feishu.cn/docx/ClrVddclboshICxgMmgcOggMnU3
2種編程的AI助手工具
tabbyml [本地版]
描述: Tabby是目前完全開源嚣艇,從模型到插件都開源的一個(gè)AI編程助手魂迄。 Tabby分成模型和插件兩部分
模型支持的環(huán)境: Mac M1/M2剪菱, Docker (Docker可以在Windows和Linux上安裝)
插件支持的環(huán)境: 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服務(wù)的啟動(dòng): tabby serve --device metal --model TabbyML/StarCoder-1B
vscode -》擴(kuò)展 -》 安裝 tabby
-
tabby的代理服務(wù)器配置
-
指定代理服務(wù)器配置里的 server - endpoint 指向了本地運(yùn)行的 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" # 遠(yuǎn)程的git項(xiàng)目遵馆,但是如果沒有代理很容易失敗
# git through ssh protocol.
[[repositories]]
name = "CTranslate2"
git_url = "git@github.com:OpenNMT/CTranslate2.git"
# local directory is also supported!
[[repositories]]
name = "dify"
# 你自己下載下來本地的項(xiàng)目, 如果你的項(xiàng)目目錄是 /home/xiaoming/Code/Dify
git_url = "file:///Users/taopeng/Desktop/AI/dify-main"
- 向量化上面的dify模板
tabby scheduler --now