From a61e2f2e6da5e4accda81495a46e41e1494e5087 Mon Sep 17 00:00:00 2001 From: "kiloconnect[bot]" <240665456+kiloconnect[bot]@users.noreply.github.com> Date: Mon, 9 Feb 2026 14:59:38 +0000 Subject: [PATCH] feat: set moonshotai as preferred provider for moonshotai models Add moonshotai to the getPreferredProvider function so that moonshotai models (e.g., kimi models) are preferentially routed to the moonshotai provider in OpenRouter, following the same pattern used for minimax and mistral models. --- src/lib/providers/index.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/lib/providers/index.ts b/src/lib/providers/index.ts index 12eef4079d..33d589cec1 100644 --- a/src/lib/providers/index.ts +++ b/src/lib/providers/index.ts @@ -154,6 +154,9 @@ function getPreferredProvider(requestedModel: string): OpenRouterInferenceProvid if (isMistralModel(requestedModel)) { return OpenRouterInferenceProviderIdSchema.enum.mistral; } + if (isMoonshotModel(requestedModel)) { + return OpenRouterInferenceProviderIdSchema.enum.moonshotai; + } return null; }