litellm/tests/unit/decisions
mateo-berri 2a0af9bc25 fix(bedrock): send user_profile_id only to Claude in Amazon Bedrock, and reject a non-string pin
Anthropic's user profile docs say profiles do not work on bedrock-runtime (InvokeModel and Converse). That endpoint only checks the id's format, so the body field there added a 400 with no attribution. InvokeModel and Converse go back to what main sends, and only mantle gets the body field. The header still goes out on every Bedrock route, and AWS ignores it

A non-string anthropic_user_profile_id on a key or team now answers 400 on the write, even for an admin, instead of being stored and ignored at request time

The decisions route now replaces a caller's header in any letter case with the forwarded profile id, like chat and messages do
2026-11-14 18:25:55 -08:00
..
__init__.py feat(decisions): add unified /v1/decisions endpoint for Jev-compatible providers (#44236) 2026-10-03 17:38:38 +00:00
test_call.py feat(gemini): support gemini-decision-1 on /v1/decisions and /v1/systemone (#51220) 2026-11-11 18:33:22 -08:00
test_main.py fix(bedrock): send user_profile_id only to Claude in Amazon Bedrock, and reject a non-string pin 2026-11-14 18:25:55 -08:00