Add Kimi Code provider preset and rename Moonshot API preset (#862)

* Add Kimi Code provider preset

* fix desc.

Co-authored-by: Copilot <copilot@github.com>

* more desc. fixes.

* Fix release validation tests

---------

Co-authored-by: Copilot <copilot@github.com>
This commit is contained in:
JATMN
2026-04-24 21:36:54 -07:00
committed by GitHub
parent 26413f6d30
commit 9070220292
18 changed files with 296 additions and 56 deletions

View File

@@ -197,13 +197,21 @@ export function getLocalOpenAICompatibleProviderLabel(baseUrl?: string): string
if (host.includes('minimax') || haystack.includes('minimax')) {
return 'MiniMax'
}
// Kimi Code subscription API
if (hostname === 'api.kimi.com' && path.includes('/coding')) {
return 'Moonshot AI - Kimi Code'
}
// Check for Bankr LLM gateway
if (host.includes('bankr') || haystack.includes('bankr')) {
return 'Bankr'
}
// Moonshot AI (Kimi) direct API
if (host.includes('moonshot') || haystack.includes('moonshot') || haystack.includes('kimi')) {
return 'Moonshot (Kimi)'
// Moonshot AI direct API
if (
host.includes('moonshot') ||
haystack.includes('moonshot') ||
haystack.includes('kimi')
) {
return 'Moonshot AI - API'
}
} catch {
// Fall back to the generic label when the base URL is malformed.