rowboat/apps/x/packages/shared/src/models.ts
arkml 5a72ee06e1
Model switch (#413)
Add ability to switch models in chat
2026-03-02 21:42:46 +05:30

15 lines
482 B
TypeScript

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(),
models: z.array(z.string()).optional(),
knowledgeGraphModel: z.string().optional(),
});