microsoft / microsoft/vscode

GitHub Copilot "Response Contained No Choices" Using BYOK - Ollama, OpenRouter.ai

Open
#324,335 14 comments 5 reactions 1 assignee Claimed by @vritant24 View on GitHub
bug model-byok
Dominant language
TypeScript
Stars
193k
Forks
42.4k
PR merge metrics
PR metrics pending

Description

Type: Bug

I was able to reproduce this error on both OpenRouter.ai and my local Ollama instance. Using Qwen 3.6 27 A3B / Qwen 3.6 35 A3B, at some point this would occur. It happened more often on my Ollama instance. I first thought it was Ollama, but was able to repro with OpenRouter, making me think it's a VS Code bug. Given Ollama uses its own parsers/renderes, and OpenRouter I believe usese vLLM, it may be a model issue as well, but still I believe an error in how VS Code is handling some sort of response. I have included the entire payload from Fiddler to assist, as I don't have the facilities the Microsoft dev team probably has to replay sessions through their harness.

VS Code version: Code 1.127.0 (4fe60c8b1cdac1c4c174f2fb180d0d758272d713, 2026-06-30T10:52:33+02:00)
OS version: Windows_NT x64 10.0.26200
Modes:

Session HTTP Request and Response attachments:

[OpenRouter No Model Responses.txt](https://github.com/user-attachments/files/29665742/OpenRouter.No.Model.Responses.txt)
[Ollama No Model Responses.txt](https://github.com/user-attachments/files/29665741/Ollama.No.Model.Responses.txt)

From OpenRouter:

```
Sorry, your request failed. Please try again.

Client Request Id: 36701944-5000-4e5b-b9d8-ec6adcd88bb4

Reason: Server error. Stream terminated: Error: Server error. Stream terminated at LG._provideLanguageModelResponse (c:\Users\aurir\AppData\Local\Programs\Microsoft VS Code\7e7950df89\resources\app\extensions\copilot\dist\extension.js:1690:14355) at process.processTicksAndRejections (node:internal/process/task_queues:104:5) at async LG.provideLanguageModelResponse (c:\Users\aurir\AppData\Local\Programs\Microsoft VS Code\7e7950df89\resources\app\extensions\copilot\dist\extension.js:1690:15320)
```

From Ollama v0.31.1:

```
Sorry, your request failed. Please try again.

Client Request Id: d7914782-37c2-4c71-83d0-0d2ef269db6e

Reason: Response contained no choices.: Error: Response contained no choices. at LG._provideLanguageModelResponse (c:\Users\aurir\AppData\Local\Programs\Microsoft VS Code\7e7950df89\resources\app\extensions\copilot\dist\extension.js:1690:14355) at process.processTicksAndRejections (node:internal/process/task_queues:104:5) at async LG.provideLanguageModelResponse (c:\Users\aurir\AppData\Local\Programs\Microsoft VS Code\7e7950df89\resources\app\extensions\copilot\dist\extension.js:1690:15320)
```

System Info

|Item|Value|
|---|---|
|CPUs|Intel(R) Core(TM) Ultra 9 285H (16 x 3686)|
|GPU Status|2d_canvas: enabled
GPU0: VENDOR= 0x8086, DEVICE=0x7d51 [Intel(R) Arc(TM) 140T GPU (16GB)], DRIVER_VENDOR=Intel, DRIVER_VERSION=32.0.101.8132 *ACTIVE*
GPU1: VENDOR= 0x1414, DEVICE=0x008c [Microsoft Basic Render Driver], DRIVER_VERSION=10.0.26100.8737
Machine model name:
Machine model version:
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_graphite: disabled_off
trees_in_viz: disabled_off
video_decode: enabled
video_encode: enabled
webgl: enabled
webgpu: enabled
webnn: disabled_off|
|Load (avg)|undefined|
|Memory (System)|31.37GB (2.91GB free)|
|Process Argv|--folder-uri file:///c%3A/dev/playground/ollama --crash-reporter-id 033370b0-ab55-4914-8362-1047b26b9ca8|
|Screen Reader|no|
|VM|0%|
Extensions (41)

Name|Identifier|Author|Version
---|---|---|---
LM Studio BYOK Chat Provider (Auri Update)|aurirahimzadeh.lmstudio-byok-chat-provider-auri|AuriRahimzadeh|0.5.10
Markdown Preview Mermaid Support|bierner.markdown-mermaid|bierner|1.32.1
Database Client JDBC|cweijan.dbclient-jdbc|cweijan|1.4.6
MySQL|cweijan.vscode-mysql-client2|cweijan|9.0.2
Dart|dart-code.dart-code|Dart-Code|3.138.0
Flutter|dart-code.flutter|Dart-Code|3.138.0
markdownlint|davidanson.vscode-markdownlint|DavidAnson|0.61.2
GitHub Codespaces|github.codespaces|GitHub|1.18.15
GitHub Repositories|github.remotehub|GitHub|0.64.0
GitHub Actions|github.vscode-github-actions|github|0.32.1
GitHub Pull Requests|github.vscode-pull-request-github|GitHub|0.154.0
Go|golang.go|golang|0.54.0
Rainbow CSV|mechatroner.rainbow-csv|mechatroner|3.24.1
Azure Functions|ms-azuretools.vscode-azurefunctions|ms-azuretools|1.22.0
Azure Resources|ms-azuretools.vscode-azureresourcegroups|ms-azuretools|0.12.7
Container Tools|ms-azuretools.vscode-containers|ms-azuretools|2.4.5
C# Dev Kit|ms-dotnettools.csdevkit|ms-dotnettools|3.20.199
C#|ms-dotnettools.csharp|ms-dotnettools|2.140.9
.NET Install Tool|ms-dotnettools.vscode-dotnet-runtime|ms-dotnettools|3.1.0
Data Workspace|ms-mssql.data-workspace-vscode|ms-mssql|0.6.3
SQL Server (mssql)|ms-mssql.mssql|ms-mssql|1.43.0
SQL Bindings|ms-mssql.sql-bindings-vscode|ms-mssql|0.4.1
SQL Database Projects|ms-mssql.sql-database-projects-vscode|ms-mssql|1.6.1
Python Debugger|ms-python.debugpy|ms-python|2026.6.0
Python|ms-python.python|ms-python|2026.4.0
Pylance|ms-python.vscode-pylance|ms-python|2026.2.1
Python Environments|ms-python.vscode-python-envs|ms-python|1.36.0
Dev Containers|ms-vscode-remote.remote-containers|ms-vscode-remote|0.463.0
Azure Repos|ms-vscode.azure-repos|ms-vscode|0.40.0
CMake Tools|ms-vscode.cmake-tools|ms-vscode|1.23.52
C/C++ DevTools|ms-vscode.cpp-devtools|ms-vscode|0.5.13
C/C++|ms-vscode.cpptools|ms-vscode|1.32.2
C/C++ Extension Pack|ms-vscode.cpptools-extension-pack|ms-vscode|1.5.1
PowerShell|ms-vscode.powershell|ms-vscode|2025.4.0
Remote Repositories|ms-vscode.remote-repositories|ms-vscode|0.42.0
Chat Customizations Evaluations|ms-vscode.vscode-chat-customizations-evaluations|ms-vscode|1.0.8
XML|redhat.vscode-xml|redhat|0.29.3
Markdown Preview Enhanced|shd101wyy.markdown-preview-enhanced|shd101wyy|0.8.30
CMake|twxs.cmake|twxs|0.0.17
Doculate - Markdown to Word Converter|veereshns.doculate|veereshns|0.1.5
Markdown PDF|yzane.markdown-pdf|yzane|2.1.0

A/B Experiments

```
vsliv368:30146709
binariesv615:30325510
nativeloc1:31344060
dwcopilot:31170013
dwoutputs:31242946
copilot_t_ci:31333650
e5gg6876:31282496
pythonrdcb7:31342333
6518g693:31463988
aj953862:31281341
6abeh943:31336334
envsactivate1:31538736
cloudbuttont:31379625
3efgi100_wstrepl:31403338
ec5jj548:31422691
cp_cls_t_966_ss:31526232
4je02754:31466945
8hhj4413:31478653
ge8j1254_inline_auto_hint_haiku:31490510
38bie571_auto:31478677
cp_cls_t_1081:31454832
conptydll_true:31498968
ia-use-proxy-models-svc:31452481
e9c30283:31461165
test_treatment2:31471001
46204921:31447328
capi_bxe_098a3278:31544980
idci7584:31464702
e3e4d672:31494082
ei9d7968:31496641
nes-extended-on:31455476
chat:31457767
8hig5102:31480529
89g7j272:31518289
7e187181:31503455
i2gc6536:31499202
52612955:31516516
ghj88844:31499326
ec1eg703:31520046
ddid_c:31478207
hmra_i5g22:31518061
7df3h592:31512476
cp_cls_t_1082:31535311
logging_enabled_new:31498466
j0d79568:31499440
jb_cp_cls_t_632:31543129
56dj4588:31512888
32d76977:31512328
ha629193:31508444
cdk-lw-on:31524445
f9bf7985:31543584
2cfga817_c:31522397
a1ije391_t:31540920
hgf2d445:31529595
41836166:31537719
prpt_ctrl:31518467
jbcp_cls_pctr_t:31531130
61138546:31518536
cp_intellij_c_nes:31533503
jf4hg949:31526829
nes-curr-leftover-1500:31538366
h561g132:31533256
sessions_3:31532893
h7dd7680:31543284
ihg5j128:31534457
7g2b5551:31542111
nes-nc-rv-1k-lc-2k:31544183

```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.