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
ui chat ui fixes (#8105)
Ishaan Jaffd10bd67d33f9
diff --git a/ui/litellm-dashboard/src/components/chat_ui.tsx b/ui/litellm-dashboard/src/components/chat_ui.tsxindex 1d5db13523c..db4499f9ffd 100644--- a/ui/litellm-dashboard/src/components/chat_ui.tsx+++ b/ui/litellm-dashboard/src/components/chat_ui.tsx@@ -190,17 +190,19 @@ const ChatUI: React.FC<ChatUIProps> = ({return;}-+ // Create message object without model field for API callconst newUserMessage = { role: "user", content: inputMessage };-- const updatedChatHistory = [...chatHistory, newUserMessage];-- setChatHistory(updatedChatHistory);++ // Create chat history for API call - strip out model field+ const apiChatHistory = [...chatHistory.map(({ role, content }) => ({ role, content })), newUserMessage];++ // Update UI with full message object (including model field for display)+ setChatHistory([...chatHistory, newUserMessage]);try {if (selectedModel) {await generateModelResponse(- updatedChatHistory,+ apiChatHistory,(chunk, model) => updateUI("assistant", chunk, model),selectedModel,effectiveApiKey