Skip to content

Commit

Permalink
[SmallModel] Nit update the comment (#726)
Browse files Browse the repository at this point in the history
* [SmallModel] Nit update the comment

* even more precise
  • Loading branch information
Mishig authored Jan 24, 2024
1 parent 22e7bfa commit 77adc4d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/server/models.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) ||
Expand Down

0 comments on commit 77adc4d

Please sign in to comment.