2024-11-14 12:29:47 +00:00
|
|
|
import type { ModelInfo } from '~/utils/types';
|
|
|
|
|
|
|
|
export type ProviderInfo = {
|
2024-11-21 21:05:35 +00:00
|
|
|
staticModels: ModelInfo[];
|
|
|
|
name: string;
|
2024-12-11 08:32:21 +00:00
|
|
|
getDynamicModels?: (apiKeys?: Record<string, string>, providerSettings?: IProviderSetting) => Promise<ModelInfo[]>;
|
2024-11-21 21:05:35 +00:00
|
|
|
getApiKeyLink?: string;
|
|
|
|
labelForGetApiKey?: string;
|
|
|
|
icon?: string;
|
2024-12-11 08:32:21 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
export interface IProviderSetting {
|
|
|
|
enabled?: boolean;
|
|
|
|
baseUrl?: string;
|
|
|
|
}
|
|
|
|
|
|
|
|
export type IProviderConfig = ProviderInfo & {
|
|
|
|
settings: IProviderSetting;
|
2024-11-14 12:29:47 +00:00
|
|
|
};
|