mirror of
https://github.com/ivanfioravanti/chatbot-ollama.git
synced 2023-12-01 22:17:38 +03:00
29 lines
627 B
TypeScript
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,
|
|
},
|
|
};
|