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
fix typo
Ishaan Jafff6c2b86903fd
diff --git a/ui/litellm-dashboard/src/components/chat_ui.tsx b/ui/litellm-dashboard/src/components/chat_ui.tsxindex 8a48608bde3..5b23ec11e3c 100644--- a/ui/litellm-dashboard/src/components/chat_ui.tsx+++ b/ui/litellm-dashboard/src/components/chat_ui.tsx@@ -77,10 +77,9 @@ const ChatUI: React.FC<ChatUIProps> = ({const chatEndRef = useRef<HTMLDivElement>(null);useEffect(() => {- let useApiKey = apiKeySource === 'session' ? accessToken : apiKey;- console.log("useApiKey:", useApiKey);- if (!useApiKey || !token || !userRole || !userID) {- console.log("useApiKey or token or userRole or userID is missing = ", useApiKey, token, userRole, userID);+ let userApiKey = apiKeySource === 'session' ? accessToken : apiKey;+ if (!userApiKey || !token || !userRole || !userID) {+ console.log("userApiKey or token or userRole or userID is missing = ", userApiKey, token, userRole, userID);return;}@@ -88,7 +87,7 @@ const ChatUI: React.FC<ChatUIProps> = ({const loadModels = async () => {try {const uniqueModels = await fetchAvailableModels(- useApiKey,+ userApiKey,);console.log("Fetched models:", uniqueModels);