remove unneeded eslint ignores
This commit is contained in:
parent
ab66a06397
commit
c818e2d44b
9 changed files with 7 additions and 16 deletions
|
|
@ -1,4 +1,3 @@
|
|||
/* eslint-disable @typescript-eslint/naming-convention */
|
||||
import { IDE, SlashCommand } from "../..";
|
||||
import * as fs from "fs/promises";
|
||||
import * as path from "path";
|
||||
|
|
|
|||
|
|
@ -1,5 +1,3 @@
|
|||
/* eslint-disable @typescript-eslint/naming-convention */
|
||||
|
||||
import { jest } from "@jest/globals";
|
||||
import {
|
||||
insertMockChunks,
|
||||
|
|
|
|||
|
|
@ -1,4 +1,3 @@
|
|||
/* eslint-disable @typescript-eslint/naming-convention */
|
||||
import { SiteIndexingConfig } from "../../index.js";
|
||||
|
||||
const preIndexedDocs: Record<
|
||||
|
|
|
|||
|
|
@ -37,9 +37,7 @@ class GeminiEmbeddingsProvider extends BaseEmbeddingsProvider {
|
|||
requests,
|
||||
}),
|
||||
headers: {
|
||||
// eslint-disable-next-line @typescript-eslint/naming-convention
|
||||
"x-goog-api-key": this.options.apiKey,
|
||||
// eslint-disable-next-line @typescript-eslint/naming-convention
|
||||
"Content-Type": "application/json",
|
||||
},
|
||||
}),
|
||||
|
|
|
|||
|
|
@ -19,13 +19,10 @@ export const allEmbeddingsProviders: Record<
|
|||
EmbeddingsProviderConstructor
|
||||
> = {
|
||||
ollama: OllamaEmbeddingsProvider,
|
||||
// eslint-disable-next-line @typescript-eslint/naming-convention
|
||||
"transformers.js": TransformersJsEmbeddingsProvider,
|
||||
openai: OpenAIEmbeddingsProvider,
|
||||
cohere: CohereEmbeddingsProvider,
|
||||
// eslint-disable-next-line @typescript-eslint/naming-convention
|
||||
"free-trial": FreeTrialEmbeddingsProvider,
|
||||
// eslint-disable-next-line @typescript-eslint/naming-convention
|
||||
"huggingface-tei": HuggingFaceTEIEmbeddingsProvider,
|
||||
gemini: GeminiEmbeddingsProvider,
|
||||
"continue-proxy": ContinueProxyEmbeddingsProvider,
|
||||
|
|
|
|||
|
|
@ -1,4 +1,3 @@
|
|||
/* eslint-disable @typescript-eslint/naming-convention */
|
||||
import crypto from "node:crypto";
|
||||
import * as fs from "node:fs";
|
||||
import { open, type Database } from "sqlite";
|
||||
|
|
|
|||
|
|
@ -1,4 +1,3 @@
|
|||
/* eslint-disable @typescript-eslint/naming-convention */
|
||||
import path from "path";
|
||||
import { fileURLToPath } from "url";
|
||||
|
||||
|
|
|
|||
|
|
@ -19,7 +19,10 @@ class WatsonX extends BaseLLM {
|
|||
super(options);
|
||||
}
|
||||
async getBearerToken(): Promise<{ token: string; expiration: number }> {
|
||||
if (this.watsonxUrl !== null && this.watsonxUrl.includes("cloud.ibm.com")) {
|
||||
if (
|
||||
this.watsonxUrl !== null &&
|
||||
this.watsonxUrl!.includes("cloud.ibm.com")
|
||||
) {
|
||||
// watsonx SaaS
|
||||
const wxToken = await (
|
||||
await fetch(
|
||||
|
|
|
|||
|
|
@ -1,6 +1,5 @@
|
|||
/* eslint-disable @typescript-eslint/naming-convention */
|
||||
import type { AutocompleteInput } from "../autocomplete/completionProvider.js";
|
||||
import { ProfileDescription } from "../config/ConfigHandler.js";
|
||||
import type { AutocompleteInput } from "../autocomplete/completionProvider";
|
||||
import { ProfileDescription } from "../config/ConfigHandler";
|
||||
import type {
|
||||
BrowserSerializedContinueConfig,
|
||||
ChatMessage,
|
||||
|
|
@ -16,7 +15,7 @@ import type {
|
|||
SerializedContinueConfig,
|
||||
SessionInfo,
|
||||
SiteIndexingConfig,
|
||||
} from "../index.js";
|
||||
} from "../";
|
||||
|
||||
export type ProtocolGeneratorType<T> = AsyncGenerator<{
|
||||
done?: boolean;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue