upload opencode_vsix

This commit is contained in:
陆斌 2026-03-10 17:15:35 +08:00
parent 05e2532e33
commit 32b33a202f
2 changed files with 10 additions and 4 deletions

View File

@ -16,13 +16,12 @@
### windows
方式一:
- `winget install --id SST.opencode`
- vscode中安装opencode插件
- vscode中安装opencode插件,通过"从VSIX安装"方式安装插件插件安装包处于installations目录
方式二:
1. 通过Node.js安装终端输入安装命令`npm i -g opencode-ai`
2. 在PowerShell终端中输入`opencode --version`指令,如果显示版本号,说明安装成功
3. 在代码项目目录下执行`opencode` 启动Opencode TUI即可针对该项目进行对话`PS D:\01-Codes\jianmu> opencode`
3. vscode中安装opencode插件
### 模型切换(替换为私有部署大模型)
> 前提本地或内网部署的模型服务API端点 `http://127.0.0.1:11434/v1`以Ollama为例
@ -60,13 +59,20 @@
* baseURL: 本地 Ollama 服务地址,默认为 http://localhost:11434/v1
* models: 模型映射,键为 Ollama 模型名称(执行`ollama list`查看),值为显示名称
2. 切换模型
在 Opencode TUI 页面输入框输入`/models`,按回车,方向键选择刚配置的模型,按回车使用该模型。
在 Opencode TUI 、 VSCode opencode插件页面输入框输入`/models`,按回车,方向键选择刚配置的模型,按回车使用该模型。
#### Linux
与Window操作同理编辑 `~/.config/opencode/opencode.json`
## Semgrep
### 安装步骤
对于 Ubuntu、Windows 到 Linux 的 Windows 子系统 (WSL)、Linux、macOS:
1. 使用pip安装:
`python3 -m pip install semgrep`
2. 验证安装:
`semgrep --version`
### 服务私有化部署Linux服务器

Binary file not shown.