mirror of
https://github.com/Kilo-Org/kilocode.git
synced 2026-08-29 03:44:06 +08:00
kilo-auto is not a provider
This commit is contained in:
@@ -600,7 +600,7 @@
|
||||
},
|
||||
"kilo-code.new.model.providerID": {
|
||||
"type": "string",
|
||||
"default": "kilo-auto",
|
||||
"default": "kilo",
|
||||
"description": "Default model provider ID for new sessions"
|
||||
},
|
||||
"kilo-code.new.model.modelID": {
|
||||
|
||||
@@ -1002,7 +1002,7 @@ export class KiloProvider implements vscode.WebviewViewProvider, TelemetryProper
|
||||
const normalized = indexProvidersById(response.all)
|
||||
|
||||
const config = vscode.workspace.getConfiguration("kilo-code.new.model")
|
||||
const providerID = config.get<string>("providerID", "kilo-auto")
|
||||
const providerID = config.get<string>("providerID", "kilo")
|
||||
const modelID = config.get<string>("modelID", "kilo-auto/frontier")
|
||||
|
||||
const message = {
|
||||
|
||||
@@ -97,7 +97,7 @@ describe("buildTriggerLabel", () => {
|
||||
})
|
||||
|
||||
it("returns modelID for kilo gateway raw selection", () => {
|
||||
const raw = { providerID: "kilo-auto", modelID: "kilo-auto/frontier" }
|
||||
const raw = { providerID: "kilo", modelID: "kilo-auto/frontier" }
|
||||
expect(buildTriggerLabel(undefined, undefined, raw, false, "", true, labels)).toBe("kilo-auto/frontier")
|
||||
})
|
||||
|
||||
|
||||
@@ -20,7 +20,7 @@ interface ProviderContextValue {
|
||||
findModel: (selection: ModelSelection | null) => EnrichedModel | undefined
|
||||
}
|
||||
|
||||
const KILO_AUTO: ModelSelection = { providerID: "kilo-auto", modelID: "kilo-auto/frontier" }
|
||||
const KILO_AUTO: ModelSelection = { providerID: "kilo", modelID: "kilo-auto/frontier" }
|
||||
|
||||
export const ProviderContext = createContext<ProviderContextValue>()
|
||||
|
||||
|
||||
@@ -24,7 +24,7 @@ export const ModelSelectorNoProviders: Story = {
|
||||
<StoryProviders>
|
||||
<div style={{ display: "flex", "align-items": "center", gap: "8px" }}>
|
||||
<ModelSelectorBase
|
||||
value={{ providerID: "kilo-auto", modelID: "kilo-auto/frontier" }}
|
||||
value={{ providerID: "kilo", modelID: "kilo-auto/frontier" }}
|
||||
onSelect={() => {}}
|
||||
placement="bottom-start"
|
||||
/>
|
||||
|
||||
@@ -3,7 +3,7 @@ const title = process.env.KILO_E2E_SESSION_TITLE ?? "E2E Session"
|
||||
const text = process.env.KILO_E2E_MESSAGE ?? "Seeded for UI e2e"
|
||||
const model = process.env.KILO_E2E_MODEL ?? "kilo-auto/frontier"
|
||||
const parts = model.split("/")
|
||||
const providerID = parts[0] ?? "kilo-auto" // kilocode_change
|
||||
const providerID = parts[0] ?? "kilo" // kilocode_change
|
||||
const modelID = parts.slice(1).join("/") || "kilo-auto/frontier" // kilocode_change
|
||||
const now = Date.now()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user