Files
ollama-webui2/types/ollama.ts
2023-10-08 22:12:17 +02:00

29 lines
627 B
TypeScript

export interface OllamaModel {
name: string;
modified_at: Date;
size: number;
}
export interface OllamaModelDetail {
license: string,
modelfile: string,
parameters: string,
template: string,
system: string,
}
export enum OllamaModelID {
DEFAULTMODEL = 'mistral:latest'
}
// in case the `DEFAULT_MODEL` environment variable is not set or set to an unsupported model
export const fallbackModelID = OllamaModelID.DEFAULTMODEL;
export const OllamaModels: Record<OllamaModelID, OllamaModel> = {
[OllamaModelID.DEFAULTMODEL]: {
name: 'mistral:latest',
modified_at: new Date(),
size: 4000,
},
};