From c15ec320c919686fcf070b202957a24f58147c34 Mon Sep 17 00:00:00 2001
From: Andrea Griffiths
Date: Thu, 11 Jun 2026 08:16:51 -0700
Subject: [PATCH] docs(examples): add github copilot byok section (cli + vs
code)
Adds a new section under /docs/examples covering Copilot BYOK:
- copilot cli: env vars (COPILOT_PROVIDER_BASE_URL, COPILOT_PROVIDER_API_KEY,
COPILOT_MODEL) targeting api.nan.builders/v1.
- vs code: step-by-step using the Custom Endpoint provider plus a ready-to-paste
chatLanguageModels.json snippet.
Notes models that satisfy Copilot's tool-calling + streaming requirement
(qwen3.6, deepseek-v4-flash, mimo-v2.5).
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
---
src/pages/docs/examples.astro | 48 +++++++++++++++++++++++++++++++++++
1 file changed, 48 insertions(+)
diff --git a/src/pages/docs/examples.astro b/src/pages/docs/examples.astro
index 0a580d9..b9726ea 100644
--- a/src/pages/docs/examples.astro
+++ b/src/pages/docs/examples.astro
@@ -234,6 +234,54 @@ for await (const chunk of stream) {
Config para ~/.config/zed/settings.json — incluye inline predictions.
+
+ github copilot (byok)
+ cli + vs code · trae tu propia key
+
+ Copilot soporta endpoints OpenAI-compatibles via BYOK (bring your own key).
+ Usa un modelo con tool calling + streaming: qwen3.6,
+ deepseek-v4-flash o mimo-v2.5.
+
+ copilot cli
+
+
+ Variables de entorno antes de lanzar copilot. Override por sesión con --model qwen3.6. Docs: use-byok-models.
+
+
+ vs code
+
+ - Abrir la paleta de comandos (
⌘⇧P / Ctrl+Shift+P) → Chat: Manage Language Models.
+ Add Models → Custom Endpoint.
+ - Group name:
NaN. Display name: qwen3.6. API key: tu sk-.... API type: Chat Completions.
+ - VS Code abre
chatLanguageModels.json. Reemplazar el contenido con el JSON de abajo y guardar.
+ - Seleccionar
qwen3.6 en el model picker del chat.
+
+
+
+ Para agent mode usa un modelo con tool calling (qwen3.6, deepseek-v4-flash, mimo-v2.5). Si el modelo no aparece en el picker, reiniciar VS Code. Docs: language-models.
+
+
modelo: qwen3-embedding
embeddings vectoriales