litellm/tests/litellm
Darien Kindlund 46751ad83e fix(anthropic): coerce explicit additionalProperties to false in output_format schema
Anthropic's structured outputs reject any `additionalProperties` value other
than `false` ("output_format.schema: For 'object' type, 'additionalProperties:
true' is not supported. Please set 'additionalProperties' to false")

`filter_anthropic_output_schema` only added the key when it was absent, so an
explicit `true` (or a sub-schema) was copied verbatim into output_format.schema
and 400'd. Coerce it for object schemas instead, at every recursion depth,
matching what the Anthropic Python/TypeScript SDKs do

The permissive tool-use path (map_response_format_to_anthropic_tool, used for
vertex_ai) is deliberately left alone

Fixes #35808
2026-08-04 16:21:47 -04:00
..
a2a_protocol/providers/pydantic_ai_agents fix(a2a): forward agent_extra_headers through completion bridge (#28277) 2026-06-11 21:56:18 -07:00
integrations/helicone style: run black formatter on files from main merge 2026-04-17 13:02:59 -07:00
litellm_core_utils test: create fresh ModelResponse per test to avoid shared mutable state 2026-03-03 14:54:11 -03:00
llms fix(anthropic): coerce explicit additionalProperties to false in output_format schema 2026-08-04 16:21:47 -04:00
proxy chore: litellm oss staging (#30745) 2026-06-18 13:55:35 -07:00
test_bedrock_extended_beta_models.py feat(bedrock): add support for 4 new beta models (#20974) 2026-02-13 18:32:12 +05:30
test_bedrock_nemotron_super.py Litellm ishaan april2 (#25113) 2026-04-04 12:31:49 -07:00
test_no_hardcoded_secrets.py style: run black formatter on files from main merge 2026-04-17 13:02:59 -07:00
test_proxy_auth.py feat(sdk): add proxy_auth for auto OAuth2/JWT token management (#20238) 2026-02-02 22:04:08 -08:00
test_router_retry_backoff_headers.py fix(router): use current retry exception for retry backoff (#20725) 2026-02-10 22:44:25 -08:00
test_sambanova_model_metadata.py Add new chat model metadata (#27313) 2026-05-06 15:15:21 -07:00
test_stream_chunk_builder_images.py style: run black formatter on files from main merge 2026-04-17 13:02:59 -07:00