File tree 9 files changed +7
-16
lines changed
9 files changed +7
-16
lines changed Original file line number Diff line number Diff line change 1
- /* eslint-disable @typescript-eslint/naming-convention */
2
1
import { IDE , SlashCommand } from "../.." ;
3
2
import * as fs from "fs/promises" ;
4
3
import * as path from "path" ;
Original file line number Diff line number Diff line change 1
- /* eslint-disable @typescript-eslint/naming-convention */
2
-
3
1
import { jest } from "@jest/globals" ;
4
2
import {
5
3
insertMockChunks ,
Original file line number Diff line number Diff line change 1
- /* eslint-disable @typescript-eslint/naming-convention */
2
1
import { SiteIndexingConfig } from "../../index.js" ;
3
2
4
3
const preIndexedDocs : Record <
Original file line number Diff line number Diff line change @@ -37,9 +37,7 @@ class GeminiEmbeddingsProvider extends BaseEmbeddingsProvider {
37
37
requests,
38
38
} ) ,
39
39
headers : {
40
- // eslint-disable-next-line @typescript-eslint/naming-convention
41
40
"x-goog-api-key" : this . options . apiKey ,
42
- // eslint-disable-next-line @typescript-eslint/naming-convention
43
41
"Content-Type" : "application/json" ,
44
42
} ,
45
43
} ) ,
Original file line number Diff line number Diff line change @@ -19,13 +19,10 @@ export const allEmbeddingsProviders: Record<
19
19
EmbeddingsProviderConstructor
20
20
> = {
21
21
ollama : OllamaEmbeddingsProvider ,
22
- // eslint-disable-next-line @typescript-eslint/naming-convention
23
22
"transformers.js" : TransformersJsEmbeddingsProvider ,
24
23
openai : OpenAIEmbeddingsProvider ,
25
24
cohere : CohereEmbeddingsProvider ,
26
- // eslint-disable-next-line @typescript-eslint/naming-convention
27
25
"free-trial" : FreeTrialEmbeddingsProvider ,
28
- // eslint-disable-next-line @typescript-eslint/naming-convention
29
26
"huggingface-tei" : HuggingFaceTEIEmbeddingsProvider ,
30
27
gemini : GeminiEmbeddingsProvider ,
31
28
"continue-proxy" : ContinueProxyEmbeddingsProvider ,
Original file line number Diff line number Diff line change 1
- /* eslint-disable @typescript-eslint/naming-convention */
2
1
import crypto from "node:crypto" ;
3
2
import * as fs from "node:fs" ;
4
3
import { open , type Database } from "sqlite" ;
Original file line number Diff line number Diff line change 1
- /* eslint-disable @typescript-eslint/naming-convention */
2
1
import path from "path" ;
3
2
import { fileURLToPath } from "url" ;
4
3
Original file line number Diff line number Diff line change @@ -19,7 +19,10 @@ class WatsonX extends BaseLLM {
19
19
super ( options ) ;
20
20
}
21
21
async getBearerToken ( ) : Promise < { token : string ; expiration : number } > {
22
- if ( this . watsonxUrl !== null && this . watsonxUrl . includes ( "cloud.ibm.com" ) ) {
22
+ if (
23
+ this . watsonxUrl !== null &&
24
+ this . watsonxUrl ! . includes ( "cloud.ibm.com" )
25
+ ) {
23
26
// watsonx SaaS
24
27
const wxToken = await (
25
28
await fetch (
Original file line number Diff line number Diff line change 1
- /* eslint-disable @typescript-eslint/naming-convention */
2
- import type { AutocompleteInput } from "../autocomplete/completionProvider.js" ;
3
- import { ProfileDescription } from "../config/ConfigHandler.js" ;
1
+ import type { AutocompleteInput } from "../autocomplete/completionProvider" ;
2
+ import { ProfileDescription } from "../config/ConfigHandler" ;
4
3
import type {
5
4
BrowserSerializedContinueConfig ,
6
5
ChatMessage ,
@@ -16,7 +15,7 @@ import type {
16
15
SerializedContinueConfig ,
17
16
SessionInfo ,
18
17
SiteIndexingConfig ,
19
- } from "../index.js " ;
18
+ } from "../" ;
20
19
21
20
export type ProtocolGeneratorType < T > = AsyncGenerator < {
22
21
done ?: boolean ;
You can’t perform that action at this time.
0 commit comments