Support VS Code LM API?
I don't have a separate ChatGPT or Azure OpenAI account, but I do have access to all AI models in VS Code (GitHub Copilot).
It would be nice if LinqPad can support VS Code LM API so it can uses all AI models it has access to.
Comments
-
To my knowledge, Microsoft does not let you access the underlying Copilot models directly (at least not without violating the terms and conditions). Also, it seems that Copilot doesn't offer an option to enable reasoning in GPT 5 and Sonnet 4.5. This might make sense when working with large projects with complex agentic workflows - as it would make the requests take too long - but it would unnecessarily degrade the quality of the responses when working with small scripts. A great benefit of using AI with a code scratchpad is that because you have a relatively small context window and simple agentic workflows, you can enable reasoning.
Setting up an account with OpenRouter is really easy - you can do it directly from within LINQPad, and then you can access ALL models, with ALL reasoning/thinking options.
As an experiment, after enabling OpenRouter, press Ctrl+I to bring up LINQPad's AI agent and then ask it to solve a problem, write non-trivial code, or fix an issue with thinking enabled vs disabled. The difference is night and day.
