Merge pull request #44 from Kilo-Org/catrielmuller/kilo-gateway-anon

Kilo gateway - Auto Connect Free Models
This commit is contained in:
Catriel Müller
2026-01-28 11:59:45 +01:00
committed by GitHub
25 changed files with 185 additions and 151 deletions
+6 -4
View File
@@ -60,13 +60,15 @@ export const ModelsCommand = cmd({
return
}
// kilocode_change start
const providerIDs = Object.keys(providers).sort((a, b) => {
const aIsOpencode = a.startsWith("opencode")
const bIsOpencode = b.startsWith("opencode")
if (aIsOpencode && !bIsOpencode) return -1
if (!aIsOpencode && bIsOpencode) return 1
const aIsKilo = a === "kilo" || a.startsWith("opencode")
const bIsKilo = b === "kilo" || b.startsWith("opencode")
if (aIsKilo && !bIsKilo) return -1
if (!aIsKilo && bIsKilo) return 1
return a.localeCompare(b)
})
// kilocode_change end
for (const providerID of providerIDs) {
printModels(providerID, args.verbose)
@@ -17,11 +17,11 @@ import { KiloAutoMethod } from "@kilocode/kilo-gateway/tui" // kilocode_change
const PROVIDER_PRIORITY: Record<string, number> = {
kilo: -1, // kilocode_change - Kilo Gateway at top
opencode: 0,
anthropic: 1,
"github-copilot": 2,
openai: 3,
google: 4,
// kilocode_change - removed opencode from popular providers
anthropic: 0,
"github-copilot": 1,
openai: 2,
google: 3,
}
export function createDialogProviderOptions() {
@@ -40,7 +40,6 @@ export function createDialogProviderOptions() {
value: provider.id,
description: {
kilo: "(Recommended)", // kilocode_change
opencode: "(Recommended)",
anthropic: "(Claude Max or API key)",
openai: "(ChatGPT Plus/Pro or API key)",
}[provider.id],