mirror of
https://github.com/immich-app/immich
synced 2025-11-14 17:36:12 +00:00
fix(ml): minScore not being set correctly (#3916)
* fixed `minScore` not being set correctly * apply to init * don't send `enabled` * fix eslint warning * better error message
This commit is contained in:
parent
343d89c032
commit
df26e12db6
3 changed files with 8 additions and 5 deletions
|
|
@ -43,7 +43,10 @@ export class MachineLearningRepository implements IMachineLearningRepository {
|
|||
|
||||
async getFormData(input: TextModelInput | VisionModelInput, config: ModelConfig): Promise<FormData> {
|
||||
const formData = new FormData();
|
||||
const { modelName, modelType, ...options } = config;
|
||||
const { enabled, modelName, modelType, ...options } = config;
|
||||
if (!enabled) {
|
||||
throw new Error(`${modelType} is not enabled`);
|
||||
}
|
||||
|
||||
formData.append('modelName', modelName);
|
||||
if (modelType) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue