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
Update local_debugging.md (#8308)
Rok Benko3ec9c28fb72f
diff --git a/docs/my-website/docs/debugging/local_debugging.md b/docs/my-website/docs/debugging/local_debugging.mdindex a9409bfab03..8a56d6c34a0 100644--- a/docs/my-website/docs/debugging/local_debugging.md+++ b/docs/my-website/docs/debugging/local_debugging.md@@ -1,5 +1,5 @@# Local Debugging-There's 2 ways to do local debugging - `litellm.set_verbose=True` and by passing in a custom function `completion(...logger_fn=<your_local_function>)`. Warning: Make sure to not use `set_verbose` in production. It logs API keys, which might end up in log files.+There's 2 ways to do local debugging - `litellm._turn_on_debug()` and by passing in a custom function `completion(...logger_fn=<your_local_function>)`. Warning: Make sure to not use `_turn_on_debug()` in production. It logs API keys, which might end up in log files.## Set Verbose@@ -8,7 +8,7 @@ This is good for getting print statements for everything litellm is doing.import litellmfrom litellm import completion-litellm.set_verbose=True # 👈 this is the 1-line change you need to make+litellm._turn_on_debug() # 👈 this is the 1-line change you need to make## set ENV variablesos.environ["OPENAI_API_KEY"] = "openai key"