litellm/tests/unit/llms/ollama
kenneth-berri effcb0705f
fix(embeddings): unwrap extra_body for providers with their own embedding handlers (#51335)
* fix(embeddings): unwrap extra_body for providers with their own embedding handlers

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

* fix(embeddings): unwrap extra_body in get_optional_params_embeddings and keep lint gates flat

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

* fix(embeddings): let mapped params win over extra_body and drop the unused merge helper

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

* fix(embeddings): merge extra_body into the provider body after each native embedding transform

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

* fix(embeddings): let the transformed body win over extra_body so input and mapped params cannot be replaced

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

* fix(embeddings): sign the Bedrock body that is sent and align the shared handler so extra_body never replaces the input

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

* fix(embeddings): keep the shared handler's extra_body precedence, the router batch limit relies on extra_body.input

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

---------

Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
2026-11-12 15:41:50 -08:00
..
__init__.py
test_ollama_chat_transformation.py refactor(typing): clear 1141 basedpyright Any errors across 182 files (#50711) 2026-11-11 22:11:47 +00:00
test_ollama_completion_transformation.py fix(mcp)!: answer 400 for a hosted MCP tool a translated route cannot run, drop it under drop_params (#48931) 2026-11-02 13:13:03 -08:00
test_ollama_embedding.py fix(embeddings): unwrap extra_body for providers with their own embedding handlers (#51335) 2026-11-12 15:41:50 -08:00
test_ollama_model_info.py
test_ollama_text_completion.py test: migrate local_testing SDK and provider tests out of build_and_test (#45760) 2026-10-10 23:14:25 +00:00