You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Model providers should be community driven #249605
Reacted by Georgi Gerganov, Julien Chaumond, Christopher Fleetwood, Diego Devesa, Pierric Cistac, Francisco Boni, Josiah S, Shinomakoi, Jannis, Yassine Ennaour and 17 more
Reacted by Xuan-Son Nguyen, vb, Julien Chaumond, Christopher Fleetwood, Radoslav Gerganov, Pierce Boggan, Francisco Boni, Josiah S, Daniel Cazzulino, Duane Johnson and 8 more
Looking forward to having this feature supported on vscode! We will try our best on our side - llama.cpp - to make the setup as friction-less as possible for end-users, cc Georgi Gerganov (@ggerganov)Diego Devesa (@slaren)
Reacted by Julien Chaumond, Diego Devesa, Pierce Boggan, Francisco Boni, Yassine Ennaour, Naum Fidanovski and Jerry Mejia [LAFISE]
Note that the "Custom endpoint" should expect that the standard OpenAI APIs are being served (e.g. /v1/chat/completions). This could be configurable to support additional APIs, but the default should be the OAI API.
Reacted by Roscoe A. Bartlett
Reacted by Yassine Ennaour, pb, amiidotcom, Jintao Zhang, ThomasBergersen and Roscoe A. Bartlett
Adding in that making it a Chat Completions endpoint will not only make the endpoint nearly universal across all LLM applications, as the vast majority of local and proprietary hosting solutions expose such an endpoint, but it would also simplify any confusion around the sampler settings that the endpoints will accept.
In terms of usability, the community will definitely get more bang for the buck by adding compatibility to an industry standard schema like chat completions, rather than focusing on a proprietary schema used by only a small handful of applications.
If I go to set BYOK provider, but don't see what I'm looking for, there should be a More Providers option that populates based on what we see from extensions, similar to what we have for our theme configuration that's populated from marketplace. Obviously not a P0, but would be good UX to have.
Reacted by Francisco Boni, Isidor Nikolic and Daniel Cazzulino
It is nice to support standard OpenAI APIs (e.g. the good old /v1/chat/completions). It guarantees wide support. But I wonder if there will be future native API support for OpenAI's Response API? (cc Logan Ramos (@lramos15)Johannes Rieken (@jrieken)) The Response API can increase tool calling performance by 6-10% and decrease token costs by increasing cache hit by up to 80% (claims from OpenAI's cookbook I can't find right now):
For the best results with this change, we recommend using the Responses API with the store parameter set to true, and passing in all reasoning items from previous requests (either using previous_response_id, or by taking all the output items from an older request and passing them in as input items for a new one). OpenAI will automatically include any relevant reasoning items in the model's context and ignore any irrelevant ones. In more advanced use‑cases where you’d like to manage what goes into the model's context more precisely, we recommend that you at least include all reasoning items between the latest function call and the previous user message. Doing this will ensure that the model doesn’t have to restart its reasoning when you respond to a function call, resulting in better function‑calling performance and lower overall token usage. https://platform.openai.com/docs/guides/reasoning-best-practices#how-to-keep-costs-low-and-accuracy-high
It is nice to support standard OpenAI APIs (e.g. the good old /v1/chat/completions). It guarantees wide support. But I wonder if there will be future native API support for OpenAI's Response API? (cc @lramos15@jrieken) The Response API can increase tool calling performance by 6-10% and decrease token costs by increasing cache hit by up to 80% (claims from OpenAI's cookbook I can't find right now):
For the best results with this change, we recommend using the Responses API with the store parameter set to true, and passing in all reasoning items from previous requests (either using previous_response_id, or by taking all the output items from an older request and passing them in as input items for a new one). OpenAI will automatically include any relevant reasoning items in the model's context and ignore any irrelevant ones. In more advanced use‑cases where you’d like to manage what goes into the model's context more precisely, we recommend that you at least include all reasoning items between the latest function call and the previous user message. Doing this will ensure that the model doesn’t have to restart its reasoning when you respond to a function call, resulting in better function‑calling performance and lower overall token usage. https://platform.openai.com/docs/guides/reasoning-best-practices#how-to-keep-costs-low-and-accuracy-high
Isidor Nikolic (@isidorn) That is great, from Docker's side, we will add docs about how to wire up Docker Model Runner as a provider as soon as this is released 🙂
Reacted by Eric Curtin, Isidor Nikolic and Jintao Zhang
Last minute we discovered some issues with the Open AI compatible provider and decided to push it out to next Stable (start of November). It is available in Insiders, so you can use it and provide feedback. Sorry about this 🙏
The finalization of the BYOK API will be shipped as part of this stable (Sept 11th) as planned.
I was trying this in vscode insiders, but it fails to connect to my remote machine where I'm running llama.cpp. I get this from GitHub Copilot Chat in Output:
2025-11-03 15:12:27.697 [info] BYOK: Resolved URL for model CustomOAI/GPT-OSS:120b: http://redacted-hostname:8000/v1/chat/completions
This endpoint is correct, since if I curl on that endpoint:
$ curl http://redacted-hostname:8000/v1/chat/completions
{"error":{"code":401,"message":"Invalid API Key","type":"authentication_error"}}%
If I proxy that endpoint locally and change the endpoint to http://localhost:8000 it does work as expected.
For what it's worth: that endpoint is connected to my machine using Tailscale.
Activity
ngxson commentedon May 23, 2025
Looking forward to having this feature supported on vscode! We will try our best on our side - llama.cpp - to make the setup as friction-less as possible for end-users, cc Georgi Gerganov (@ggerganov) Diego Devesa (@slaren)
ggerganov commentedon May 26, 2025
Note that the "Custom endpoint" should expect that the standard OpenAI APIs are being served (e.g.
/v1/chat/completions). This could be configurable to support additional APIs, but the default should be the OAI API.SomeOddCodeGuy commentedon May 30, 2025
Adding in that making it a Chat Completions endpoint will not only make the endpoint nearly universal across all LLM applications, as the vast majority of local and proprietary hosting solutions expose such an endpoint, but it would also simplify any confusion around the sampler settings that the endpoints will accept.
In terms of usability, the community will definitely get more bang for the buck by adding compatibility to an industry standard schema like chat completions, rather than focusing on a proprietary schema used by only a small handful of applications.
pierceboggan commentedon Jun 5, 2025
If I go to set BYOK provider, but don't see what I'm looking for, there should be a More Providers option that populates based on what we see from extensions, similar to what we have for our theme configuration that's populated from marketplace. Obviously not a P0, but would be good UX to have.
insilications commentedon Jun 5, 2025
It is nice to support standard OpenAI APIs (e.g. the good old /v1/chat/completions). It guarantees wide support. But I wonder if there will be future native API support for OpenAI's Response API? (cc Logan Ramos (@lramos15) Johannes Rieken (@jrieken)) The Response API can increase tool calling performance by 6-10% and decrease token costs by increasing cache hit by up to 80% (claims from OpenAI's cookbook I can't find right now):
https://platform.openai.com/docs/guides/responses-vs-chat-completions
solomatov commentedon Jun 19, 2025
It would be great if it is possible to have AI features without setting up a copilot account. I.e. completely offline mode.
mubaidr commentedon Aug 13, 2025
This is already supported via
github.copilot.chat.byok.responsesApi7 remaining items
julien-c commentedon Sep 3, 2025
ah or this actually: microsoft/vscode-copilot-chat#621 but you'll need to define each model by model
isidorn commentedon Sep 3, 2025
Georgi Gerganov (@ggerganov) thanks for giving it a try. It is in https://code.visualstudio.com/insiders/
It will be in next VS Code stable (in 10 days).
solomatov commentedon Sep 3, 2025
Isidor Nikolic (@isidorn) Is github copilot registration still required to use these models?
lramos15 commentedon Sep 3, 2025
At this time, yes
kiview commentedon Sep 3, 2025
Isidor Nikolic (@isidorn) That is great, from Docker's side, we will add docs about how to wire up Docker Model Runner as a provider as soon as this is released 🙂
lramos15 commentedon Sep 3, 2025
All of this is already available in VS Code insiders + pre-release if you want to get started. It will come to stable next week :)
isidorn commentedon Sep 8, 2025
Last minute we discovered some issues with the Open AI compatible provider and decided to push it out to next Stable (start of November). It is available in Insiders, so you can use it and provide feedback. Sorry about this 🙏
The finalization of the BYOK API will be shipped as part of this stable (Sept 11th) as planned.
insilications commentedon Sep 9, 2025
Isidor Nikolic (@isidorn) Thank you and all the VS Code team for making the Chat and Copilot experience more customizable
bartlettroscoe commentedon Sep 13, 2025
Konstantin Solomatov (@solomatov), see backlog issue:
That and:
are the last major impediments that we have to using VS Code as our agentic coding tool for research and production at our local institution.
lramos15 commentedon Sep 29, 2025
API is finalized closing
isidorn commentedon Sep 30, 2025
There are still a couple of follow-up items that we will do in the following (October) milestone:
hgaiser commentedon Nov 3, 2025
I was trying this in vscode insiders, but it fails to connect to my remote machine where I'm running llama.cpp. I get this from
GitHub Copilot ChatinOutput:Earlier in the Output I see:
This endpoint is correct, since if I
curlon that endpoint:If I proxy that endpoint locally and change the endpoint to
http://localhost:8000it does work as expected.For what it's worth: that endpoint is connected to my machine using Tailscale.
Insider version:
lramos15 commentedon Nov 3, 2025
Hans Gaiser (@hgaiser) Please file a new issue so we can investigate