litellm/litellm
Darien Kindlund 0f2516e9cd
fix: handle explicit None model_info in LowestLatencyLoggingHandler (#21633)
When model_info is explicitly set to None in litellm_params (via
get_litellm_params.py), the pattern .get("model_info", {}) returns
None instead of {}, causing AttributeError on the chained .get("id").

This commonly occurs when Anthropic API returns usage limit errors,
the router falls back to Vertex AI, and the fallback succeeds — the
log_success_event callback fires with model_info=None.

Uses the (x or {}) pattern already established in router.py.

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-02-19 17:30:58 -08:00
..
a2a_protocol fix: prompt registry 2026-02-18 00:34:54 +05:30
anthropic_interface fix: prompt registry 2026-02-18 00:34:54 +05:30
assistants
batch_completion fix: prompt registry 2026-02-18 00:34:54 +05:30
batches fix: prompt registry 2026-02-18 00:34:54 +05:30
caching fix: prompt registry 2026-02-18 00:34:54 +05:30
completion_extras fix code quality tests and mypy 2026-02-18 17:36:36 +05:30
containers fix: prompt registry 2026-02-18 00:34:54 +05:30
endpoints/speech/speech_to_completion_bridge
evals fix: prompt registry 2026-02-18 00:34:54 +05:30
experimental_mcp_client fix: prompt registry 2026-02-18 00:34:54 +05:30
files fix: prompt registry 2026-02-18 00:34:54 +05:30
fine_tuning
google_genai fix: prompt registry 2026-02-18 00:34:54 +05:30
images fix: prompt registry 2026-02-18 00:34:54 +05:30
integrations fix(websearch_interception): fix pre_call_deployment_hook not triggering via proxy router (#21433) 2026-02-19 06:38:45 -08:00
interactions fix: prompt registry 2026-02-18 00:34:54 +05:30
litellm_core_utils fix: reduce proxy overhead for large base64 payloads (#21594) 2026-02-19 12:10:52 -08:00
llms fix(bedrock): add Accept header for AgentCore MCP server requests (#21551) 2026-02-19 11:35:14 -08:00
ocr
passthrough fix(types): fix mypy errors in pass-through endpoint query param types 2026-02-19 12:24:14 -03:00
proxy fix filter 2026-02-19 17:17:11 -08:00
proxy_auth fix: prompt registry 2026-02-18 00:34:54 +05:30
rag fix: prompt registry 2026-02-18 00:34:54 +05:30
realtime_api fix: prompt registry 2026-02-18 00:34:54 +05:30
rerank_api fix: prompt registry 2026-02-18 00:34:54 +05:30
responses Add server side compaction translation from openai to anthropic 2026-02-19 16:44:35 +05:30
router_strategy fix: handle explicit None model_info in LowestLatencyLoggingHandler (#21633) 2026-02-19 17:30:58 -08:00
router_utils Merge main into affinity_callback and address deployment affinity review feedback 2026-02-18 10:01:11 -06:00
search
secret_managers fix: prompt registry 2026-02-18 00:34:54 +05:30
skills fix: prompt registry 2026-02-18 00:34:54 +05:30
types feat: prompt injection guardrail policy template (#21520) 2026-02-19 15:06:06 -08:00
vector_store_files
vector_stores
videos
__init__.py Merge branch 'main' into litellm_oss_staging_02_17_2026 2026-02-18 17:26:33 +05:30
_lazy_imports_registry.py Merge branch 'main' into litellm_oss_staging_02_17_2026 2026-02-18 17:26:33 +05:30
_lazy_imports.py fix: prompt registry 2026-02-18 00:34:54 +05:30
_logging.py fix: prompt registry 2026-02-18 00:34:54 +05:30
_redis.py
_service_logger.py fix: prompt registry 2026-02-18 00:34:54 +05:30
_uuid.py
_version.py
anthropic_beta_headers_config.json Add supoort for context-1m-2025-08-07 2026-02-19 09:52:23 +05:30
anthropic_beta_headers_manager.py fix: prompt registry 2026-02-18 00:34:54 +05:30
budget_manager.py
constants.py feat: prompt injection guardrail policy template (#21520) 2026-02-19 15:06:06 -08:00
cost_calculator.py fix: prompt registry 2026-02-18 00:34:54 +05:30
cost.json
exceptions.py fix: prompt registry 2026-02-18 00:34:54 +05:30
main.py fix: prompt registry 2026-02-18 00:34:54 +05:30
model_prices_and_context_window_backup.json Add gemini-3.1-pro-preview pricing data 2026-02-19 22:14:19 +05:30
mypy.ini
policy_templates_backup.json feat(ui): show latency overhead for AI-suggested policy templates (#21620) 2026-02-19 15:45:07 -08:00
py.typed
router.py Merge main into affinity_callback and address deployment affinity review feedback 2026-02-18 10:01:11 -06:00
scheduler.py fix: prompt registry 2026-02-18 00:34:54 +05:30
timeout.py
utils.py fix: allow github aliases to reuse upstream model metadata 2026-02-18 22:29:15 +02:00