mirror of
https://github.com/BerriAI/litellm.git
synced 2026-12-02 01:28:38 +00:00
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.
645 B
645 B
- Shared base and layering rules:
../inference/AGENTS.md - This crate owns Chat Completions call orchestration. Payloads belong in
litellm-llms-types, transformations inllms/src/base_llm/chatandllms/src/<provider>/chat - Translated providers (
ChatCompletionsinsrc/route.rs) are non-streaming: the route returns its completed response, cached throughlitellm_inference::caching::execute_unary - OpenAI (
OpenAiChatCompletionsinsrc/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