From 107f9dc46c44f57ae57a90574691fea59ee947ab Mon Sep 17 00:00:00 2001 From: janfrederickk <75388864+janfrederickk@users.noreply.github.com> Date: Sat, 21 Feb 2026 07:26:14 +0100 Subject: [PATCH] feat: show proxy url in ModelHub (#21660) --- ui/litellm-dashboard/src/components/AIHub/ModelHubTable.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ui/litellm-dashboard/src/components/AIHub/ModelHubTable.tsx b/ui/litellm-dashboard/src/components/AIHub/ModelHubTable.tsx index 71b84e281df..537aa001b70 100644 --- a/ui/litellm-dashboard/src/components/AIHub/ModelHubTable.tsx +++ b/ui/litellm-dashboard/src/components/AIHub/ModelHubTable.tsx @@ -659,7 +659,7 @@ const ModelHubTable: React.FC = ({ accessToken, publicPage, client = openai.OpenAI( api_key="your_api_key", - base_url="http://0.0.0.0:4000" # Your LiteLLM Proxy URL + base_url="${getProxyBaseUrl()}" # Your LiteLLM Proxy URL ) response = client.chat.completions.create( @@ -997,7 +997,7 @@ import asyncio config = { "mcpServers": { "${selectedMcpServer.server_name}": { - "url": "http://localhost:4000/${selectedMcpServer.server_name}/mcp", + "url": "${getProxyBaseUrl()}/${selectedMcpServer.server_name}/mcp", "headers": { "x-litellm-api-key": "Bearer sk-1234" } @@ -1016,7 +1016,7 @@ async def main(): # Call a tool response = await client.call_tool( - name="tool_name", + name="tool_name", arguments={"arg": "value"} ) print(f"Response: {response}")