feat: ditch triplit, move to postgresql + drizzle orm
This commit is contained in:
+18
-4
@@ -1,16 +1,30 @@
|
||||
import { schema } from '#triplit/schema';
|
||||
import type { Entity } from '@triplit/client';
|
||||
import * as schema from '~~/drizzle/schema';
|
||||
|
||||
export const Providers = ['openrouter', 'ollama', 'cerebras', 'google', 'longcat', 'cohere'] as const;
|
||||
export const Providers = [
|
||||
'openrouter',
|
||||
'ollama',
|
||||
'vllm',
|
||||
'cerebras',
|
||||
'google',
|
||||
'longcat',
|
||||
'cohere',
|
||||
'inception',
|
||||
'mistral',
|
||||
'closedrouter',
|
||||
] as const;
|
||||
export const SupportedModalities = ['text', 'image', 'audio', 'video', 'pdf'] as const;
|
||||
|
||||
export const providerBaseUrls = {
|
||||
openrouter: 'https://openrouter.ai/api/v1',
|
||||
vllm: '',
|
||||
ollama: '',
|
||||
cerebras: 'https://api.cerebras.ai/v1',
|
||||
google: 'https://generativelanguage.googleapis.com/v1beta',
|
||||
longcat: 'https://api.longcat.chat/openai/v1',
|
||||
cohere: 'https://api.cohere.ai/v2',
|
||||
inception: 'https://api.inceptionlabs.ai/v1',
|
||||
mistral: 'https://api.mistral.ai/v1',
|
||||
closedrouter: 'https://router.queef.in/v1',
|
||||
};
|
||||
|
||||
export type Model = Entity<typeof schema, 'models'> & { provider: Entity<typeof schema, 'providers'> };
|
||||
export type Model = typeof schema.models.$inferSelect;
|
||||
|
||||
Reference in New Issue
Block a user