litellm/docs/architecture/diagrams/05-hook-sequence.svg

1 line
17 KiB
XML

<svg xmlns='http://www.w3.org/2000/svg' width='1317' height='631' viewBox='0 0 1317 631' font-family="Inter, -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif" xmlns:c2pa="http://c2pa.org/manifest"><metadata><c2pa:manifest>AAAWgmp1bWIAAAAeanVtZGMycGEAEQAQgAAAqgA4m3EDYzJwYQAAABZcanVtYgAAAEdqdW1kYzJtYQARABCAAACqADibcQN1cm46YzJwYToxZDI3ZDA5ZS1mNGUxLTRlOGMtYjQyMi1iZDJkNzc2NzkyYzYAAAADl2p1bWIAAAApanVtZGMyYXMAEQAQgAAAqgA4m3EDYzJwYS5hc3NlcnRpb25zAAAAALxqdW1iAAAARGp1bWRjYm9yABEAEIAAAKoAOJtxE2MycGEuaW5ncmVkaWVudC52MwAAAAAYYzJzaCkAeHYK6I5X7JYLM5+AlP4AAABwY2JvcqNpZGM6Zm9ybWF0bWltYWdlL3N2Zyt4bWxqaW5zdGFuY2VJRHgseG1wOmlpZDowNDAwNGNkYi01NDIwLTQ5NDEtYTZkYi04Njg2MWQ0MWYwZmZscmVsYXRpb25zaGlwaHBhcmVudE9mAAAB4mp1bWIAAABBanVtZGNib3IAEQAQgAAAqgA4m3ETYzJwYS5hY3Rpb25zLnYyAAAAABhjMnNof3I1BE9pWEG/AkDOUUvalQAAAZljYm9yomdhY3Rpb25zgqJmYWN0aW9ua2MycGEub3BlbmVkanBhcmFtZXRlcnOha2luZ3JlZGllbnRzgaJjdXJseC1zZWxmI2p1bWJmPWMycGEuYXNzZXJ0aW9ucy9jMnBhLmluZ3JlZGllbnQudjNkaGFzaFggXoaytaAnqTdgVca9VzcpTqwU10gFCdrGhRN+AFfyt0ykZmFjdGlvbngdY29tLmFudGhyb3BpYy5jbGF1ZGUucHJvdmlkZWRqcGFyYW1ldGVyc6F4H2NvbS5hbnRocm9waWMub3JpZ2luLWNvbmZpZGVuY2VndW5rbm93bmtkZXNjcmlwdGlvb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AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAPZYQCSgRHJrSyy9IBG10wQ5OBzF3Uz1fEeKVG4IXbsHcX3JymBTVSkzrQExmW3q9b6vSd67YJ2nqFpqh0nHUFP4p84=</c2pa:manifest></metadata><title>Where hooks fire in a proxy request</title><defs><marker id='ah' viewBox='0 0 10 10' refX='9' refY='5' markerWidth='9' markerHeight='9' markerUnits='userSpaceOnUse' orient='auto-start-reverse'><path d='M0,0 L10,5 L0,10 z' fill='#7b828c'/></marker><marker id='ahr' viewBox='0 0 10 10' refX='9' refY='5' markerWidth='9' markerHeight='9' markerUnits='userSpaceOnUse' orient='auto-start-reverse'><path d='M0,0 L10,5 L0,10 z' fill='#d33c3c'/></marker><marker id='ahk' viewBox='0 0 10 10' refX='9' refY='5' markerWidth='9' markerHeight='9' markerUnits='userSpaceOnUse' orient='auto-start-reverse'><path d='M0,0 L10,5 L0,10 z' fill='#30343b'/></marker></defs><rect width='1317' height='631' fill='#ffffff'/><line x1='64.0' y1='60' x2='64.0' y2='567' stroke='#c4c9d1' stroke-width='1.2' stroke-dasharray='4 4'/><line x1='339.16' y1='60' x2='339.16' y2='567' stroke='#c4c9d1' stroke-width='1.2' stroke-dasharray='4 4'/><line x1='607.8800000000001' y1='60' x2='607.8800000000001' y2='567' stroke='#c4c9d1' stroke-width='1.2' stroke-dasharray='4 4'/><line x1='757.8800000000001' y1='60' x2='757.8800000000001' y2='567' stroke='#c4c9d1' stroke-width='1.2' stroke-dasharray='4 4'/><line x1='907.8800000000001' y1='60' x2='907.8800000000001' y2='567' stroke='#c4c9d1' stroke-width='1.2' stroke-dasharray='4 4'/><line x1='1228.1200000000001' y1='60' x2='1228.1200000000001' y2='567' stroke='#c4c9d1' stroke-width='1.2' stroke-dasharray='4 4'/><rect x='20.0' y='213' width='1273.2400000000002' height='214' rx='6' fill='#f4f6fa' fill-opacity='0.55' stroke='#9aa1ab' stroke-width='1'/><path d='M20.0,229 h28.8 l6,-6 v-10 h-34.8 z' fill='#e3e7ee' stroke='#9aa1ab' stroke-width='1'/><text x='26.0' y='225.0' font-size='10' fill='#2b2f36' font-weight='700' text-anchor='start'>PAR</text><text x='62.8' y='225.0' font-size='11' fill='#5b616b' font-weight='500' text-anchor='start'>[LLM call]</text><line x1='20.0' y1='345' x2='1293.2400000000002' y2='345' stroke='#9aa1ab' stroke-dasharray='5 4'/><text x='28.0' y='358.0' font-size='11' fill='#5b616b' font-weight='500' text-anchor='start'>[during call]</text><line x1='67.0' y1='80' x2='336.16' y2='80' stroke='#30343b' stroke-width='1.2' marker-end='url(#ahk)'/><text x='201.6' y='75.0' font-size='11.5' fill='#2b2f36' font-weight='400' text-anchor='middle'>pre_call_hook (:2449)</text><path d='M342.16,108 h26 v34 h-23' fill='none' stroke='#30343b' stroke-width='1.2' marker-end='url(#ahk)'/><text x='375.2' y='118.0' font-size='11.5' fill='#2b2f36' font-weight='400' text-anchor='start'>policy pipelines, sequential then parallel</text><text x='375.2' y='132.0' font-size='11.5' fill='#2b2f36' font-weight='400' text-anchor='start'>guardrails</text><line x1='342.16' y1='163' x2='604.8800000000001' y2='163' stroke='#30343b' stroke-width='1.2' marker-end='url(#ahk)'/><text x='473.5' y='158.0' font-size='11.5' fill='#2b2f36' font-weight='400' text-anchor='middle'>guardrails that define apply_guardrail</text><line x1='342.16' y1='191' x2='1225.1200000000001' y2='191' stroke='#30343b' stroke-width='1.2' marker-end='url(#ahk)'/><text x='783.6' y='186.0' font-size='11.5' fill='#2b2f36' font-weight='400' text-anchor='middle'>async_pre_call_hook (rate limiters, others)</text><line x1='67.0' y1='237' x2='754.8800000000001' y2='237' stroke='#30343b' stroke-width='1.2' marker-end='url(#ahk)'/><text x='410.9' y='232.0' font-size='11.5' fill='#2b2f36' font-weight='400' text-anchor='middle'>route_request</text><line x1='760.8800000000001' y1='265' x2='1225.1200000000001' y2='265' stroke='#30343b' stroke-width='1.2' marker-end='url(#ahk)'/><text x='993.0' y='260.0' font-size='11.5' fill='#2b2f36' font-weight='400' text-anchor='middle'>router hooks: pre_routing, filter_deployments</text><line x1='760.8800000000001' y1='293' x2='904.8800000000001' y2='293' stroke='#30343b' stroke-width='1.2' marker-end='url(#ahk)'/><text x='832.9' y='288.0' font-size='11.5' fill='#2b2f36' font-weight='400' text-anchor='middle'>acompletion</text><line x1='910.8800000000001' y1='321' x2='1225.1200000000001' y2='321' stroke='#30343b' stroke-width='1.2' marker-end='url(#ahk)'/><text x='1068.0' y='316.0' font-size='11.5' fill='#2b2f36' font-weight='400' text-anchor='middle'>log_pre_api_call</text><line x1='67.0' y1='369' x2='336.16' y2='369' stroke='#30343b' stroke-width='1.2' marker-end='url(#ahk)'/><text x='201.6' y='364.0' font-size='11.5' fill='#2b2f36' font-weight='400' text-anchor='middle'>during_call_hook (:3022)</text><line x1='342.16' y1='397' x2='1225.1200000000001' y2='397' stroke='#30343b' stroke-width='1.2' marker-end='url(#ahk)'/><text x='783.6' y='392.0' font-size='11.5' fill='#2b2f36' font-weight='400' text-anchor='middle'>async_moderation_hook</text><line x1='910.8800000000001' y1='447' x2='1225.1200000000001' y2='447' stroke='#30343b' stroke-width='1.2' marker-end='url(#ahk)'/><text x='1068.0' y='442.0' font-size='11.5' fill='#2b2f36' font-weight='400' text-anchor='middle'>async_log_success_event (incl. _ProxyDBLogger)</text><line x1='67.0' y1='475' x2='336.16' y2='475' stroke='#30343b' stroke-width='1.2' marker-end='url(#ahk)'/><text x='201.6' y='470.0' font-size='11.5' fill='#2b2f36' font-weight='400' text-anchor='middle'>post_call_success_hook (:3599)</text><line x1='342.16' y1='503' x2='604.8800000000001' y2='503' stroke='#30343b' stroke-width='1.2' marker-end='url(#ahk)'/><text x='473.5' y='498.0' font-size='11.5' fill='#2b2f36' font-weight='400' text-anchor='middle'>output guardrails</text><line x1='67.0' y1='531' x2='336.16' y2='531' stroke='#30343b' stroke-width='1.2' marker-end='url(#ahk)'/><text x='201.6' y='526.0' font-size='11.5' fill='#2b2f36' font-weight='400' text-anchor='middle'>post_call_response_headers_hook (:3823)</text><rect x='16.0' y='14' width='96' height='46' rx='7' fill='#e8f0fe' stroke='#3b6fd8' stroke-width='1.3'/><text x='64.0' y='41.0' font-size='12' fill='#1d3f8f' font-weight='600' text-anchor='middle'>endpoint</text><rect x='280.12' y='14' width='118.08000000000001' height='46' rx='7' fill='#e8f0fe' stroke='#3b6fd8' stroke-width='1.3'/><text x='339.2' y='33.0' font-size='12' fill='#1d3f8f' font-weight='600' text-anchor='middle'>ProxyLogging</text><text x='339.2' y='49.0' font-size='10.5' fill='#5b616b' font-weight='400' text-anchor='middle' font-family="'JetBrains Mono', 'SFMono-Regular', Menlo, Consolas, monospace">proxy/utils.py</text><rect x='528.6800000000001' y='14' width='158.4' height='46' rx='7' fill='#e8f0fe' stroke='#3b6fd8' stroke-width='1.3'/><text x='607.9' y='41.0' font-size='12' fill='#1d3f8f' font-weight='600' text-anchor='middle'>UnifiedLLMGuardrails</text><rect x='709.8800000000001' y='14' width='96' height='46' rx='7' fill='#e6f4ea' stroke='#2e8b57' stroke-width='1.3'/><text x='757.9' y='41.0' font-size='12' fill='#1b5e3a' font-weight='600' text-anchor='middle'>Router</text><rect x='852.2' y='14' width='111.36000000000001' height='46' rx='7' fill='#e6f4ea' stroke='#2e8b57' stroke-width='1.3'/><text x='907.9' y='41.0' font-size='12' fill='#1b5e3a' font-weight='600' text-anchor='middle'>SDK + Logging</text><rect x='1159.0' y='14' width='138.24' height='46' rx='7' fill='#e6f4ea' stroke='#2e8b57' stroke-width='1.3'/><text x='1228.1' y='33.0' font-size='12' fill='#1b5e3a' font-weight='600' text-anchor='middle'>callbacks</text><text x='1228.1' y='49.0' font-size='10.5' fill='#5b616b' font-weight='400' text-anchor='middle' font-family="'JetBrains Mono', 'SFMono-Regular', Menlo, Consolas, monospace">litellm.callbacks</text><rect x='16.0' y='573' width='96' height='46' rx='7' fill='#e8f0fe' stroke='#3b6fd8' stroke-width='1.3'/><text x='64.0' y='600.0' font-size='12' fill='#1d3f8f' font-weight='600' text-anchor='middle'>endpoint</text><rect x='280.12' y='573' width='118.08000000000001' height='46' rx='7' fill='#e8f0fe' stroke='#3b6fd8' stroke-width='1.3'/><text x='339.2' y='592.0' font-size='12' fill='#1d3f8f' font-weight='600' text-anchor='middle'>ProxyLogging</text><text x='339.2' y='608.0' font-size='10.5' fill='#5b616b' font-weight='400' text-anchor='middle' font-family="'JetBrains Mono', 'SFMono-Regular', Menlo, Consolas, monospace">proxy/utils.py</text><rect x='528.6800000000001' y='573' width='158.4' height='46' rx='7' fill='#e8f0fe' stroke='#3b6fd8' stroke-width='1.3'/><text x='607.9' y='600.0' font-size='12' fill='#1d3f8f' font-weight='600' text-anchor='middle'>UnifiedLLMGuardrails</text><rect x='709.8800000000001' y='573' width='96' height='46' rx='7' fill='#e6f4ea' stroke='#2e8b57' stroke-width='1.3'/><text x='757.9' y='600.0' font-size='12' fill='#1b5e3a' font-weight='600' text-anchor='middle'>Router</text><rect x='852.2' y='573' width='111.36000000000001' height='46' rx='7' fill='#e6f4ea' stroke='#2e8b57' stroke-width='1.3'/><text x='907.9' y='600.0' font-size='12' fill='#1b5e3a' font-weight='600' text-anchor='middle'>SDK + Logging</text><rect x='1159.0' y='573' width='138.24' height='46' rx='7' fill='#e6f4ea' stroke='#2e8b57' stroke-width='1.3'/><text x='1228.1' y='592.0' font-size='12' fill='#1b5e3a' font-weight='600' text-anchor='middle'>callbacks</text><text x='1228.1' y='608.0' font-size='10.5' fill='#5b616b' font-weight='400' text-anchor='middle' font-family="'JetBrains Mono', 'SFMono-Regular', Menlo, Consolas, monospace">litellm.callbacks</text></svg>