litellm/tests/test_litellm/llms
Giulio Leone 1c3787264b
fix(bedrock): strip output_config from Bedrock Invoke requests (#23042)
* fix(bedrock): strip output_config from Bedrock Invoke requests

Bedrock Invoke API does not support the output_config parameter
(added to Anthropic Messages API). Requests with output_config cause
400 errors: 'extraneous key [output_config] is not permitted'.

Strip output_config in both Bedrock Invoke transformation layers
(messages and chat), consistent with how output_format is already
handled and how VertexAI strips both parameters.

Fixes: https://github.com/BerriAI/litellm/issues/22797

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* test(bedrock): add output_config test for chat/invoke path

Addresses review feedback — the chat/invoke_transformations path now has
symmetric test coverage matching the messages/invoke_transformations path.

Fixes: https://github.com/BerriAI/litellm/issues/22797

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

---------

Co-authored-by: giulio-leone <6887247+giulio-leone@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-03-07 19:33:53 -08:00
..
amazon_nova/chat
anthropic fix(proxy): do not forward Authorization header to LLM provider when used for LiteLLM proxy auth 2026-03-06 18:20:48 +05:30
azure Exclude aresponses_websocket from Azure SDK client init test 2026-03-04 11:13:57 -03:00
azure_ai feat(azure_ai): add router flat cost when response contains actual model 2026-03-06 18:18:06 +05:30
baseten/chat
bedrock fix(bedrock): strip output_config from Bedrock Invoke requests (#23042) 2026-03-07 19:33:53 -08:00
bedrock_mantle feat(provider): add Amazon Bedrock Mantle as a first-class provider 2026-03-05 00:03:40 -05:00
bytez/chat
chat test(bedrock): add unit tests for region extraction from bedrock/{region}/{model} path 2026-03-02 11:06:27 +05:30
chatgpt test(chatgpt): restore gpt-5.2 codex transformation coverage 2026-03-05 17:00:49 -05:00
cohere
cometapi/chat
compactifai
custom_httpx [Release Fix] (#22411) 2026-02-28 09:46:35 -08:00
dashscope fix: remove list-to-str transformation from dashscope 2026-02-19 07:30:13 +00:00
databricks Address Greptile review: fix SDK auth fallback and remove unused imports 2026-02-18 15:57:50 +09:00
datarobot
deepgram
deepinfra
docker_model_runner
featherless_ai/chat fix(tests): use monkeypatch for env var isolation in featherless tests 2026-03-01 23:46:15 +01:00
fireworks_ai
gemini
github_copilot
heroku
hosted_vllm CircleCI test stability (#23055) 2026-03-07 15:19:39 -08:00
huggingface fix: improve test isolation for parallel execution 2026-02-17 21:28:23 -03:00
jina_ai/embedding
lemonade
litellm_proxy/chat
llamafile/chat
lm_studio
manus
meta_llama fix: add missing OpenAI chat completion params to OPENAI_CHAT_COMPLETION_PARAMS (#21360) 2026-02-16 20:31:21 -08:00
minimax
mistral
moonshot fix(moonshot): preserve image_url blocks in multimodal messages 2026-02-19 16:44:38 -03:00
nebius
novita/chat
nscale/chat
oci/chat
ocr Add OCR guardrail_translation handler and support (#22145) 2026-02-28 17:39:36 -08:00
ollama fix(ollama): thread api_base to get_model_info + graceful fallback (#21970) 2026-02-23 21:00:37 -08:00
openai feat(openai): drop reasoning_effort for gpt-5.4 when tools present 2026-03-06 22:20:47 +05:30
openai_like fix(proxy): fix master key rotation Prisma validation errors (#21330) 2026-02-16 15:13:05 -08:00
openrouter CircleCI test stability (#23055) 2026-03-07 15:19:39 -08:00
ovhcloud
perplexity feat(perplexity): add embedding support for pplx-embed-v1 models (#22610) 2026-03-02 17:37:50 -08:00
pg_vector/vector_stores
publicai fix: add missing OpenAI chat completion params to OPENAI_CHAT_COMPLETION_PARAMS (#21360) 2026-02-16 20:31:21 -08:00
ragflow/chat
recraft
runwayml
s3_vectors
sagemaker
sambanova
sap fix(sap provider layer): enable response-format for anthropic models and improve compatibility for GPT models via LangChain (#22804) 2026-03-04 16:03:59 -08:00
snowflake
stability
vercel_ai_gateway
vertex_ai revert: undo PR #22589 and follow-up vertex anyOf fixes (#23083) 2026-03-07 17:49:49 -08:00
volcengine
voyage/rerank
wandb
watsonx [Release Fix] (#22411) 2026-02-28 09:46:35 -08:00
xai
zai
test_cache_control_and_reasoning.py
test_lifecycle_fix.py
test_oom_fixes.py