mirror of
https://github.com/router-for-me/CLIProxyAPI.git
synced 2026-02-18 12:20:52 +08:00
feat(registry): add support for 'kimi' channel in model definitions
This commit is contained in:
@@ -19,6 +19,7 @@ import (
|
|||||||
// - codex
|
// - codex
|
||||||
// - qwen
|
// - qwen
|
||||||
// - iflow
|
// - iflow
|
||||||
|
// - kimi
|
||||||
// - antigravity (returns static overrides only)
|
// - antigravity (returns static overrides only)
|
||||||
func GetStaticModelDefinitionsByChannel(channel string) []*ModelInfo {
|
func GetStaticModelDefinitionsByChannel(channel string) []*ModelInfo {
|
||||||
key := strings.ToLower(strings.TrimSpace(channel))
|
key := strings.ToLower(strings.TrimSpace(channel))
|
||||||
@@ -39,6 +40,8 @@ func GetStaticModelDefinitionsByChannel(channel string) []*ModelInfo {
|
|||||||
return GetQwenModels()
|
return GetQwenModels()
|
||||||
case "iflow":
|
case "iflow":
|
||||||
return GetIFlowModels()
|
return GetIFlowModels()
|
||||||
|
case "kimi":
|
||||||
|
return GetKimiModels()
|
||||||
case "antigravity":
|
case "antigravity":
|
||||||
cfg := GetAntigravityModelConfig()
|
cfg := GetAntigravityModelConfig()
|
||||||
if len(cfg) == 0 {
|
if len(cfg) == 0 {
|
||||||
@@ -83,6 +86,7 @@ func LookupStaticModelInfo(modelID string) *ModelInfo {
|
|||||||
GetOpenAIModels(),
|
GetOpenAIModels(),
|
||||||
GetQwenModels(),
|
GetQwenModels(),
|
||||||
GetIFlowModels(),
|
GetIFlowModels(),
|
||||||
|
GetKimiModels(),
|
||||||
}
|
}
|
||||||
for _, models := range allModels {
|
for _, models := range allModels {
|
||||||
for _, m := range models {
|
for _, m := range models {
|
||||||
|
|||||||
Reference in New Issue
Block a user