2024-10-18 11:34:08 +00:00
|
|
|
interface OllamaModelDetails {
|
|
|
|
parent_model: string;
|
|
|
|
format: string;
|
|
|
|
family: string;
|
|
|
|
families: string[];
|
|
|
|
parameter_size: string;
|
|
|
|
quantization_level: string;
|
|
|
|
}
|
|
|
|
|
2024-10-22 09:18:34 +00:00
|
|
|
export interface OllamaModel {
|
2024-10-18 11:34:08 +00:00
|
|
|
name: string;
|
|
|
|
model: string;
|
|
|
|
modified_at: string;
|
|
|
|
size: number;
|
|
|
|
digest: string;
|
|
|
|
details: OllamaModelDetails;
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface OllamaApiResponse {
|
|
|
|
models: OllamaModel[];
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface ModelInfo {
|
|
|
|
name: string;
|
|
|
|
label: string;
|
|
|
|
provider: string;
|
2024-11-20 16:11:51 +00:00
|
|
|
maxTokenAllowed: number;
|
2024-10-18 11:34:08 +00:00
|
|
|
}
|
2024-11-14 12:29:47 +00:00
|
|
|
|
|
|
|
export interface ProviderInfo {
|
2024-11-21 21:05:35 +00:00
|
|
|
staticModels: ModelInfo[];
|
|
|
|
name: string;
|
|
|
|
getDynamicModels?: () => Promise<ModelInfo[]>;
|
|
|
|
getApiKeyLink?: string;
|
|
|
|
labelForGetApiKey?: string;
|
|
|
|
icon?: string;
|
|
|
|
}
|