Skip to content

Commit 4bb08b8

Browse files
committed
Merge branch 'main' into nate/local-config-yaml-updates
2 parents 5ec3f88 + dccb044 commit 4bb08b8

File tree

71 files changed

+1440
-1056
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

71 files changed

+1440
-1056
lines changed

core/config/yaml/loadYaml.ts

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,6 @@ async function configYamlToContinueConfig(
221221
continueConfig.systemMessage,
222222
);
223223

224-
//
225224
if (modelsArrayRoles.some((role) => model.roles?.includes(role))) {
226225
continueConfig.models.push(...llms);
227226
}
@@ -259,7 +258,10 @@ async function configYamlToContinueConfig(
259258
} else {
260259
continueConfig.modelsByRole.embed.push(
261260
new embeddingsProviderClass(
262-
options,
261+
{
262+
...options,
263+
title: options.name,
264+
},
263265
(url: string | URL, init: any) =>
264266
fetchwithRequestOptions(url, init, {
265267
...options.requestOptions,
@@ -280,10 +282,15 @@ async function configYamlToContinueConfig(
280282
const rerankerClass = AllRerankers[provider];
281283
if (rerankerClass) {
282284
continueConfig.modelsByRole.rerank.push(
283-
new rerankerClass(options, (url: string | URL, init: any) =>
284-
fetchwithRequestOptions(url, init, {
285-
...options.requestOptions,
286-
}),
285+
new rerankerClass(
286+
{
287+
...options,
288+
title: options.name,
289+
},
290+
(url: string | URL, init: any) =>
291+
fetchwithRequestOptions(url, init, {
292+
...options.requestOptions,
293+
}),
287294
),
288295
);
289296
} else {

core/llm/llms/TransformersJsEmbeddingsProvider.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,14 +43,16 @@ export class TransformersJsEmbeddingsProvider extends BaseLLM {
4343
static maxGroupSize: number = 1;
4444
static model: string = "all-MiniLM-L6-v2";
4545
static mockVector: number[] = Array.from({ length: 384 }).fill(2) as number[];
46-
static title: string = "Transformers.js (Built-In)";
4746

4847
static defaultOptions: Partial<LLMOptions> | undefined = {
4948
model: TransformersJsEmbeddingsProvider.model,
5049
};
5150

5251
constructor() {
53-
super({ model: TransformersJsEmbeddingsProvider.model });
52+
super({
53+
model: TransformersJsEmbeddingsProvider.model,
54+
title: "Transformers.js (Built-In)",
55+
});
5456
}
5557

5658
async embed(chunks: string[]) {

core/package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

core/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@
3939
"myers-diff": "^2.1.0",
4040
"onnxruntime-common": "1.14.0",
4141
"onnxruntime-web": "1.14.0",
42-
"ts-jest": "^29.1.1"
42+
"ts-jest": "^29.1.1",
43+
"typescript": "^5.6.3"
4344
},
4445
"dependencies": {
4546
"@aws-sdk/client-bedrock-runtime": "^3.758.0",

extensions/vscode/package-lock.json

Lines changed: 3 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

extensions/vscode/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -624,7 +624,7 @@
624624
"mocha": "^10.4.0",
625625
"ovsx": "^0.8.3",
626626
"rimraf": "^5.0.5",
627-
"typescript": "^5.3.3",
627+
"typescript": "^5.6.3",
628628
"vite": "^4.3.9",
629629
"vsce": "^2.15.0",
630630
"vscode-extension-tester": "^8.10.0"

0 commit comments

Comments
 (0)