mirror of
https://github.com/coleam00/bolt.new-any-llm
synced 2024-12-28 06:42:56 +00:00
7295352a98
Some checks are pending
Update Stable Branch / prepare-release (push) Waiting to run
* refactor: Refactoring Providers to have providers as modules * updated package and lock file * added grok model back * updated registry system
25 lines
567 B
TypeScript
25 lines
567 B
TypeScript
import type { ModelInfo } from '~/lib/modules/llm/types';
|
|
|
|
export type ProviderInfo = {
|
|
staticModels: ModelInfo[];
|
|
name: string;
|
|
getDynamicModels?: (
|
|
providerName: string,
|
|
apiKeys?: Record<string, string>,
|
|
providerSettings?: IProviderSetting,
|
|
serverEnv?: Record<string, string>,
|
|
) => Promise<ModelInfo[]>;
|
|
getApiKeyLink?: string;
|
|
labelForGetApiKey?: string;
|
|
icon?: string;
|
|
};
|
|
|
|
export interface IProviderSetting {
|
|
enabled?: boolean;
|
|
baseUrl?: string;
|
|
}
|
|
|
|
export type IProviderConfig = ProviderInfo & {
|
|
settings: IProviderSetting;
|
|
};
|