dsh-wsl-ollama
其他 活跃维护

dsh-wsl-ollama

173787247/dsh-wsl-ollama

在 WSL 下直接查看 Ollama 本地服务状态与模型列表,快速发起对话和嵌入请求;依托 dsh 命令行集成,无需切换环境,操作轻量响应迅速。

1
Stars 标星
0
Forks 分支
1
Watchers 关注
0
Open Issues
JavaScript
主要语言
MIT
开源协议
32 KB
仓库大小
2 个月前
最后推送
一键安装扩展 / 插件指令
dsh plugin --profile web add github:173787247/dsh-wsl-ollama
git clone https://github.com/173787247/dsh-wsl-ollama.git
git clone git@github.com:173787247/dsh-wsl-ollama.git
README.md master

dsh-wsl-ollama

语言: 中文(本页) · English

在 WSL 上给 DeepSeek Harness 接本地 Ollama:ollama_status / list / chat / embed。

可选插件,不在 install.sh。

最短上手

dsh plugin --profile web add github:173787247/dsh-wsl-ollama
# 或本机 path 链进 web profile 后 restart

Ollama 需已在跑。默认基址 http://127.0.0.1:11434。

若 Ollama 装在 Windows、dsh 在 WSL:localhost 常会 503。可:

  • 让 Ollama 监听 0.0.0.0:11434,或
  • 设 DSH_OLLAMA_BASE=http://<Windows主机IP>:11434(插件也可在 baseUrl 为空时尝试从 /etc/resolv.conf 推主机)

工具

工具 作用
ollama_status 基址、连通性、默认模型
ollama_list 已拉取模型列表
ollama_chat 本地对话
ollama_embed 向量(给 vecmem 等用)

配置

config:
  enabled: true
  baseUrl: ""              # 空 = 自动探测
  defaultModel: ""         # 或环境变量 DSH_OLLAMA_MODEL
  timeoutMs: 120000
  maxPromptChars: 32000

环境变量:DSH_OLLAMA_BASE / OLLAMA_HOST、DSH_OLLAMA_MODEL。

兼容性

字段 值
插件 dsh-wsl-ollama 0.2.0
最低 dsh ≥ 0.1.2(Web UI 一次性 ?token=,Windows 中继 :3081)
最新验证 以 dsh-wsl-kit 兼容性 为准(当前 0.2.0-rc.2)— 套件唯一真源
套件档位 可选(默认不在 install.sh / KIT_SET=daily)

License

MIT