chore: Update eslint and prettier configurations

This commit is contained in:
Jin Yucong 2024-07-05 14:19:53 +08:00
parent c63c9b5c8a
commit 5b1aaee605
24 changed files with 826 additions and 38 deletions

View file

@ -28,6 +28,7 @@ export class HuggingFaceTransformersEmbeddings
timeout?: number;
// eslint-disable-next-line @typescript-eslint/no-explicit-any
private pipelinePromise: Promise<any>;
constructor(fields?: Partial<HuggingFaceTransformersEmbeddingsParams>) {

View file

@ -102,6 +102,7 @@ export const getAvailableChatModelProviders = async () => {
},
});
// eslint-disable-next-line @typescript-eslint/no-explicit-any
const { models: ollamaModels } = (await response.json()) as any;
models['ollama'] = ollamaModels.reduce((acc, model) => {
@ -153,6 +154,7 @@ export const getAvailableEmbeddingModelProviders = async () => {
},
});
// eslint-disable-next-line @typescript-eslint/no-explicit-any
const { models: ollamaModels } = (await response.json()) as any;
models['ollama'] = ollamaModels.reduce((acc, model) => {