跳到正文
GitHub Changelog· Allison·· 6 小时前AI 评分52

GitHub Copilot CLI 1.0.94-0 支持发现本地 Ollama 模型

Discover local models in GitHub Copilot CLI

AI 导读

GitHub Copilot CLI 从 1.0.94-0 版本起,可用 /model 命令发现正在运行的本地 Ollama 实例中受支持的模型,与已配置模型和 GitHub Copilot 云端模型并列显示。

正文

GitHub Copilot CLI makes it easier to choose a local model without leaving your existing workflow. Starting in CLI version 1.0.94-0, use /model to discover supported models from a running local Ollama instance, alongside your configured models and cloud models provided by GitHub Copilot.

Discovery doesn’t automatically add models. Choose a discovered model, review its provider and endpoint, then confirm Add and use for this session or Add without switching. You can use the model in your current session without restarting the CLI. Ollama and the model must already be installed—this flow doesn’t install a runtime or download models. Models must support tool calling and streaming.

Provider connection failures appear in the picker with an explanation, helping you identify what needs attention.

This CLI update builds on the same idea as the GitHub Copilot app’s provider experience: choose the model that fits your work. In the app, add a supported provider in Settings > Model providers.

Choosing a local model doesn’t turn on offline mode or disable GitHub telemetry. In the CLI, offline mode remains an explicit choice through COPILOT_OFFLINE=true. A remote provider can still receive prompts and code context over the network, even in offline mode. Follow the CLI provider and offline-mode documentation for configuration and limits.

We’re also announcing intelligent routing with local models. Read the announcement on the Microsoft Command Line blog and stay tuned for availability.

Learn more about setting up your own model provider in the GitHub Copilot app.

The post Discover local models in GitHub Copilot CLI appeared first on The GitHub Blog.

来源:GitHub Changelog · github.blog