YooooEX's 101 - 编译 Sweep AI IDEA 插件实现代码补全

2026-04-29 10:041阅读0评论SEO问题
  • 内容介绍
  • 文章标签
  • 相关推荐
问题描述:
TL;DR专用
  • 整个 IDEA
  • 拉插件仓库 sweepai/jetbrains_plugin
  • IDEA 打开仓库, 编译依赖 gradle :buildPlugin
  • build/distributions/找编译产物, 安装插件
  • 模型跑起来 huggingface
  • 打开插件设置, 插件设置 AccountSweep API URL, 本地模式则勾选 Enable Local Autocomplete Server

在对应的地方部署服务

# uvx sweep-autocomplete --help # usage: sweep-autocomplete [-h] [--host HOST] [--port PORT] # Sweep Autocomplete Server # options: # -h, --help show this help message and exit # --host HOST Bind host (default: 0.0.0.0) # --port PORT Bind port (default: 8081) uvx sweep-autocomplete --port 8081

sweep-autocomplete 提供以下环境变量配置:

  • NEXT_EDIT_AUTOCOMPLETE_ENDPOINT: 远端地址(/v1/completions), 填写地址即可, 无需补充路径
  • M
阅读全文
标签:软件开发
问题描述:
TL;DR专用
  • 整个 IDEA
  • 拉插件仓库 sweepai/jetbrains_plugin
  • IDEA 打开仓库, 编译依赖 gradle :buildPlugin
  • build/distributions/找编译产物, 安装插件
  • 模型跑起来 huggingface
  • 打开插件设置, 插件设置 AccountSweep API URL, 本地模式则勾选 Enable Local Autocomplete Server

在对应的地方部署服务

# uvx sweep-autocomplete --help # usage: sweep-autocomplete [-h] [--host HOST] [--port PORT] # Sweep Autocomplete Server # options: # -h, --help show this help message and exit # --host HOST Bind host (default: 0.0.0.0) # --port PORT Bind port (default: 8081) uvx sweep-autocomplete --port 8081

sweep-autocomplete 提供以下环境变量配置:

  • NEXT_EDIT_AUTOCOMPLETE_ENDPOINT: 远端地址(/v1/completions), 填写地址即可, 无需补充路径
  • M
阅读全文
标签:软件开发