Mishig commited on
Commit
77adc4d
1 Parent(s): 22e7bfa

[SmallModel] Nit update the comment (#726)

Browse files

* [SmallModel] Nit update the comment

* even more precise

Files changed (1) hide show
  1. src/lib/server/models.ts +1 -1
src/lib/server/models.ts CHANGED
@@ -151,7 +151,7 @@ export const validateModel = (_models: BackendModel[]) => {
151
  return z.enum([_models[0].id, ..._models.slice(1).map((m) => m.id)]);
152
  };
153
 
154
- // if `TASK_MODEL` is the name of a model we use it, else we try to parse `TASK_MODEL` as a model config itself
155
 
156
  export const smallModel = TASK_MODEL
157
  ? (models.find((m) => m.name === TASK_MODEL) ||
 
151
  return z.enum([_models[0].id, ..._models.slice(1).map((m) => m.id)]);
152
  };
153
 
154
+ // 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
155
 
156
  export const smallModel = TASK_MODEL
157
  ? (models.find((m) => m.name === TASK_MODEL) ||