feat(Dynamic Models): together AI Dynamic Models

This commit is contained in:
Anirban Kar
2024-12-03 02:13:33 +05:30
parent 115dcbb3bd
commit 1589d2a8f5
6 changed files with 113 additions and 25 deletions

View File

@@ -3,7 +3,7 @@ import type { ModelInfo } from '~/utils/types';
export type ProviderInfo = {
staticModels: ModelInfo[];
name: string;
getDynamicModels?: () => Promise<ModelInfo[]>;
getDynamicModels?: (apiKeys?: Record<string, string>) => Promise<ModelInfo[]>;
getApiKeyLink?: string;
labelForGetApiKey?: string;
icon?: string;