scira-chat / lib /models.ts
victor's picture
victor HF Staff
feat: Implement message saving functionality with debouncing in Chat component
d0b7728
raw
history blame
515 Bytes
/**
* List here only the model IDs your endpoint exposes.
* Add/remove freely – nothing else in the codebase cares.
*/
export type ModelID = string;
let modelsCache: string[] | null = null;
export async function getModels(): Promise<string[]> {
if (modelsCache) {
return modelsCache;
}
// Hardcoded to use only SmolLM3-3B model
modelsCache = ["HuggingFaceTB/SmolLM3-3B"];
return modelsCache;
}
export async function getDefaultModel(): Promise<ModelID> {
return "HuggingFaceTB/SmolLM3-3B";
}