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(cli): pin pi compat flags so lite pi stops sending store to Anthropic models (#40739)
devin-ai-integration[bot]c5c5154c4b68
diff --git a/litellm/proxy/client/cli/commands/pi.py b/litellm/proxy/client/cli/commands/pi.pyindex 22c9755ab8e..4cb2372e07e 100644--- a/litellm/proxy/client/cli/commands/pi.py+++ b/litellm/proxy/client/cli/commands/pi.py@@ -190,10 +190,16 @@ def provider_block(Real contextWindow/maxTokens matter: pi otherwise assumes 128k/16384, whichbreaks compaction thresholds and over-asks models with smaller output caps.+ pi sniffs compat from the base URL, and one gateway URL fronts models with+ different capabilities, so both flags are pinned off."""return {"baseUrl": base_url.rstrip("/") + "/v1","api": "openai-completions",+ "compat": {+ "supportsStore": False,+ "supportsLongCacheRetention": False,+ },"apiKey": f"${LITELLM_PROXY_API_KEY_ENV}","models": [_model_entry(model_id, limits) for model_id in model_ids],}diff --git a/tests/unit/proxy/client/cli/test_pi.py b/tests/unit/proxy/client/cli/test_pi.pyindex 6bb49566580..ff4dc25cd0c 100644--- a/tests/unit/proxy/client/cli/test_pi.py+++ b/tests/unit/proxy/client/cli/test_pi.py@@ -195,6 +195,7 @@ class TestProviderBlock:assert block == {"baseUrl": "http://localhost:4000/v1","api": "openai-completions",+ "compat": {"supportsStore": False, "supportsLongCacheRetention": False},"apiKey": "$LITELLM_PROXY_API_KEY","models": [{"id": "m-1"}, {"id": "m-2"}],}