Guided Review — Explorations

Related Files View

When reviewing a chunk, how should the reviewer navigate to related context? Three concepts below explore different interaction patterns. Each shows the same current chunk (Chunk 1 — The Entry Point) with three related chunks.

Concept A — Expand in place
Related chunks are listed below the current diff. Clicking one expands its diff inline, with a highlighted annotation showing why the two are related and which symbols they share. Multiple chunks can be open at once.
1
Chunk 1 of 4 — The Entry Point
litellm/proxy/guardrails/guardrail_hooks/unified_guardrail/unified_guardrail.py
critical+30
Why review this now?
Start here — this is where the change originates. The unified guardrail hook is the entry point that dispatches to all handlers.
247 guardrail_to_apply=guardrail_to_apply,
248 litellm_logging_obj=data.get("litellm_logging_obj"),
249 user_api_key_dict=user_api_key_dict,
250+ request_data=data,
251 )
252 # Add guardrail to applied guardrails header
Related context — 3 chunks