litellm/tests/unit/llms
kenneth-berri 1b207c9b37
fix(embeddings): send request-shaped extra_body fields at the provider's documented path (#54273)
* fix(embeddings): send extra_body fields at the documented path for Marengo 3, SageMaker Cohere, Vertex and Gemini

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

* refactor(bedrock): strip Marengo 3 placed fields from modelInput without recursion

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

* fix(embeddings): keep extra_body items aligned on partial cache hits, merge nested item settings, keep Cohere image type

* fix(caching): send the cut-down extra_body items with the uncached embedding inputs

* fix(caching): key the embedding cache write on the caller's extra_body after a partial hit

* fix(caching): key each cached embedding on the extra_body item written for its input

* fix(embeddings): let a per-input extra_body item win over a shared field and keep per-input caching to Vertex and Gemini

* fix(gemini): keep a shared extra_body config beside the config of one request

* fix(gemini): resolve each request's extra_body settings before the named params and the video check read them

* refactor(gemini): build each embed request in a typed helper and annotate the new cache tests

* test(caching): script Gemini with respx instead of replacing get_async_httpx_client

* test(caching): annotate the locals and embedder parameters of the per-input cache tests

* test(vertex): cover the fine-tuned endpoint in the request-shaped extra_body regression

---------

Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
2026-11-25 13:29:52 -08:00
..
a2a
aiml
aiohttp_openai
anthropic fix(anthropic): map /v1/messages fields onto OpenAI Responses equivalents or reject them (#54173) 2026-11-25 19:30:01 +00:00
apiserpent
aws_polly
azure fix(router,files,batches)!: never resend a file or batch create the provider may already have (#51315) 2026-11-25 07:20:51 +00:00
azure_ai fix(responses): reject an unresolvable previous_response_id on the chat completions bridge (#53766) 2026-11-25 13:32:42 +00:00
base_llm fix(streaming): keep streamed usage when SSE lines without data precede the usage event (#54052) 2026-11-25 20:31:21 +00:00
baseten
bedrock fix(embeddings): send request-shaped extra_body fields at the provider's documented path (#54273) 2026-11-25 13:29:52 -08: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
bigmodel fix(responses): preserve incomplete status in synthetic streams (#52489) 2026-11-19 22:24:50 -08:00
black_forest_labs
brave
bytez
cerebras
chat
chatgpt refactor(typing): clear 1146 basedpyright Any errors across 365 files (#52768) 2026-11-21 04:25:33 +00:00
clarifai
claude_code
clf_ai_gateway
cloudflare
codestral
codex
cohere fix(cohere)!: map tool_choice, reasoning_effort and json_schema response_format on the v2 chat route (#50834) 2026-11-17 18:10:37 +00:00
cometapi
compactifai
crusoe
custom_httpx fix(router,files,batches)!: never resend a file or batch create the provider may already have (#51315) 2026-11-25 07:20:51 +00:00
dashscope refactor(cost): price generic_cost_per_token with the native calculate (#52816) 2026-11-23 22:00:27 +00:00
databricks fix(streaming): keep streamed usage when SSE lines without data precede the usage event (#54052) 2026-11-25 20:31:21 +00:00
dataforseo
datarobot
deepagents
deepgram
deepinfra
deepseek fix(token_counter): count an Anthropic fallback block as zero on every count route (#54006) 2026-11-24 03:32:34 -08:00
docker_model_runner
duckduckgo
e2b
edenai
elevenlabs feat(elevenlabs): add scribe_v2_realtime realtime transcription (#48984) 2026-11-25 03:15:34 +00:00
empiriolabs
exa_ai
fal_ai fix(cost-map): price eight-second Pixverse clips (#52107) 2026-11-16 12:49:55 -08:00
fastcrw
featherless_ai
firecrawl
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
gdc
gemini fix(gemini): return an error instead of an empty 200 when a Gemini image request gets no image (#29125) 2026-11-25 20:55:23 +00:00
gigachat
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
gradient_ai
gradium feat(gradium): add text-to-speech support for /v1/audio/speech (#46427) 2026-11-21 23:51:27 +00:00
groq fix(groq): default service_tier when the reply omits it (#52431) 2026-11-18 13:17:14 -08:00
heroku
hosted_vllm fix(llms): send later system messages as user turns for models declared system-first (#54347) 2026-11-25 11:48:27 +00:00
huggingface
hyperbolic
inception
infinity
jina_ai fix(rerank): preserve provider usage and reported costs (#53893) 2026-11-23 19:59:34 -08:00
lambda_ai
langflow
langgraph
laya
lemonade 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
linkup
litellm_proxy
llamafile
lm_studio
manus
meta
meta_llama
microsoft_365_copilot
milvus
minimax feat(minimax): add MiniMax-H3-Image generation and edit support (#50881) 2026-11-24 05:54:43 +00:00
mistral fix(mistral): drop message fields Mistral rejects when drop_params is on (#53962) 2026-11-24 02:33:58 +00:00
modelscope
mongodb fix(exceptions): keep the provider error body on e.response for SDK callers (#53587) 2026-11-23 07:23:53 +00:00
moonshot feat(moonshot): add Kimi K3 and Together AI Inkling model support (#33922) 2026-11-18 16:26:14 +00:00
morph
nadir
nebius
neosantara
nimble
nlp_cloud
novita
nscale
nvidia_nim fix(nvidia_nim): forward logprobs and top_logprobs to NIM models that serve them (#54008) 2026-11-23 22:18:59 -08:00
nvidia_riva
oci fix(mcp): drop hosted MCP tool_choice under drop_params and honor drop_params in Bedrock batch rows (#53697) 2026-11-23 08:51:59 -08:00
ocr
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
openai fix(anthropic): map /v1/messages fields onto OpenAI Responses equivalents or reject them (#54173) 2026-11-25 19:30:01 +00:00
openai_like feat(huawei_maas): add Huawei Cloud MaaS provider and cost map rows (#54225) 2026-11-24 18:24:05 -08:00
opencode fix(anthropic)!: send extra_body fields at the top level of the Messages request (#48373) 2026-11-20 06:52:56 -08: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
opensearch
ovhcloud
parallel_ai
parasail
pass_through
perplexity fix(perplexity): let every Agent API model take chat tools unless the cost map says no (#54047) 2026-11-24 05:46:28 +00:00
pg_vector
pi fix(harness): surface Pi context compaction events (#52655) 2026-11-18 13:52:03 -08:00
publicai
ragflow
recraft
reducto 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
replicate refactor: share Replicate HTTP client factories and declare PagerDuty type alias (#51594) 2026-11-17 02:32:54 +00:00
runwayml
s3_vectors
sagemaker fix(embeddings): send request-shaped extra_body fields at the provider's documented path (#54273) 2026-11-25 13:29:52 -08:00
sail
sambanova
sap fix(sap): token cache (#49260) 2026-11-23 06:03:52 +00:00
scaledown
scaleway fix(rerank): preserve provider usage and reported costs (#53893) 2026-11-23 19:59:34 -08:00
searchapi
searxng
serper
snowflake fix(anthropic): skip a stream data line that is not a JSON object (#53393) 2026-11-22 22:54:02 +00:00
soniox
stability
strands_decider
tavily
tencent
tinyfish
together_ai fix(together_ai): declare reasoning_effort_levels on Kimi-K3.1-Pro so max is not sent as high (#52294) 2026-11-17 08:20:41 -08:00
tool_loop
topaz
triton
v0
valkey
vercel_ai_gateway
vertex_ai fix(embeddings): send request-shaped extra_body fields at the provider's documented path (#54273) 2026-11-25 13:29:52 -08:00
vllm
volcengine fix(proxy): forward limit, order, after, before and include on GET /v1/responses/{id}/input_items (#51259) 2026-11-20 07:54:26 -08:00
voyage fix(voyage): honor VOYAGE_API_BASE for embeddings (#52645) 2026-11-18 14:38:57 -08:00
wandb
watsonx fix(openai_like): honor the deployment timeout and stream_timeout on async streams (#53442) 2026-11-22 21:52:59 +00:00
webiq
xai
xinference
you_com
zai fix(zai): accept reasoning_effort so /v1/messages thinking reaches GLM models (#54279) 2026-11-25 04:56:45 +00:00
__init__.py
test_api_base_trailing_slash_routes.py
test_cache_control_and_reasoning.py
test_custom_llm.py
test_file_content_block.py
test_file_search_responses.py
test_get_complete_url_trailing_slash.py feat(elevenlabs): add scribe_v2_realtime realtime transcription (#48984) 2026-11-25 03:15:34 +00:00
test_lifecycle_fix.py
test_oss_decision.py
test_polling_url_origin_match.py
test_predibase_transformation.py
test_subscription_accounts.py