litellm/litellm
Ishaan Jaff 4555ed37c5
fix(callbacks): allow MAX_CALLBACKS override via env var (#20781)
* fix(callbacks): allow MAX_CALLBACKS override via env var (#20778)

* fix(callbacks): allow MAX_CALLBACKS override via env var

- Move MAX_CALLBACKS from logging_callback_manager.py to constants.py
- Add LITELLM_MAX_CALLBACKS env var override (default: 30)
- Add troubleshooting doc explaining the limit and override

Fixes issue where large deployments with 60+ teams using guardrails
would hit the hardcoded MAX_CALLBACKS=30 limit and fail to start.

* docs: add max_callbacks to sidebar navigation

---------

Co-authored-by: shin-bot-litellm <shin-bot-litellm@users.noreply.github.com>

* fix callbacks issue

---------

Co-authored-by: shin-bot-litellm <shin-bot-litellm@berri.ai>
Co-authored-by: shin-bot-litellm <shin-bot-litellm@users.noreply.github.com>
2026-02-09 12:11:32 -08:00
..
a2a_protocol fix(mypy): resolve type checking errors in 5 files (#20627) 2026-02-06 18:34:55 -08:00
anthropic_interface
assistants
batch_completion
batches litellm_fix(azure): Fix acancel_batch not using Azure SDK client initialization (#20168) 2026-01-31 11:45:25 -08:00
caching fix(mypy): resolve type checking errors in 5 files (#20627) 2026-02-06 18:34:55 -08:00
completion_extras fix(proxy): forward extra_headers in chat 2026-02-04 08:56:50 +05:30
containers
endpoints/speech/speech_to_completion_bridge
experimental_mcp_client fix(mcp): resolve OAuth2 'Capabilities: none' bug for upstream MCP servers (#20602) 2026-02-06 15:00:35 -08:00
files
fine_tuning
google_genai
images
integrations Merge pull request #20483 from BerriAI/litellm_completion_websearch 2026-02-09 17:52:52 +05:30
interactions
litellm_core_utils fix(callbacks): allow MAX_CALLBACKS override via env var (#20781) 2026-02-09 12:11:32 -08:00
llms Merge pull request #20483 from BerriAI/litellm_completion_websearch 2026-02-09 17:52:52 +05:30
ocr
passthrough
proxy Merge pull request #20601 from Harshit28j/litellm_fix_budget_model_v2 2026-02-09 20:08:27 +05:30
proxy_auth Fix mypy issues 2026-02-05 09:44:05 +05:30
rag
realtime_api [Feat] Add xAI /realtime API Support - works with LiveKitSDK (#20381) 2026-02-03 19:58:28 -08:00
rerank_api
responses fix(responses): guard ambiguous tool-call index reuse 2026-02-08 08:53:17 -06:00
router_strategy
router_utils feat: add support for anthropic_messages call type in prompt caching (#19233) 2026-02-07 22:51:06 -08:00
search
secret_managers
skills
types Merge branch 'main' into litellm_v1_messages_claude_4_6 2026-02-09 17:14:36 +05:30
vector_store_files
vector_stores
videos
__init__.py Merge pull request #20386 from naaa760/fix/extra-head-chat-comp-brid 2026-02-04 09:11:43 +05:30
_lazy_imports_registry.py [Feat] Allow calling A2A agents through LiteLLM /chat/completions API (#20358) 2026-02-03 12:52:33 -08:00
_lazy_imports.py
_logging.py
_redis.py
_service_logger.py
_uuid.py
_version.py
anthropic_beta_headers_config.json Fix : litellm/tests/test_litellm/llms/bedrock/chat/invoke_transformations/test_bedrock_chat_invoke_transformations_anthropic_claude3_transformation.py 2026-02-09 17:18:05 +05:30
anthropic_beta_headers_manager.py feat: Add Unsupported Anthropic beta headers for each provider json 2026-02-06 17:44:09 +05:30
budget_manager.py
constants.py fix(callbacks): allow MAX_CALLBACKS override via env var (#20781) 2026-02-09 12:11:32 -08:00
cost_calculator.py perf: guard debug log f-strings and remove redundant dict copy in hot path (#19961) 2026-02-07 10:40:29 -08:00
cost.json
exceptions.py
main.py Merge pull request #20386 from naaa760/fix/extra-head-chat-comp-brid 2026-02-04 09:11:43 +05:30
model_prices_and_context_window_backup.json Merge branch 'main' into litellm_v1_messages_claude_4_6 2026-02-09 17:14:36 +05:30
mypy.ini
py.typed
router.py perf: guard debug log f-strings and remove redundant dict copy in hot path (#19961) 2026-02-07 10:40:29 -08:00
scheduler.py
timeout.py
utils.py perf: replace enum construction with frozenset lookup in _is_streaming_request (#20302) 2026-02-07 10:50:57 -08:00