Skip to content

Commit f8386ce

Browse files
authored
Merge branch 'main' into add-cli-config-overrides-using-env-vars
2 parents 706032f + 2471aa9 commit f8386ce

File tree

2 files changed

+4
-10
lines changed

2 files changed

+4
-10
lines changed

src/services/ghost/new-auto-complete/NewAutocompleteModel.ts

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import {
2+
AUTOCOMPLETE_PROVIDER_MODELS,
23
AutocompleteProviderKey,
34
defaultProviderUsabilityChecker,
45
getKiloBaseUriFromToken,
@@ -16,13 +17,6 @@ import Mistral from "../../continuedev/core/llm/llms/Mistral"
1617
import OpenRouter from "../../continuedev/core/llm/llms/OpenRouter"
1718
import KiloCode from "../../continuedev/core/llm/llms/KiloCode"
1819

19-
export const AUTOCOMPLETE_PROVIDER_MODELS = {
20-
mistral: "codestral-2501",
21-
kilocode: "codestral-2501",
22-
openrouter: "mistralai/codestral-2501",
23-
bedrock: "mistral.codestral-2501-v1:0",
24-
} as const
25-
2620
export class NewAutocompleteModel {
2721
private apiHandler: ApiHandler | null = null
2822
private profile: ProviderSettings | null = null

src/services/ghost/new-auto-complete/__tests__/NewAutocompleteModel.spec.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ describe("NewAutocompleteModel", () => {
3131
expect(result).toBeDefined()
3232
expect(Mistral).toHaveBeenCalledWith(
3333
expect.objectContaining({
34-
model: "codestral-2501",
34+
model: "codestral-latest",
3535
apiKey: "test-mistral-key",
3636
apiBase: "https://custom.mistral.ai/v1/",
3737
contextLength: 32000,
@@ -78,7 +78,7 @@ describe("NewAutocompleteModel", () => {
7878
expect(result).toBeDefined()
7979
expect(OpenAI).toHaveBeenCalledWith(
8080
expect.objectContaining({
81-
model: "codestral-2501",
81+
model: "mistralai/codestral-2508",
8282
apiKey: "test-kilocode-token",
8383
}),
8484
)
@@ -109,7 +109,7 @@ describe("NewAutocompleteModel", () => {
109109
expect(result).toBeDefined()
110110
expect(OpenAI).toHaveBeenCalledWith(
111111
expect.objectContaining({
112-
model: "mistralai/codestral-2501",
112+
model: "mistralai/codestral-2508",
113113
apiKey: "test-openrouter-key",
114114
apiBase: "https://custom.openrouter.ai/api/v1",
115115
}),

0 commit comments

Comments
 (0)