litellm/litellm/llms
devin-ai-integration[bot] d364d5e7ca
refactor: expose public hidden_params accessors (#44668)
* refactor: expose public hidden_params accessors

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>

* fix: keep hidden params writes on duck-typed responses

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>

* refactor: move hidden params helpers to core utils

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>

* fix: preserve hidden params in duck-typed cost responses

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>

* test: cover hidden params accessors across response types

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>

* fix: preserve hidden params for dynamic responses

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>

* fix: expose logs through backend component

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>

* Revert "fix: expose logs through backend component"

This reverts commit 621e5ff25e.

* test: cover dict hidden params helper path

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>

* fix: preserve hidden params storage on item writes

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>

* test: cover hidden params accessors for OpenAI types

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>

* test: cover hidden params helper and response paths

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>

* fix: complete hidden params accessor migration

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>

* fix(litellm): tighten hidden parameter validation

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>

* fix(litellm): read HiddenParams model storage through get_hidden_params

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>

* fix(litellm): transfer hidden params storage instead of the mapping view

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>

* fix(litellm): expose only set HiddenParams keys through the mapping view

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>

* perf(litellm): read HiddenParams view keys without dumping the model

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>

* test(litellm): assert HiddenParams extras through model_extra

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>

* fix(router): copy streaming hidden params into a plain dict

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>

---------

Co-authored-by: mateo <mateo@berri.ai>
Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
2026-10-07 00:01:33 -07:00
..
a2a refactor(types): replace Any with proven types in 137 files (#44478) 2026-10-05 11:01:45 -07:00
ai21/chat
aiml refactor(types): replace Any with proven types in 157 files (#44798) 2026-10-06 15:31:54 +00:00
aiohttp_openai/chat refactor(types): replace Any with proven types in 137 files (#44478) 2026-10-05 11:01:45 -07:00
amazon_nova feat(tokenizer): preserve Python defaults with opt-in Rust dispatch (#42174) 2026-09-22 04:41:11 +00:00
anthropic refactor: expose public hidden_params accessors (#44668) 2026-10-07 00:01:33 -07:00
apiserpent
aws_polly refactor(typing): replace Any with proven types in 89 more backend files 2026-09-02 23:08:42 +00:00
azure refactor: expose public hidden_params accessors (#44668) 2026-10-07 00:01:33 -07:00
azure_ai refactor: expose public hidden_params accessors (#44668) 2026-10-07 00:01:33 -07:00
base_llm refactor: expose public hidden_params accessors (#44668) 2026-10-07 00:01:33 -07:00
baseten
bedrock refactor: expose public hidden_params accessors (#44668) 2026-10-07 00:01:33 -07:00
bedrock_mantle fix(health): probe Bedrock Mantle Claude deployments over the Anthropic Messages API (#44419) 2026-10-03 17:05:47 -07:00
black_forest_labs refactor(types): replace Any with proven types in 137 files (#44478) 2026-10-05 11:01:45 -07:00
brave/search feat(tokenizer): preserve Python defaults with opt-in Rust dispatch (#42174) 2026-09-22 04:41:11 +00:00
bytez refactor: expose public hidden_params accessors (#44668) 2026-10-07 00:01:33 -07:00
cerebras fix(cerebras): add max_retries and extra_headers to get_supported_openai_params (#36601) 2026-08-25 14:10:56 -07:00
chatgpt refactor: expose public hidden_params accessors (#44668) 2026-10-07 00:01:33 -07:00
clarifai/chat refactor(types): replace Any with proven types in 137 files (#44478) 2026-10-05 11:01:45 -07:00
claude_code refactor(types): replace Any with proven types in 137 files (#44478) 2026-10-05 11:01:45 -07:00
cloudflare feat(decisions): add unified /v1/decisions endpoint for Jev-compatible providers (#44236) 2026-10-03 17:38:38 +00:00
codestral/completion refactor: expose core private helpers under public names (#44871) 2026-10-07 00:05:27 +00:00
codex refactor(types): replace Any with proven types in 157 files (#44798) 2026-10-06 15:31:54 +00:00
cohere refactor(types): replace Any with proven types in 137 files (#44478) 2026-10-05 11:01:45 -07:00
cometapi refactor(types): replace Any with proven types in 157 files (#44798) 2026-10-06 15:31:54 +00:00
compactifai feat(tokenizer): preserve Python defaults with opt-in Rust dispatch (#42174) 2026-09-22 04:41:11 +00:00
custom_httpx refactor: expose core private helpers under public names (#44871) 2026-10-07 00:05:27 +00:00
dashscope refactor(types): replace Any with proven types in 157 files (#44798) 2026-10-06 15:31:54 +00:00
databricks refactor: expose core private helpers under public names (#44871) 2026-10-07 00:05:27 +00:00
dataforseo/search refactor(typing): replace Any with proven types in 42 more backend files 2026-09-02 15:35:01 +00:00
datarobot/chat
deepagents refactor(types): replace Any with proven types in 137 files (#44478) 2026-10-05 11:01:45 -07:00
deepgram refactor: expose public hidden_params accessors (#44668) 2026-10-07 00:01:33 -07:00
deepinfra refactor: expose public hidden_params accessors (#44668) 2026-10-07 00:01:33 -07:00
deepseek refactor(types): replace Any with proven types in 157 files (#44798) 2026-10-06 15:31:54 +00:00
deprecated_providers feat(tokenizer): preserve Python defaults with opt-in Rust dispatch (#42174) 2026-09-22 04:41:11 +00:00
docker_model_runner/chat refactor(types): replace Any with proven types in 157 files (#44798) 2026-10-06 15:31:54 +00:00
duckduckgo/search
e2b refactor: expose public hidden_params accessors (#44668) 2026-10-07 00:01:33 -07:00
edenai perf(types): defer pydantic schema builds via shared LiteLLMBaseModel (#44720) 2026-10-05 22:10:08 -07:00
elevenlabs refactor: expose public hidden_params accessors (#44668) 2026-10-07 00:01:33 -07:00
empower/chat
exa_ai/search fix(exa): fall back to highlights/summary when text is missing (#42213) 2026-10-02 14:15:15 -07:00
fal_ai refactor: expose public hidden_params accessors (#44668) 2026-10-07 00:01:33 -07:00
fastcrw
featherless_ai/chat
firecrawl
fireworks_ai refactor: expose public hidden_params accessors (#44668) 2026-10-07 00:01:33 -07:00
friendliai/chat
galadriel/chat
gdc refactor(types): replace Any with real types across 29 more backend files 2026-09-08 10:14:07 +00:00
gemini refactor: expose public hidden_params accessors (#44668) 2026-10-07 00:01:33 -07:00
gigachat refactor(types): replace Any with proven types in 137 files (#44478) 2026-10-05 11:01:45 -07:00
github/chat
github_copilot refactor: expose core private helpers under public names (#44871) 2026-10-07 00:05:27 +00:00
google_pse/search
gradient_ai/chat
groq refactor(types): replace Any with proven types in 157 files (#44798) 2026-10-06 15:31:54 +00:00
heroku/chat refactor(types): replace Any with proven types in 157 files (#44798) 2026-10-06 15:31:54 +00:00
hosted_vllm refactor: expose core private helpers under public names (#44871) 2026-10-07 00:05:27 +00:00
huggingface refactor: expose public hidden_params accessors (#44668) 2026-10-07 00:01:33 -07:00
hyperbolic
inception
infinity Merge remote-tracking branch 'origin/litellm_internal_staging' into litellm_decrease_anys_opus5 2026-08-29 06:03:33 -07:00
jina_ai refactor(types): replace Any with proven types in 137 files (#44478) 2026-10-05 11:01:45 -07:00
lambda_ai
langflow refactor(types): replace Any with proven types in 157 files (#44798) 2026-10-06 15:31:54 +00:00
langgraph refactor(types): replace Any with proven types in 157 files (#44798) 2026-10-06 15:31:54 +00:00
laya perf(types): defer pydantic schema builds via shared LiteLLMBaseModel (#44720) 2026-10-05 22:10:08 -07:00
lemonade feat(tokenizer): preserve Python defaults with opt-in Rust dispatch (#42174) 2026-09-22 04:41:11 +00:00
linkup
litellm_proxy refactor(types): replace Any with proven types in 157 files (#44798) 2026-10-06 15:31:54 +00:00
llamafile/chat
lm_studio
manus refactor: expose public hidden_params accessors (#44668) 2026-10-07 00:01:33 -07:00
meta/realtime chore(lint): remove the LIT002 mutable-construction rule (#43971) 2026-10-01 12:24:02 -07:00
meta_llama/chat
milvus/vector_stores refactor(s3_vectors): embed search queries through the shared vector store executor 2026-09-02 19:26:31 -07:00
minimax refactor(types): replace Any with proven types in 137 files (#44478) 2026-10-05 11:01:45 -07:00
mistral refactor: expose public hidden_params accessors (#44668) 2026-10-07 00:01:33 -07:00
modelscope refactor(types): replace Any with proven types in 157 files (#44798) 2026-10-06 15:31:54 +00:00
mongodb perf(types): defer pydantic schema builds via shared LiteLLMBaseModel (#44720) 2026-10-05 22:10:08 -07:00
moonshot/chat refactor(types): replace Any with proven types in 157 files (#44798) 2026-10-06 15:31:54 +00:00
morph
nadir/chat chore(lint): remove the LIT002 mutable-construction rule (#43971) 2026-10-01 12:24:02 -07:00
nebius
nimble perf(types): defer pydantic schema builds via shared LiteLLMBaseModel (#44720) 2026-10-05 22:10:08 -07:00
nlp_cloud feat(tokenizer): preserve Python defaults with opt-in Rust dispatch (#42174) 2026-09-22 04:41:11 +00:00
novita/chat
nscale/chat
nvidia_nim refactor(types): replace Any with proven types in 137 files (#44478) 2026-10-05 11:01:45 -07:00
nvidia_riva refactor(types): replace Any with proven types in 157 files (#44798) 2026-10-06 15:31:54 +00:00
oci refactor: expose public hidden_params accessors (#44668) 2026-10-07 00:01:33 -07:00
ollama refactor: expose core private helpers under public names (#44871) 2026-10-07 00:05:27 +00:00
oobabooga feat(tokenizer): preserve Python defaults with opt-in Rust dispatch (#42174) 2026-09-22 04:41:11 +00:00
openai refactor: expose public hidden_params accessors (#44668) 2026-10-07 00:01:33 -07:00
openai_like refactor: expose public hidden_params accessors (#44668) 2026-10-07 00:01:33 -07:00
opencode refactor(types): replace Any with proven types in 157 files (#44798) 2026-10-06 15:31:54 +00:00
openrouter refactor: expose public hidden_params accessors (#44668) 2026-10-07 00:01:33 -07:00
opensandbox refactor: expose public hidden_params accessors (#44668) 2026-10-07 00:01:33 -07:00
ovhcloud refactor: expose public hidden_params accessors (#44668) 2026-10-07 00:01:33 -07:00
parallel_ai/search perf(types): defer pydantic schema builds via shared LiteLLMBaseModel (#44720) 2026-10-05 22:10:08 -07:00
pass_through refactor(typing): replace Any with proven types in 42 more backend files 2026-09-02 15:35:01 +00:00
perplexity feat(decisions): add unified /v1/decisions endpoint for Jev-compatible providers (#44236) 2026-10-03 17:38:38 +00:00
petals feat(tokenizer): preserve Python defaults with opt-in Rust dispatch (#42174) 2026-09-22 04:41:11 +00:00
pg_vector/vector_stores refactor(s3_vectors): embed search queries through the shared vector store executor 2026-09-02 19:26:31 -07:00
predibase refactor: expose public hidden_params accessors (#44668) 2026-10-07 00:01:33 -07:00
ragflow Merge remote-tracking branch 'origin/litellm_internal_staging' into litellm_decrease_anys_opus5_r4 2026-09-03 06:44:40 +00:00
recraft refactor(types): replace Any with proven types in 157 files (#44798) 2026-10-06 15:31:54 +00:00
reducto refactor(ocr): remove the Python OCR execution path and require the Rust route (#43081) 2026-09-24 18:18:50 -07:00
replicate refactor(types): replace Any with proven types in 137 files (#44478) 2026-10-05 11:01:45 -07:00
runwayml refactor(types): replace Any with proven types in 157 files (#44798) 2026-10-06 15:31:54 +00:00
s3_vectors fix(s3_vectors): embed registered-store ingests with the store's embedding model 2026-09-19 04:31:15 -07:00
sagemaker refactor: expose core private helpers under public names (#44871) 2026-10-07 00:05:27 +00:00
sail chore(lint): remove the LIT002 mutable-construction rule (#43971) 2026-10-01 12:24:02 -07:00
sambanova refactor(types): replace Any with proven types in 157 files (#44798) 2026-10-06 15:31:54 +00:00
sap fix(sap): correctly handle cache_control (#39122) 2026-10-06 08:54:06 -07:00
scaleway refactor: expose public hidden_params accessors (#44668) 2026-10-07 00:01:33 -07:00
searchapi
searxng
serper/search
snowflake refactor: expose public hidden_params accessors (#44668) 2026-10-07 00:01:33 -07:00
soniox refactor: expose public hidden_params accessors (#44668) 2026-10-07 00:01:33 -07:00
stability refactor: expose public hidden_params accessors (#44668) 2026-10-07 00:01:33 -07:00
strands_decider/decisions feat(decisions): add unified /v1/decisions endpoint for Jev-compatible providers (#44236) 2026-10-03 17:38:38 +00:00
tavily/search
tencent refactor(anthropic): rename experimental_pass_through to pass_through (#43329) 2026-09-26 13:00:50 -07:00
tinyfish/search refactor(types): replace Any with proven types in 137 files (#44478) 2026-10-05 11:01:45 -07:00
together_ai refactor(types): replace Any with proven types in 137 files (#44478) 2026-10-05 11:01:45 -07:00
tool_loop feat(harness): add Harness.TOOL_LOOP, a minimal in-process tool-calling loop (#44391) 2026-10-03 17:33:01 +00:00
topaz feat(tokenizer): preserve Python defaults with opt-in Rust dispatch (#42174) 2026-09-22 04:41:11 +00:00
triton feat(tokenizer): preserve Python defaults with opt-in Rust dispatch (#42174) 2026-09-22 04:41:11 +00:00
typesafe/decisions feat(decisions): add unified /v1/decisions endpoint for Jev-compatible providers (#44236) 2026-10-03 17:38:38 +00:00
v0
valkey perf(types): defer pydantic schema builds via shared LiteLLMBaseModel (#44720) 2026-10-05 22:10:08 -07:00
vercel_ai_gateway refactor: daily fresh tech debt cleanup, rolling PR (#42710) 2026-09-24 04:17:23 -07:00
vertex_ai refactor: expose public hidden_params accessors (#44668) 2026-10-07 00:01:33 -07:00
vllm refactor: expose core private helpers under public names (#44871) 2026-10-07 00:05:27 +00:00
volcengine refactor: expose public hidden_params accessors (#44668) 2026-10-07 00:01:33 -07:00
voyage refactor(types): replace Any with proven types in 137 files (#44478) 2026-10-05 11:01:45 -07:00
wandb chore(lint): remove the LIT002 mutable-construction rule (#43971) 2026-10-01 12:24:02 -07:00
watsonx refactor: expose core private helpers under public names (#44871) 2026-10-07 00:05:27 +00:00
xai refactor(types): replace Any with proven types in 157 files (#44798) 2026-10-06 15:31:54 +00:00
xinference/image_generation
you_com
zai
__init__.py fix(gemini): bill Google Maps grounding as its own SKU 2026-08-26 15:31:27 -07:00
base.py refactor(types): replace Any with real types across 178 backend files 2026-08-27 10:14:58 +00:00
compaction.py feat(router): native compact-to-fit across conversation APIs (#42074) 2026-09-21 22:52:29 -07:00
custom_llm.py refactor(types): replace Any with real types across 178 backend files 2026-08-27 10:14:58 +00:00
maritalk.py
oss_decision.py feat: add Bespoke Nimble gateway and OSS classifier support (#44246) 2026-10-02 19:37:08 -07:00
README.md

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/.