Skip to content

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]

Merge branch 'main' into litellm_ui_custom_proxy_base_url

Cesar Garcia01b6925610c1
diff --cc ui/litellm-dashboard/src/components/playground/chat_ui/ChatUI.tsx
index 9fda837c37f,cee9db74276..9918040ef64
--- a/ui/litellm-dashboard/src/components/playground/chat_ui/ChatUI.tsx
+++ b/ui/litellm-dashboard/src/components/playground/chat_ui/ChatUI.tsx
@@@ -862,7 -900,8 +903,9 @@@ const ChatUI: React.FC<ChatUIProps> = (
useAdvancedParams ? temperature : undefined,
useAdvancedParams ? maxTokens : undefined,
updateTotalLatency,
+ customProxyBaseUrl || undefined,
+ mcpServers,
+ mcpServerToolRestrictions,
);
} else if (endpointType === EndpointType.IMAGE) {
// For image generation
@@@ -939,7 -973,8 +982,9 @@@
handleMCPEvent, // Pass MCP event handler
codeInterpreter.enabled, // Enable Code Interpreter tool
codeInterpreter.setResult, // Handle code interpreter output
+ customProxyBaseUrl || undefined,
+ mcpServers,
+ mcpServerToolRestrictions,
);
} else if (endpointType === EndpointType.ANTHROPIC_MESSAGES) {
const apiChatHistory = [
diff --cc ui/litellm-dashboard/src/components/playground/llm_calls/chat_completion.tsx
index 4b9054dbf88,906c72245fd..24112ca1666
--- a/ui/litellm-dashboard/src/components/playground/llm_calls/chat_completion.tsx
+++ b/ui/litellm-dashboard/src/components/playground/llm_calls/chat_completion.tsx
@@@ -23,7 -24,8 +24,9 @@@ export async function makeOpenAIChatCom
temperature?: number,
max_tokens?: number,
onTotalLatency?: (latency: number) => void,
+ customBaseUrl?: string,
+ mcpServers?: MCPServer[],
+ mcpServerToolRestrictions?: Record<string, string[]>,
) {
// base url should be the current base_url
const isLocal = process.env.NODE_ENV === "development";
diff --cc ui/litellm-dashboard/src/components/playground/llm_calls/responses_api.tsx
index 1b255d86065,e30c14111fd..b658610a21e
--- a/ui/litellm-dashboard/src/components/playground/llm_calls/responses_api.tsx
+++ b/ui/litellm-dashboard/src/components/playground/llm_calls/responses_api.tsx
@@@ -32,7 -33,8 +33,9 @@@ export async function makeOpenAIRespons
onMCPEvent?: (event: MCPEvent) => void,
codeInterpreterEnabled?: boolean,
onCodeInterpreterResult?: (result: CodeInterpreterResult) => void,
+ customBaseUrl?: string,
+ mcpServers?: MCPServer[],
+ mcpServerToolRestrictions?: Record<string, string[]>,
) {
if (!accessToken) {
throw new Error("Virtual Key is required");