Skip to content

Model providers should be community driven #249605

Closed

Description

Georgi Gerganov (@ggerganov) makes a good point here https://x.com/ggerganov/status/1925587681519579594

In short the Ollama option should not be called Ollama but "Custom endpoint"

So ideally:

  • We finalize the LanguageModelProvider API in June
  • We decide which of the built-in providers should not be built-in (Cerebras, Groq)
  • We reach out to all the built-in providers that should not be built-in and give them a heads up that they can now publish an extension
  • We change the "Ollama" one to be called "Custom endpoint"
  • Make discovery of extension language model providers dynamic and easy Manage models needs to expose additional providers #251267

fyi SteVen Batten (@sbatten) Pierce Boggan (@pierceboggan) Johannes Rieken (@jrieken)

Activity

  1. ngxson commented on May 23, 2025

    @ngxson

    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)

  2. ggerganov commented on May 26, 2025

    @ggerganov

    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.

  3. SomeOddCodeGuy commented on May 30, 2025

    @SomeOddCodeGuy

    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.

  4. pierceboggan commented on Jun 5, 2025

    @pierceboggan
    Contributor

    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.

  5. insilications commented on Jun 5, 2025

    @insilications

    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

    https://platform.openai.com/docs/guides/responses-vs-chat-completions

  6. added
    plan-item
    on Jun 13, 2025
  7. solomatov commented on Jun 19, 2025

    @solomatov
    Contributor

    It would be great if it is possible to have AI features without setting up a copilot account. I.e. completely offline mode.

  8. mubaidr commented on Aug 13, 2025

    @mubaidr

    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

    https://platform.openai.com/docs/guides/responses-vs-chat-completions

    This is already supported via github.copilot.chat.byok.responsesApi

  9. 7 remaining items

  10. julien-c commented on Sep 3, 2025

    @julien-c

    ah or this actually: microsoft/vscode-copilot-chat#621 but you'll need to define each model by model

  11. isidorn commented on Sep 3, 2025

    @isidorn
    Author
  12. solomatov commented on Sep 3, 2025

    @solomatov
    Contributor

    Isidor Nikolic (@isidorn) Is github copilot registration still required to use these models?

  13. lramos15 commented on Sep 3, 2025

    @lramos15
    Member

    @isidorn Is github copilot registration still required to use these models?

    At this time, yes

  14. kiview commented on Sep 3, 2025

    @kiview

    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 🙂

  15. lramos15 commented on Sep 3, 2025

    @lramos15
    Member

    @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 🙂

    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 :)

  16. isidorn commented on Sep 8, 2025

    @isidorn
    Author

    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.

  17. insilications commented on Sep 9, 2025

    @insilications

    Isidor Nikolic (@isidorn) Thank you and all the VS Code team for making the Chat and Copilot experience more customizable

  18. bartlettroscoe commented on Sep 13, 2025

    @bartlettroscoe

    Isidor Nikolic (@isidorn) Is github copilot registration still required to use these models?

    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.

  19. lramos15 commented on Sep 29, 2025

    @lramos15
    Member

    API is finalized closing

  20. isidorn commented on Sep 30, 2025

    @isidorn
    Author

    There are still a couple of follow-up items that we will do in the following (October) milestone:

  21. hgaiser commented on Nov 3, 2025

    @hgaiser

    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:08:48.881 [error] Error: net::ERR_TIMED_OUT
        at SimpleURLLoaderWrapper.<anonymous> (node:electron/js2c/utility_init:2:10610)
        at SimpleURLLoaderWrapper.emit (node:events:519:28)
        at SimpleURLLoaderWrapper.callbackTrampoline (node:internal/async_hooks:130:17): Error on conversation request
    2025-11-03 15:08:48.881 [info] ccreq:e539bd27.copilotmd | networkError | GPT-OSS:120b | 30012ms | [copilotLanguageModelWrapper]
    2025-11-03 15:08:48.887 [info] ccreq:62bfb744.copilotmd | failed | GPT-OSS:120b | 30047ms | [panel/unknown-external]
    

    Earlier in the Output I see:

    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.

    Insider version:

    Version: 1.106.0-insider
    Commit: 13330e1420d478afab7ce453f6d1e307abf7412e
    Date: 2025-11-03T05:02:49.231Z
    Electron: 37.7.0
    ElectronBuildId: 12597478
    Chromium: 138.0.7204.251
    Node.js: 22.20.0
    V8: 13.8.258.32-electron.0
    OS: Linux x64 6.17.6-arch1-1
    
  22. lramos15 commented on Nov 3, 2025

    @lramos15
    Member

    Hans Gaiser (@hgaiser) Please file a new issue so we can investigate

  23. locked and limited conversation to collaborators on Nov 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

plan-item

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions