feat: simplify LLM config and onboarding

This commit is contained in:
Ramnique Singh 2026-02-04 01:12:06 +05:30
parent 948c6e7176
commit 10f94ce67e
10 changed files with 630 additions and 153 deletions

View file

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