From 77adc4dfe97f93f4c917a077d4b348c540bd7f24 Mon Sep 17 00:00:00 2001 From: Mishig Date: Wed, 24 Jan 2024 14:40:05 +0100 Subject: [PATCH] [SmallModel] Nit update the comment (#726) * [SmallModel] Nit update the comment * even more precise --- src/lib/server/models.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/server/models.ts b/src/lib/server/models.ts index 9bfdef8a80a..a500c49755a 100644 --- a/src/lib/server/models.ts +++ b/src/lib/server/models.ts @@ -151,7 +151,7 @@ export const validateModel = (_models: BackendModel[]) => { return z.enum([_models[0].id, ..._models.slice(1).map((m) => m.id)]); }; -// if `TASK_MODEL` is the name of a model we use it, else we try to parse `TASK_MODEL` as a model config itself +// if `TASK_MODEL` is string & name of a model in `MODELS`, then we use `MODELS[TASK_MODEL]`, else we try to parse `TASK_MODEL` as a model config itself export const smallModel = TASK_MODEL ? (models.find((m) => m.name === TASK_MODEL) ||