mirror of
https://github.com/stackblitz-labs/bolt.diy
synced 2025-01-23 19:27:04 +00:00
38 lines
705 B
TypeScript
38 lines
705 B
TypeScript
interface OllamaModelDetails {
|
|
parent_model: string;
|
|
format: string;
|
|
family: string;
|
|
families: string[];
|
|
parameter_size: string;
|
|
quantization_level: string;
|
|
}
|
|
|
|
export interface OllamaModel {
|
|
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;
|
|
maxTokenAllowed: number;
|
|
}
|
|
|
|
export interface ProviderInfo {
|
|
staticModels: ModelInfo[];
|
|
name: string;
|
|
getDynamicModels?: () => Promise<ModelInfo[]>;
|
|
getApiKeyLink?: string;
|
|
labelForGetApiKey?: string;
|
|
icon?: string;
|
|
}
|