Merge branch 'dev' into catrielmuller/kilo-opencode-v1.1.43

This commit is contained in:
Catriel Müller
2026-02-04 15:15:26 +01:00
committed by GitHub
2 changed files with 1 additions and 23 deletions
+1 -21
View File
@@ -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<string, any> = 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",
@@ -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"],