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
swithc off console log in prod
Ishaan Jaff7f847f194d92
diff --git a/ui/litellm-dashboard/src/components/admins.tsx b/ui/litellm-dashboard/src/components/admins.tsxindex 94211868f45..af4a3bdd65c 100644--- a/ui/litellm-dashboard/src/components/admins.tsx+++ b/ui/litellm-dashboard/src/components/admins.tsx@@ -91,6 +91,9 @@ const AdminPanel: React.FC<AdminPanelProps> = ({>>(null);const isLocal = process.env.NODE_ENV === "development";+ if (isLocal === true) {+ console.log = function() {};+ }const [baseUrl, setBaseUrl] = useState(isLocal ? "http://localhost:4000" : "");diff --git a/ui/litellm-dashboard/src/components/chat_ui.tsx b/ui/litellm-dashboard/src/components/chat_ui.tsxindex d96db60c48c..e38c005c4be 100644--- a/ui/litellm-dashboard/src/components/chat_ui.tsx+++ b/ui/litellm-dashboard/src/components/chat_ui.tsx@@ -45,6 +45,9 @@ async function generateModelResponse() {// base url should be the current base_urlconst isLocal = process.env.NODE_ENV === "development";+ if (isLocal === true) {+ console.log = function() {};+ }console.log("isLocal:", isLocal);const proxyBaseUrl = isLocal? "http://localhost:4000"diff --git a/ui/litellm-dashboard/src/components/create_user_button.tsx b/ui/litellm-dashboard/src/components/create_user_button.tsxindex 75908ac27db..498d032f57c 100644--- a/ui/litellm-dashboard/src/components/create_user_button.tsx+++ b/ui/litellm-dashboard/src/components/create_user_button.tsx@@ -43,6 +43,9 @@ const Createuser: React.FC<CreateuserProps> = ({useState<InvitationLink | null>(null);const router = useRouter();const isLocal = process.env.NODE_ENV === "development";+ if (isLocal === true) {+ console.log = function() {};+ }const [baseUrl, setBaseUrl] = useState(isLocal ? "http://localhost:4000" : "");diff --git a/ui/litellm-dashboard/src/components/general_settings.tsx b/ui/litellm-dashboard/src/components/general_settings.tsxindex 183236e223a..1f7037b4985 100644--- a/ui/litellm-dashboard/src/components/general_settings.tsx+++ b/ui/litellm-dashboard/src/components/general_settings.tsx@@ -76,6 +76,9 @@ async function testFallbackModelResponse() {// base url should be the current base_urlconst isLocal = process.env.NODE_ENV === "development";+ if (isLocal === true) {+ console.log = function() {};+ }console.log("isLocal:", isLocal);const proxyBaseUrl = isLocal? "http://localhost:4000"diff --git a/ui/litellm-dashboard/src/components/navbar.tsx b/ui/litellm-dashboard/src/components/navbar.tsxindex 66d4c703eee..eba5cad78c5 100644--- a/ui/litellm-dashboard/src/components/navbar.tsx+++ b/ui/litellm-dashboard/src/components/navbar.tsx@@ -43,6 +43,9 @@ const Navbar: React.FC<NavbarProps> = ({// const userColors = require('./ui_colors.json') || {};const isLocal = process.env.NODE_ENV === "development";+ if (isLocal === true) {+ console.log = function() {};+ }const proxyBaseUrl = isLocal ? "http://localhost:4000" : null;const imageUrl = isLocal ? "http://localhost:4000/get_image" : "/get_image";let logoutUrl = "";diff --git a/ui/litellm-dashboard/src/components/networking.tsx b/ui/litellm-dashboard/src/components/networking.tsxindex ee9ab07bb78..7d68e7a9deb 100644--- a/ui/litellm-dashboard/src/components/networking.tsx+++ b/ui/litellm-dashboard/src/components/networking.tsx@@ -5,6 +5,9 @@ import { message } from "antd";const isLocal = process.env.NODE_ENV === "development";const proxyBaseUrl = isLocal ? "http://localhost:4000" : null;+if (isLocal === true) {+ console.log = function() {};+}export interface Model {model_name: string;diff --git a/ui/litellm-dashboard/src/components/user_dashboard.tsx b/ui/litellm-dashboard/src/components/user_dashboard.tsxindex 386ad613a79..f8326054c11 100644--- a/ui/litellm-dashboard/src/components/user_dashboard.tsx+++ b/ui/litellm-dashboard/src/components/user_dashboard.tsx@@ -17,6 +17,9 @@ import { useSearchParams, useRouter } from "next/navigation";import { jwtDecode } from "jwt-decode";import { Typography } from "antd";const isLocal = process.env.NODE_ENV === "development";+if (isLocal === true) {+ console.log = function() {};+}console.log("isLocal:", isLocal);const proxyBaseUrl = isLocal ? "http://localhost:4000" : null;