litellm/litellm/llms
devin-ai-integration[bot] c1a3aa4f49
refactor: build Datadog and rerank request headers without mutation (#54830)
Removes three mutable-ok suppressions added in the last 24 hours by building each header mapping in one expression

Co-authored-by: mateo <277851410+mateo-berri@users.noreply.github.com>
Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
2026-11-27 08:19:33 +00:00
..
a2a refactor(types): give bare dict, list and set returns, locals and constants proven types in 77 files (#54343) 2026-11-25 03:47:36 +00:00
ai21/chat refactor(types): replace Unknown with proven types in 245 files (#53774) 2026-11-23 10:05:26 -08:00
aiml refactor(types): give bare dict, list and set returns, locals and constants proven types in 77 files (#54343) 2026-11-25 03:47:36 +00:00
aiohttp_openai/chat refactor(types): replace Unknown with proven types in 390 files (#53715) 2026-11-24 03:33:11 +00:00
amazon_nova refactor(types): replace Unknown with proven types in 245 files (#53774) 2026-11-23 10:05:26 -08:00
anthropic refactor(types): type the json, headers and params of the shared HTTP client's request methods and their callers (#54743) 2026-11-26 20:16:27 +00:00
apiserpent refactor(types): replace Unknown with proven types in 162 more files (#54089) 2026-11-23 22:58:19 -08:00
aws_polly chore(types): type optional_params and litellm_params as dict[str, object] across provider method families (#54175) 2026-11-24 14:40:37 +00:00
azure refactor(types): type the headers of the shared Azure, Tencent and Vertex header helpers and the vector store and image edit validate_environment methods (#54747) 2026-11-26 21:16:25 +00:00
azure_ai refactor(types): type the headers of the shared Azure, Tencent and Vertex header helpers and the vector store and image edit validate_environment methods (#54747) 2026-11-26 21:16:25 +00:00
base_llm refactor(types): type the headers of the shared Azure, Tencent and Vertex header helpers and the vector store and image edit validate_environment methods (#54747) 2026-11-26 21:16:25 +00:00
baseten refactor(types): replace Unknown with proven types in 390 files (#53715) 2026-11-24 03:33:11 +00:00
bedrock refactor(types): type the json, headers and params of the shared HTTP client's request methods and their callers (#54743) 2026-11-26 20:16:27 +00:00
bedrock_mantle fix(bedrock_mantle): drop the JSON Schema keywords gemma-4 rejects from tool and response schemas (#54214) 2026-11-25 07:04:08 +00:00
bespoke/decisions
bigmodel fix(zai): accept reasoning_effort so /v1/messages thinking reaches GLM models (#54279) 2026-11-25 04:56:45 +00:00
black_forest_labs refactor(types): type the headers of the shared Azure, Tencent and Vertex header helpers and the vector store and image edit validate_environment methods (#54747) 2026-11-26 21:16:25 +00:00
brave/search refactor(types): replace Unknown with proven types in 390 files (#53715) 2026-11-24 03:33:11 +00:00
bytez refactor(types): replace Unknown with proven types in 131 more files (#54045) 2026-11-24 04:55:42 +00:00
cerebras refactor(types): give bare dict, list and set returns, locals and constants proven types in 77 files (#54343) 2026-11-25 03:47:36 +00:00
chatgpt fix(openai): drop or refuse an o-series reasoning_effort level the model map turns off (#54066) 2026-11-24 06:42:03 -08:00
clarifai/chat refactor(types): replace Unknown with proven types in 390 files (#53715) 2026-11-24 03:33:11 +00:00
claude_code refactor(types): replace Unknown with proven types in 390 files (#53715) 2026-11-24 03:33:11 +00:00
clf_ai_gateway/chat refactor(router): route the router family through RoutingContext and close the outside surface (#49118) 2026-10-30 19:18:54 -07:00
cloudflare refactor(types): give bare dict headers parameters proven types in 118 files (#54154) 2026-11-24 12:22:34 +00:00
codestral/completion refactor(types): replace Unknown with proven types in 86 files (#53803) 2026-11-24 12:45:20 +00:00
codex refactor(types): replace Unknown with proven types in 390 files (#53715) 2026-11-24 03:33:11 +00:00
cohere refactor(types): give bare dict, list and set returns, locals and constants proven types in 77 files (#54343) 2026-11-25 03:47:36 +00:00
cometapi chore(types): type optional_params and litellm_params as dict[str, object] across provider method families (#54175) 2026-11-24 14:40:37 +00:00
compactifai
custom_httpx refactor(types): type the headers of the shared Azure, Tencent and Vertex header helpers and the vector store and image edit validate_environment methods (#54747) 2026-11-26 21:16:25 +00:00
dashscope refactor(types): type the headers of the shared Azure, Tencent and Vertex header helpers and the vector store and image edit validate_environment methods (#54747) 2026-11-26 21:16:25 +00:00
databricks fix(openai_like): end an async stream cleanly when the connection drops after the finish (#54565) 2026-11-26 07:48:41 +00:00
dataforseo/search refactor(types): give bare dict, list and set returns, locals and constants proven types in 77 files (#54343) 2026-11-25 03:47:36 +00:00
datarobot/chat refactor(types): replace Unknown with proven types in 245 files (#53774) 2026-11-23 10:05:26 -08:00
deepagents refactor(types): replace Unknown with proven types in 390 files (#53715) 2026-11-24 03:33:11 +00:00
deepgram refactor(types): give bare dict, list and set returns, locals and constants proven types in 77 files (#54343) 2026-11-25 03:47:36 +00:00
deepinfra refactor: build Datadog and rerank request headers without mutation (#54830) 2026-11-27 08:19:33 +00:00
deepseek refactor(types): type the headers of the search and rerank validate_environment base methods and their provider overrides (#54727) 2026-11-26 17:51:16 +00:00
deprecated_providers refactor(types): replace Unknown with proven types in 131 more files (#54045) 2026-11-24 04:55:42 +00:00
docker_model_runner/chat refactor(types): replace Unknown with proven types in 162 more files (#54089) 2026-11-23 22:58:19 -08:00
duckduckgo/search refactor(types): replace Unknown with proven types in 225 files (#53687) 2026-11-24 00:11:50 +00:00
e2b refactor(types): replace Unknown with proven types in 390 files (#53715) 2026-11-24 03:33:11 +00:00
edenai refactor(typing): clear 1146 basedpyright Any errors across 365 files (#52768) 2026-11-21 04:25:33 +00:00
elevenlabs refactor(types): give bare dict, list and set returns, locals and constants proven types in 77 files (#54343) 2026-11-25 03:47:36 +00:00
empiriolabs/decisions feat(decisions): add EmpirioLabs AI as a decisions provider (#49977) 2026-11-04 10:41:16 -08:00
empower/chat
eu_jev feat(pass-through): add eu/jev decision API pass-through with spend tracking (#46875) 2026-10-29 17:52:43 -07:00
exa_ai/search refactor(types): give bare dict, list and set returns, locals and constants proven types in 77 files (#54343) 2026-11-25 03:47:36 +00:00
fal_ai refactor(types): give bare dict, list and set returns, locals and constants proven types in 77 files (#54343) 2026-11-25 03:47:36 +00:00
fastcrw refactor(types): replace Unknown with proven types in 390 files (#53715) 2026-11-24 03:33:11 +00:00
featherless_ai/chat refactor(types): replace Unknown with proven types in 390 files (#53715) 2026-11-24 03:33:11 +00:00
firecrawl refactor(types): give bare dict, list and set returns, locals and constants proven types in 77 files (#54343) 2026-11-25 03:47:36 +00:00
fireworks_ai fix(llms): send later system messages as user turns for models declared system-first (#54347) 2026-11-25 11:48:27 +00:00
friendliai/chat
galadriel/chat
gdc chore(types): type optional_params and litellm_params as dict[str, object] across provider method families (#54175) 2026-11-24 14:40:37 +00:00
gemini refactor(types): type the params models' get and read keys and base URLs through a str-or-None helper (#54589) 2026-11-26 04:13:56 +00:00
gigachat refactor(types): give bare dict headers parameters proven types in 118 files (#54154) 2026-11-24 12:22:34 +00:00
github/chat
github_copilot fix(github_copilot): look up a GHE.com shared login's Copilot API on its own tenant (#54366) 2026-11-25 08:30:23 +00:00
gnani feat(gnani): add Prisma v2.5 and v3.0 realtime transcription (#53828) 2026-11-25 10:51:59 +00:00
google_pse/search refactor(types): replace Unknown with proven types in 162 more files (#54089) 2026-11-23 22:58:19 -08:00
gradient_ai/chat chore(types): type optional_params and litellm_params as dict[str, object] across provider method families (#54175) 2026-11-24 14:40:37 +00:00
gradium feat(gradium): add text-to-speech support for /v1/audio/speech (#46427) 2026-11-21 23:51:27 +00:00
groq refactor(types): type the json, headers and params of the shared HTTP client's request methods and their callers (#54743) 2026-11-26 20:16:27 +00:00
heroku/chat refactor(types): replace Unknown with proven types in 245 files (#53774) 2026-11-23 10:05:26 -08:00
hosted_vllm fix(hosted_vllm): keep vLLM's prompt_token_ids on the first streamed chat chunk (#51087) 2026-11-25 19:54:45 -08:00
huggingface refactor(types): give bare dict, list and tuple returns proven types in 133 files (#54321) 2026-11-25 01:30:02 +00:00
hyperbolic refactor(types): replace Unknown with proven types in 245 files (#53774) 2026-11-23 10:05:26 -08:00
inception refactor(types): replace Unknown with proven types in 390 files (#53715) 2026-11-24 03:33:11 +00:00
infinity refactor(types): replace Unknown with proven types in 162 more files (#54089) 2026-11-23 22:58:19 -08:00
jina_ai refactor(types): type the headers of the search and rerank validate_environment base methods and their provider overrides (#54727) 2026-11-26 17:51:16 +00:00
lambda_ai
langflow refactor(types): replace Unknown with proven types in 131 more files (#54045) 2026-11-24 04:55:42 +00:00
langgraph refactor(types): replace Unknown with proven types in 162 more files (#54089) 2026-11-23 22:58:19 -08:00
laya
lemonade refactor(types): give bare dict, list and tuple returns proven types in 133 files (#54321) 2026-11-25 01:30:02 +00:00
linkup refactor(types): replace Unknown with proven types in 390 files (#53715) 2026-11-24 03:33:11 +00:00
litellm_proxy refactor(types): give bare dict, list and set returns, locals and constants proven types in 77 files (#54343) 2026-11-25 03:47:36 +00:00
llamafile/chat
lm_studio refactor(types): replace Unknown with proven types in 86 files (#53803) 2026-11-24 12:45:20 +00:00
manus refactor(types): replace Unknown with proven types in 162 more files (#54089) 2026-11-23 22:58:19 -08:00
meta/realtime feat(elevenlabs): add scribe_v2_realtime realtime transcription (#48984) 2026-11-25 03:15:34 +00:00
meta_llama/chat refactor(types): replace Unknown with proven types in 131 more files (#54119) 2026-11-24 02:26:51 -08:00
microsoft_365_copilot
milvus/vector_stores refactor(types): type the headers of the shared Azure, Tencent and Vertex header helpers and the vector store and image edit validate_environment methods (#54747) 2026-11-26 21:16:25 +00:00
minimax refactor(types): type the headers of the shared Azure, Tencent and Vertex header helpers and the vector store and image edit validate_environment methods (#54747) 2026-11-26 21:16:25 +00:00
mistral refactor(types): give bare dict, list and set returns, locals and constants proven types in 77 files (#54343) 2026-11-25 03:47:36 +00:00
modelscope refactor(types): replace Unknown with proven types in 390 files (#53715) 2026-11-24 03:33:11 +00:00
mongodb refactor(types): replace Unknown with proven types in 390 files (#53715) 2026-11-24 03:33:11 +00:00
moonshot/chat chore(types): type optional_params and litellm_params as dict[str, object] across provider method families (#54175) 2026-11-24 14:40:37 +00:00
morph
nace/decisions feat(nace): add Drex Max decisions and inline images (#48426) 2026-11-12 21:27:37 -08:00
nadir/chat refactor(types): replace Unknown with proven types in 86 files (#53803) 2026-11-24 12:45:20 +00:00
nebius refactor(types): replace Unknown with proven types in 245 files (#53774) 2026-11-23 10:05:26 -08:00
nimble refactor(types): type the headers of the search and rerank validate_environment base methods and their provider overrides (#54727) 2026-11-26 17:51:16 +00:00
nlp_cloud refactor(types): give bare dict, list and set returns, locals and constants proven types in 77 files (#54343) 2026-11-25 03:47:36 +00:00
novita/chat refactor(types): give bare dict, list and set returns, locals and constants proven types in 77 files (#54343) 2026-11-25 03:47:36 +00:00
nscale/chat refactor(types): replace Unknown with proven types in 245 files (#53774) 2026-11-23 10:05:26 -08:00
nvidia_nim chore(types): type optional_params and litellm_params as dict[str, object] across provider method families (#54175) 2026-11-24 14:40:37 +00:00
nvidia_riva refactor(types): give bare dict headers parameters proven types in 118 files (#54154) 2026-11-24 12:22:34 +00:00
oci refactor(types): type bare dict data and request_data parameters across method families (#54192) 2026-11-24 08:39:27 -08:00
ollama fix(ollama): send model-info lookups to the call's api_base with its key and retry failed ones (#53830) 2026-11-24 08:51:25 -08:00
oobabooga refactor(types): replace Unknown with proven types in 390 files (#53715) 2026-11-24 03:33:11 +00:00
openai refactor(types): type the headers of the shared Azure, Tencent and Vertex header helpers and the vector store and image edit validate_environment methods (#54747) 2026-11-26 21:16:25 +00:00
openai_like refactor(types): type the json, headers and params of the shared HTTP client's request methods and their callers (#54743) 2026-11-26 20:16:27 +00:00
opencode refactor(types): replace Unknown with proven types in 390 files (#53715) 2026-11-24 03:33:11 +00:00
openrouter fix(openrouter): report the context window and output cap from OpenRouter's catalog (#54046) 2026-11-24 04:37:30 -08:00
opensandbox refactor(types): replace Unknown with proven types in 390 files (#53715) 2026-11-24 03:33:11 +00:00
opensearch feat(opensearch): map vector store search filters to k-NN filters and add hybrid search (#51131) 2026-11-14 03:30:55 +00:00
ovhcloud refactor(types): give bare dict, list and set returns, locals and constants proven types in 77 files (#54343) 2026-11-25 03:47:36 +00:00
parallel_ai refactor(types): replace Unknown with proven types in 82 more files (#53918) 2026-11-23 17:36:22 -08:00
pass_through refactor(types): replace Unknown with proven types in 390 files (#53715) 2026-11-24 03:33:11 +00:00
perplexity refactor(types): give bare dict, list and set returns, locals and constants proven types in 77 files (#54343) 2026-11-25 03:47:36 +00:00
petals refactor(types): give bare dict, list and set returns, locals and constants proven types in 77 files (#54343) 2026-11-25 03:47:36 +00:00
pg_vector/vector_stores refactor(types): give bare dict, list and tuple returns proven types in 133 files (#54321) 2026-11-25 01:30:02 +00:00
pi refactor(types): replace Unknown with proven types in 245 files (#53774) 2026-11-23 10:05:26 -08:00
predibase chore(types): type optional_params and litellm_params as dict[str, object] across provider method families (#54175) 2026-11-24 14:40:37 +00:00
ragflow refactor(types): give bare dict, list and set returns, locals and constants proven types in 77 files (#54343) 2026-11-25 03:47:36 +00:00
recraft refactor(types): replace Unknown with proven types in 131 more files (#54119) 2026-11-24 02:26:51 -08:00
reducto
replicate refactor(types): replace Unknown with proven types in 131 more files (#54119) 2026-11-24 02:26:51 -08:00
runwayml refactor(types): give bare dict headers parameters proven types in 118 files (#54154) 2026-11-24 12:22:34 +00:00
s3_vectors chore(types): type optional_params and litellm_params as dict[str, object] across provider method families (#54175) 2026-11-24 14:40:37 +00:00
sagemaker refactor(types): type the json, headers and params of the shared HTTP client's request methods and their callers (#54743) 2026-11-26 20:16:27 +00:00
sail refactor(types): replace Unknown with proven types in 131 more files (#54045) 2026-11-24 04:55:42 +00:00
sambanova refactor(types): give bare dict, list and set returns, locals and constants proven types in 77 files (#54343) 2026-11-25 03:47:36 +00:00
sap refactor(typing): clear 102 basedpyright Any errors across 21 files (#54586) 2026-11-25 19:03:46 -08:00
scaledown
scaleway refactor(types): type the headers of the search and rerank validate_environment base methods and their provider overrides (#54727) 2026-11-26 17:51:16 +00:00
searchapi refactor(types): type the headers of the search and rerank validate_environment base methods and their provider overrides (#54727) 2026-11-26 17:51:16 +00:00
searxng refactor(types): replace Unknown with proven types in 162 more files (#54089) 2026-11-23 22:58:19 -08:00
serper/search refactor(types): replace Unknown with proven types in 162 more files (#54089) 2026-11-23 22:58:19 -08:00
snowflake refactor(types): give bare dict, list and tuple returns proven types in 133 files (#54321) 2026-11-25 01:30:02 +00:00
soniox feat(gnani): add Prisma v2.5 and v3.0 realtime transcription (#53828) 2026-11-25 10:51:59 +00:00
stability refactor(types): give bare dict, list and set returns, locals and constants proven types in 77 files (#54343) 2026-11-25 03:47:36 +00:00
strands_decider/decisions
tavily/search refactor(types): type the headers of the search and rerank validate_environment base methods and their provider overrides (#54727) 2026-11-26 17:51:16 +00:00
tencent refactor(types): type the headers of the shared Azure, Tencent and Vertex header helpers and the vector store and image edit validate_environment methods (#54747) 2026-11-26 21:16:25 +00:00
tinyfish/search refactor(types): type the headers of the search and rerank validate_environment base methods and their provider overrides (#54727) 2026-11-26 17:51:16 +00:00
together_ai refactor(types): replace Unknown with proven types in 390 files (#53715) 2026-11-24 03:33:11 +00:00
tool_loop
topaz refactor(types): give bare dict, list and set returns, locals and constants proven types in 77 files (#54343) 2026-11-25 03:47:36 +00:00
triton refactor(types): replace Unknown with proven types in 162 more files (#54089) 2026-11-23 22:58:19 -08:00
typesafe/decisions fix(decisions): accept OpenAI input_json content parts on /v1/decisions (#52805) 2026-11-20 13:33:36 -08:00
v0 refactor(types): replace Unknown with proven types in 245 files (#53774) 2026-11-23 10:05:26 -08:00
valkey refactor(types): replace Unknown with proven types in 131 more files (#54119) 2026-11-24 02:26:51 -08:00
vercel_ai_gateway refactor(types): give bare dict, list and set returns, locals and constants proven types in 77 files (#54343) 2026-11-25 03:47:36 +00:00
vertex_ai refactor: build Datadog and rerank request headers without mutation (#54830) 2026-11-27 08:19:33 +00:00
vllm refactor(types): give bare dict headers parameters proven types in 118 files (#54154) 2026-11-24 12:22:34 +00:00
volcengine feat(volcengine): add Ark Seedream image generation, editing, and pricing (#54076) 2026-11-26 07:52:44 +00:00
voyage refactor(types): type the headers of the search and rerank validate_environment base methods and their provider overrides (#54727) 2026-11-26 17:51:16 +00:00
wandb refactor(types): replace Unknown with proven types in 162 more files (#54089) 2026-11-23 22:58:19 -08:00
watsonx refactor(types): give bare dict, list and set returns, locals and constants proven types in 77 files (#54343) 2026-11-25 03:47:36 +00:00
webiq refactor(types): type the headers of the search and rerank validate_environment base methods and their provider overrides (#54727) 2026-11-26 17:51:16 +00:00
xai refactor(types): type the headers of the search and rerank validate_environment base methods and their provider overrides (#54727) 2026-11-26 17:51:16 +00:00
xinference/image_generation refactor(types): replace Unknown with proven types in 131 more files (#54045) 2026-11-24 04:55:42 +00:00
you_com refactor(types): give bare dict, list and set returns, locals and constants proven types in 77 files (#54343) 2026-11-25 03:47:36 +00:00
zai fix(zai): accept reasoning_effort so /v1/messages thinking reaches GLM models (#54279) 2026-11-25 04:56:45 +00:00
__init__.py fix(vertex_ai): bill Claude web search per request on deployments priced in model_info (#49160) 2026-10-30 23:14:51 -07:00
base.py refactor(types): replace Unknown with proven types in 390 files (#53715) 2026-11-24 03:33:11 +00:00
compaction.py refactor(router): route the router family through RoutingContext and close the outside surface (#49118) 2026-10-30 19:18:54 -07:00
custom_llm.py refactor(types): replace Unknown with proven types in 225 files (#53687) 2026-11-24 00:11:50 +00:00
maritalk.py refactor(types): replace Unknown with proven types in 86 files (#53803) 2026-11-24 12:45:20 +00:00
oss_decision.py
README.md
subscription_accounts.py feat(usage): show subscription-covered providers and account fees separately (#44772) 2026-10-30 03:58:36 -07:00

File Structure

August 27th, 2024

To make it easy to see how calls are transformed for each model/provider:

we are working on moving all supported litellm providers to a folder structure, where folder name is the supported litellm provider name.

Each folder will contain a *_transformation.py file, which has all the request/response transformation logic, making it easy to see how calls are modified.

E.g. cohere/, bedrock/.