<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Language Models | The .NET Blog</title><link>https://thedotnetblog.com/tags/language-models/</link><description>Articles, tutorials and insights from the .NET community.</description><generator>Hugo</generator><language>en</language><managingEditor>@thedotnetblog (The .NET Blog)</managingEditor><webMaster>@thedotnetblog</webMaster><lastBuildDate>Sun, 08 Nov 2026 00:00:00 +0000</lastBuildDate><atom:link href="https://thedotnetblog.com/tags/language-models/index.xml" rel="self" type="application/rss+xml"/><item><title>Bring your own language model key to VS Code</title><link>https://thedotnetblog.com/news/emiliano-montesdeoca/vscode-bring-your-own-language-model-key/</link><pubDate>Sun, 08 Nov 2026 00:00:00 +0000</pubDate><author>Emiliano Montesdeoca</author><guid>https://thedotnetblog.com/news/emiliano-montesdeoca/vscode-bring-your-own-language-model-key/</guid><description>VS Code BYOK lets developers add provider-backed or local language models to the Chat model picker, with direct provider billing and no GitHub sign-in required for BYOK chat workflows.</description><content:encoded>&lt;p&gt;Original source: &lt;a href="https://code.visualstudio.com/blogs/2026/06/18/byok-vscode"&gt;Use your own language model key in VS Code&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;The model picker in VS Code does not have to be limited to the models bundled with a Copilot plan. Bring your own language model key, or &lt;strong&gt;BYOK&lt;/strong&gt;, lets developers add models from supported providers and use local models directly from VS Code Chat.&lt;/p&gt;
&lt;p&gt;That flexibility is useful for different reasons. A team may already have provider billing and governance, a developer may need a model that is not built into VS Code, or a project may require an offline local model. BYOK puts those choices in the same Chat model picker while keeping the boundaries between Copilot features and provider-backed chat explicit.&lt;/p&gt;
&lt;h2 id="what-byok-adds"&gt;What BYOK adds&lt;/h2&gt;
&lt;p&gt;VS Code supports models from providers such as Azure, Anthropic, Hugging Face, Gemini, OpenAI, and OpenRouter. It also supports local options including Ollama and Foundry Local, among others. A provider can contribute support through an extension, so the list can grow without every provider being hard-coded into the editor.&lt;/p&gt;
&lt;p&gt;After you configure a provider, its models appear in the Chat model picker. That makes it possible to choose different models for different jobs: a fast model for a short question, a reasoning model for planning or debugging, or a local model for an offline experiment.&lt;/p&gt;
&lt;p&gt;The selected model must support the capabilities required by the workflow. BYOK models are available for VS Code Chat, including agent workflows when the model supports those capabilities. They are not a universal replacement for every AI feature in the editor.&lt;/p&gt;
&lt;h2 id="important-boundaries"&gt;Important boundaries&lt;/h2&gt;
&lt;p&gt;BYOK models can work without signing into a GitHub account and without a Copilot plan. Local models can support fully offline scenarios. Usage for provider-backed models is billed directly by that provider and does not count against GitHub Copilot request quotas.&lt;/p&gt;
&lt;p&gt;There are limits to that independence:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;BYOK applies to Chat and utility tasks, not standard code completions.&lt;/li&gt;
&lt;li&gt;Semantic search, inline suggestions, and features that rely on embeddings may still require a GitHub account or Copilot support.&lt;/li&gt;
&lt;li&gt;For Copilot Business and Enterprise, administrators can control BYOK availability through Copilot policy settings.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;This distinction is important for teams that want to change model billing without accidentally assuming that every editor feature follows the same route. A local model can handle a chat task while inline suggestions or embedding-backed features continue to depend on their existing services.&lt;/p&gt;
&lt;h2 id="configure-a-provider"&gt;Configure a provider&lt;/h2&gt;
&lt;p&gt;The easiest entry point is the &lt;strong&gt;Language Models&lt;/strong&gt; editor. Open the Chat model picker, select the &lt;strong&gt;Manage Language Models&lt;/strong&gt; gear icon, or run &lt;strong&gt;Chat: Manage Language Models&lt;/strong&gt; from the Command Palette.&lt;/p&gt;
&lt;p&gt;For a built-in provider, the flow is straightforward:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Open &lt;strong&gt;Chat: Manage Language Models&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;Select &lt;strong&gt;Add Models&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;Choose a provider.&lt;/li&gt;
&lt;li&gt;Enter the group name shown in the model picker.&lt;/li&gt;
&lt;li&gt;Provide the required API key, endpoint, deployment name, or other provider details.&lt;/li&gt;
&lt;li&gt;Select the configured model from the Chat model picker.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Depending on the provider, VS Code may open &lt;code&gt;chatLanguageModels.json&lt;/code&gt; for the remaining configuration. The source gives a Mistral example with an endpoint, API type, model capabilities, and a placeholder API key. Store real credentials through the configuration mechanism and secret-management practices appropriate for the development environment; do not commit keys to a repository.&lt;/p&gt;
&lt;p&gt;Provider extensions use a similar flow. Search the Extensions view for &lt;code&gt;@tag:language-models&lt;/code&gt;, install the provider extension, follow its setup instructions, and then select its model from the picker.&lt;/p&gt;
&lt;h2 id="utility-models-matter-too"&gt;Utility models matter too&lt;/h2&gt;
&lt;p&gt;VS Code uses lightweight models for background tasks such as chat titles, commit messages, and rename suggestions. These utility tasks default to built-in Copilot models. When using BYOK without a GitHub account, those defaults are unavailable, and Chat prompts you to configure replacements.&lt;/p&gt;
&lt;p&gt;The relevant settings are &lt;code&gt;chat.utilityModel&lt;/code&gt; and &lt;code&gt;chat.utilitySmallModel&lt;/code&gt;. Point them to BYOK models to keep those features working. A fast, inexpensive model is usually a better fit for a title or rename suggestion than a large reasoning model.&lt;/p&gt;
&lt;h2 id="a-useful-model-strategy-for-net-work"&gt;A useful model strategy for .NET work&lt;/h2&gt;
&lt;ol&gt;
&lt;li&gt;Use a fast model for short API questions, summaries, and small edits.&lt;/li&gt;
&lt;li&gt;Choose a reasoning-capable model for planning, debugging, and complex refactors.&lt;/li&gt;
&lt;li&gt;Use a local model for experiments that must stay offline.&lt;/li&gt;
&lt;li&gt;Keep utility tasks on a small model so background work does not consume an unnecessarily expensive provider.&lt;/li&gt;
&lt;li&gt;Check provider billing and organization policy before standardizing the setup across a team.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;BYOK makes model choice a practical part of the VS Code workflow, but choice works best with clear boundaries. The Chat picker can become one place for Copilot, provider-backed, extension-contributed, and local models without pretending that their billing, authentication, and editor capabilities are identical.&lt;/p&gt;</content:encoded></item></channel></rss>