diff --git a/core/config/load.ts b/core/config/load.ts index b28734c46..9cd53e173 100644 --- a/core/config/load.ts +++ b/core/config/load.ts @@ -21,6 +21,7 @@ import { IdeSettings, IdeType, ILLM, + LLMOptions, ModelDescription, RerankerDescription, SerializedContinueConfig, @@ -454,8 +455,12 @@ async function intermediateToFinalConfig( ) { config.embeddingsProvider = new embeddingsProviderClass(); } else { + const llmOptions: LLMOptions = { + ...options, + model: "UNSPECIFIED", + }; config.embeddingsProvider = new embeddingsProviderClass( - options, + llmOptions, (url: string | URL, init: any) => fetchwithRequestOptions(url, init, { ...config.requestOptions, @@ -483,7 +488,11 @@ async function intermediateToFinalConfig( config.reranker = new LLMReranker(llm); } } else if (rerankerClass) { - config.reranker = new rerankerClass(params); + const llmOptions: LLMOptions = { + ...params, + model: "rerank-2", + }; + config.reranker = new rerankerClass(llmOptions); } } diff --git a/extensions/vscode/package-lock.json b/extensions/vscode/package-lock.json index c3d015969..73d13fd51 100644 --- a/extensions/vscode/package-lock.json +++ b/extensions/vscode/package-lock.json @@ -1,12 +1,12 @@ { "name": "continue", - "version": "0.9.248", + "version": "0.9.243", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "continue", - "version": "0.9.248", + "version": "0.9.243", "license": "Apache-2.0", "dependencies": { "@continuedev/fetch": "^1.0.3", diff --git a/extensions/vscode/package.json b/extensions/vscode/package.json index 755185f78..c285e7586 100644 --- a/extensions/vscode/package.json +++ b/extensions/vscode/package.json @@ -2,7 +2,7 @@ "name": "continue", "icon": "media/icon.png", "author": "Continue Dev, Inc", - "version": "0.9.242", + "version": "0.9.243", "repository": { "type": "git", "url": "https://github.com/continuedev/continue" diff --git a/packages/openai-adapters/src/index.ts b/packages/openai-adapters/src/index.ts index fa02153fa..c3db18bcf 100644 --- a/packages/openai-adapters/src/index.ts +++ b/packages/openai-adapters/src/index.ts @@ -68,7 +68,7 @@ export function constructLlmApi(config: LLMConfig): BaseLlmApi | undefined { case "nvidia": return openAICompatible("https://integrate.api.nvidia.com/v1/", config); case "scaleway": - return openAICompatible("https://api.scaleway.ai/v1/", config); + return openAICompatible("https://api.scaleway.ai/v1/", config); case "fireworks": return openAICompatible("https://api.fireworks.ai/inference/v1/", config); case "together": @@ -99,4 +99,5 @@ export { type CompletionCreateParamsStreaming, } from "openai/resources/index"; +// export export type { BaseLlmApi } from "./apis/base.js";