mirror of
https://github.com/Kilo-Org/kilocode.git
synced 2026-09-24 16:02:55 +08:00
Merge branch 'dev' into catrielmuller/kilo-opencode-v1.1.43
This commit is contained in:
@@ -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"],
|
||||
|
||||
Reference in New Issue
Block a user