mirror of
https://github.com/BerriAI/litellm.git
synced 2026-11-25 22:20:43 +00:00
router-core now decides the fallback-hop parts of an attempt's kwargs and sends them on the attempt step as shape: the metadata model_group a hop routes, whether the walk stamps a metadata copy and strips undecryptable reasoning, and whether the request mock_timeout is dropped. The Python driver applies those decisions instead of re-deriving them from the step and deployment. |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| endpoints.py | ||
| prompt_management.py | ||
| README.md | ||
| shaping.py | ||
| slots.py | ||
| streaming.py | ||
| walk.py | ||
| websocket.py | ||
invoke
The host side of Host::invoke: running one attempt against the one deployment router-core picked. Nothing here selects, retries, falls back or records cooldowns.
shaping: the kwargs an attempt sends to its deploymentendpoints: what each public router method does before, around and after the routed callstreaming: stream wrappers, so a stream that fails before its first token fails the attemptslots: a deployment'smax_parallel_requestswalk: the retry and fallback metadata stamped on each attemptprompt_management: prompt-management groupswebsocket: admission for each turn of a Responses websocket
A Rust host replaces this with native endpoint calls.