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
Apply suggestion from @greptile-apps[bot]
kerry-berrib8d7f68aeba2
diff --git a/ui/litellm-dashboard/src/components/llm_calls/chat_completion.tsx b/ui/litellm-dashboard/src/components/llm_calls/chat_completion.tsxindex b813a35f687..c12a2c3cfb4 100644--- a/ui/litellm-dashboard/src/components/llm_calls/chat_completion.tsx+++ b/ui/litellm-dashboard/src/components/llm_calls/chat_completion.tsx@@ -245,7 +245,7 @@ export async function makeOpenAIChatCompletionRequest(// Extract cost from usage object if availableif (chunkWithUsage.usage.cost !== undefined && chunkWithUsage.usage.cost !== null) {- const parsedCost = parseFloat(chunkWithUsage.usage.cost);+ const parsedCost = Number(chunkWithUsage.usage.cost);if (Number.isFinite(parsedCost)) {usageData.cost = parsedCost;}