feat: Add GitHub Copilot support with Device Flow OAuth

- Add github-copilot as LLM provider flavor in schema
- Implement GitHub Copilot API integration using OpenAI-compatible endpoint
- Add OAuth Device Flow implementation (RFC 8628) for GitHub authentication
- Configure GitHub OAuth endpoints and client ID
- Add comprehensive documentation for GitHub Copilot integration

This allows users to authenticate with GitHub and use GitHub Copilot models
(GPT-4o, GPT-4, etc.) directly in Rowboat using device code flow authentication.
This commit is contained in:
Rowboat Developer 2026-04-17 09:14:14 -05:00
parent 2133d7226f
commit eed4bda7bd
5 changed files with 331 additions and 1 deletions

View file

@ -1,7 +1,7 @@
import { z } from "zod";
export const LlmProvider = z.object({
flavor: z.enum(["openai", "anthropic", "google", "openrouter", "aigateway", "ollama", "openai-compatible"]),
flavor: z.enum(["openai", "anthropic", "google", "openrouter", "aigateway", "ollama", "openai-compatible", "github-copilot"]),
apiKey: z.string().optional(),
baseURL: z.string().optional(),
headers: z.record(z.string(), z.string()).optional(),