mirror of
https://github.com/BerriAI/litellm.git
synced 2026-11-03 07:23:33 +00:00
Native Responses now hands back the same managed ids as Python: the resp_ id carries the provider and deployment, encrypted-content items get encitem_ ids and wrapped content under affinity routing, and container ids become cntr_ ids. Encoded encrypted-content items in the input are restored before the provider request. The codec lives in inference-responses with goldens taken from litellm/responses/utils.py
770 B
770 B
- Shared base and layering rules:
../inference/AGENTS.md - This crate owns Responses API call orchestration. Payloads belong in
litellm-llms-types, transformations inllms/src/base_llm/responsesandllms/src/<provider>/responses - The HTTP route returns
litellm_host::call::CallOutput: a completed response, or a stream head and chunks, cached throughlitellm_inference::caching::execute_streaming - WebSocket sessions (
src/websocket.rs) stay separate from the HTTP call driver because a connection can accept multiple requests while receiving events src/ids.rsowns the LiteLLM-managed ids handed back to callers (resp_,encitem_,litellm_enc:,cntr_) and must stay fully compatible withlitellm/responses/utils.py