The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]
Python ai-gatewayanthropicazure-openaibedrockgatewaylangchainlitellmllmllm-gatewayllmopsmcp-gatewayopenaiopenai-proxyrustrust-aivertex-ai
chore(router): resolve merge conflict with main
Tin Chi Lo9221109d18fe
diff --cc ui/litellm-dashboard/src/components/add_model/build_complexity_router_config.tsindex 3079af921c6,ca46e171970..9b4f1980f62--- a/ui/litellm-dashboard/src/components/add_model/build_complexity_router_config.ts+++ b/ui/litellm-dashboard/src/components/add_model/build_complexity_router_config.ts@@@ -633,13 -731,33 +731,34 @@@ export const buildComplexityRouterConfihybridBoundaryMargin,classifierContextWindowSize,classifierContextBudgetChars,+ classifierContextPerTurnChars,classifierContextIncludeAssistantTurns,};- // An edited tier set forces the LLM classifier, so llm-only inputs must survive a classifier_type- // the form never rewrote. The UI gates the same controls on this, not on the raw value.- const effectiveType: ClassifierType = customTierSet ? "llm" : classifierType;+ const effectiveType = effectiveClassifierType({ custom_tier_set: customTierSet, classifier_type: classifierType });const forecast = isForecastClassifier(effectiveType);+ const preserveContextWindowBuffer = !forecast || enableContextWindowEscalation === true;+ const cleanList = (items: string[] | undefined): string[] | undefined => {+ const cleaned = (items ?? []).map((item) => item.trim()).filter(Boolean);+ return cleaned.length > 0 ? cleaned : undefined;+ };+ const cleanedReminderMarkers = reminderMarkers?.map(({ open, close }) => ({+ open: open.trim().toLowerCase(),+ close: close.trim().toLowerCase(),+ }));+ const cleanedListValues = {+ code_keywords: cleanList(codeKeywords),+ reasoning_keywords: cleanList(reasoningKeywords),+ technical_keywords: cleanList(technicalKeywords),+ simple_keywords: cleanList(simpleKeywords),+ plan_mode_patterns: cleanList(planModePatterns),+ housekeeping_patterns: cleanList(housekeepingPatterns),+ };+ const cleanedLists = Object.fromEntries(Object.entries(cleanedListValues).filter(([, list]) => list !== undefined));+ const hasValidCustomClassifierTimeout =+ classifierType === "custom" &&+ classifierPluginTimeoutMs !== undefined &&+ Number.isInteger(classifierPluginTimeoutMs) &&+ classifierPluginTimeoutMs > 0;const supportsOpeningPrompt = !customTierSet && !forecast && usesLlmClassifier(effectiveType);const payload: ComplexityRouterConfigPayload = {