1d40812f2a
Each AI provider now has its own module implementing a ProviderModule interface with createGateway, getAuthHeaders, and fetchModels methods. This replaces the monolithic switch statements in ai-provider.ts and models.post.ts with a clean registry pattern.
6 lines
190 B
TypeScript
6 lines
190 B
TypeScript
import * as schema from '~~/drizzle/schema';
|
|
|
|
export const SupportedModalities = ['text', 'image', 'audio', 'video', 'pdf'] as const;
|
|
|
|
export type Model = typeof schema.models.$inferSelect;
|