mirror of
https://github.com/BerriAI/litellm.git
synced 2026-11-30 01:08:33 +00:00
Serve chat completions for hosted_vllm, nvidia_nim, groq, together_ai, fireworks_ai, xai, mistral, deepseek, openrouter, cerebras and perplexity through the OpenAI passthrough, with each provider's Python config ported as a request transform in llms and its response and stream fixups applied on the way back. Streams ask for stream_options.include_usage on the client's behalf where the provider takes it, record the usage through ReportedUsage for the spend hooks, and keep it from the client unless the client asked for it. |
||
|---|---|---|
| .. | ||
| exception_mapping_utils | ||
| prompt_templates | ||
| call_arguments.rs | ||
| core_helpers.rs | ||
| dot_notation_indexing.rs | ||
| get_llm_provider_logic.rs | ||
| get_provider_specific_headers.rs | ||
| lib.rs | ||
| params.rs | ||
| secret_redaction.rs | ||
| serde_compat.rs | ||
| settings.rs | ||
| url_utils.rs | ||