Skip to content

Commit

Permalink
Merge pull request #3296 from continuedev/nate/quick-edit-38e4
Browse files Browse the repository at this point in the history
bump package.json version
  • Loading branch information
sestinj authored Dec 10, 2024
2 parents da0a52e + 5a1bb2d commit 95f663b
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 6 deletions.
13 changes: 11 additions & 2 deletions core/config/load.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import {
IdeSettings,
IdeType,
ILLM,
LLMOptions,
ModelDescription,
RerankerDescription,
SerializedContinueConfig,
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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);
}
}

Expand Down
4 changes: 2 additions & 2 deletions extensions/vscode/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion extensions/vscode/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
3 changes: 2 additions & 1 deletion packages/openai-adapters/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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":
Expand Down Expand Up @@ -99,4 +99,5 @@ export {
type CompletionCreateParamsStreaming,
} from "openai/resources/index";

// export
export type { BaseLlmApi } from "./apis/base.js";

0 comments on commit 95f663b

Please sign in to comment.