litellm/litellm-rust/crates/inference-chat/AGENTS.md
Nate Armstrong bce2ced779
feat(gateway): native OpenAI chat completions with SSE passthrough (#46813)
Add the openai provider to /v1/chat/completions. The caller's body is passed
through with only the model renamed and LiteLLM-owned keys removed, and the
provider's JSON or SSE bytes are relayed as received. Streams have no total
timeout, only a per-read idle limit, so 30+ minute generations are not cut off.
openai_like and the translated providers keep their existing path.
2026-10-16 12:43:00 -07:00

645 B

  • Shared base and layering rules: ../inference/AGENTS.md
  • This crate owns Chat Completions call orchestration. Payloads belong in litellm-llms-types, transformations in llms/src/base_llm/chat and llms/src/<provider>/chat
  • Translated providers (ChatCompletions in src/route.rs) are non-streaming: the route returns its completed response, cached through litellm_inference::caching::execute_unary
  • OpenAI (OpenAiChatCompletions in src/openai.rs) is a passthrough machine: the provider's JSON body or SSE bytes go to the host as received, with no total timeout on a stream, only a per-read idle limit