feat: add GitHub Copilot provider

Copilot device login + onboarding option; model list auth detection.
This commit is contained in:
Mustafa Tag Eldeen
2026-01-11 05:19:07 +02:00
committed by Peter Steinberger
parent 717a259056
commit 3da1afed68
19 changed files with 926 additions and 1122 deletions

View File

@@ -1407,7 +1407,8 @@ export type ModelApi =
| "openai-completions"
| "openai-responses"
| "anthropic-messages"
| "google-generative-ai";
| "google-generative-ai"
| "github-copilot";
export type ModelCompatConfig = {
supportsStore?: boolean;

View File

@@ -8,6 +8,7 @@ const ModelApiSchema = z.union([
z.literal("openai-responses"),
z.literal("anthropic-messages"),
z.literal("google-generative-ai"),
z.literal("github-copilot"),
]);
const ModelCompatSchema = z