fix: silent eslint issues

This commit is contained in:
Sujal Shah
2024-11-25 14:00:18 +05:30
parent 1cb836a648
commit f94165a421
3 changed files with 5 additions and 9 deletions

View File

@@ -294,8 +294,8 @@ async function getOllamaModels(): Promise<ModelInfo[]> {
provider: 'Ollama',
maxTokenAllowed: 8000,
}));
// eslint-disable-next-line @typescript-eslint/no-unused-vars
} catch (e) {
console.error('Error getting Ollama models:', e);
return [];
}
}
@@ -321,8 +321,8 @@ async function getOpenAILikeModels(): Promise<ModelInfo[]> {
label: model.id,
provider: 'OpenAILike',
}));
// eslint-disable-next-line @typescript-eslint/no-unused-vars
} catch (e) {
console.error('Error getting OpenAILike models:', e);
return [];
}
}
@@ -371,8 +371,8 @@ async function getLMStudioModels(): Promise<ModelInfo[]> {
label: model.id,
provider: 'LMStudio',
}));
// eslint-disable-next-line @typescript-eslint/no-unused-vars
} catch (e) {
console.error('Error getting LMStudio models:', e);
return [];
}
}