scira-chat / lib /models.ts
victor's picture
victor HF Staff
Update models.ts
892ec4a
raw
history blame contribute delete
479 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;
}
modelsCache = ["deepseek-ai/DeepSeek-R1-0528"];
return modelsCache;
}
export async function getDefaultModel(): Promise<ModelID> {
return "deepseek-ai/DeepSeek-R1-0528";
}