diff --git a/packages/opencode/src/provider/models.ts b/packages/opencode/src/provider/models.ts index 50de3238fe5..87d12360831 100644 --- a/packages/opencode/src/provider/models.ts +++ b/packages/opencode/src/provider/models.ts @@ -135,27 +135,7 @@ export namespace ModelsDev { : "https://api.kilo.ai/api/openrouter" const providerBaseURL = normalizedBaseURL ?? defaultBaseURL const ensureTrailingSlash = (value: string): string => (value.endsWith("/") ? value : `${value}/`) - const kiloModels: Record = await ModelCache.fetch("kilo", kiloFetchOptions).catch(() => ({})) - - // Virtual model that resolves to Kilo's default model at runtime. - // Appears as `kilo/auto` in model selectors. - kiloModels["kilo/auto"] = { - id: "kilo/auto", - name: "Auto", - family: "kilo/auto", - release_date: new Date().toISOString().split("T")[0], - attachment: false, - reasoning: true, - temperature: true, - tool_call: true, - limit: { - context: 200000, - output: 64000, - }, - options: { - description: "Automatically selects an optimal model", - }, - } + const kiloModels = await ModelCache.fetch("kilo", kiloFetchOptions).catch(() => ({})) providers["kilo"] = { id: "kilo", name: "Kilo Gateway", diff --git a/packages/opencode/src/provider/provider.ts b/packages/opencode/src/provider/provider.ts index bcfd942fc7e..9c2f0fd0bda 100644 --- a/packages/opencode/src/provider/provider.ts +++ b/packages/opencode/src/provider/provider.ts @@ -1190,8 +1190,6 @@ export namespace Provider { export function sort(models: Model[]) { return sortBy( models, - // kilocode_change - keep `kilo/auto` at the top for Kilo Gateway - [(model) => (model.providerID === "kilo" && model.id === "kilo/auto" ? 1 : 0), "desc"], [(model) => priority.findIndex((filter) => model.id.includes(filter)), "desc"], [(model) => (model.id.includes("latest") ? 0 : 1), "asc"], [(model) => model.id, "desc"],