mirror of
https://github.com/BerriAI/litellm.git
synced 2026-12-05 01:59:27 +00:00
* fix(bedrock): name base_model in the thinking.type.enabled 400 for an unresolved application inference profile ARN * fix(bedrock): point the unresolved ARN hint at the profile's own model id * test(bedrock): cover the base_model example the profile ARN thinking hint suggests * test(bedrock): check that async calls also keep other Bedrock 400s without the base_model hint * fix(bedrock): say where to set base_model and add the hint to converse_like profile ARNs * test(bedrock): expect the profile ARN thinking warning to name model_info.base_model The warning now tells admins to set model_info.base_model, so the existing test that looked for the bare `base_model` text no longer matched it * test(bedrock): check converse_like reads base_model before adding the profile ARN hint A converse_like profile ARN deployment with base_model set now has a case that expects Bedrock's 400 without the base_model sentence, so passing the wrong base_model on that call fails a test. Also wraps the warning assertion that ran past 120 characters * fix(bedrock): say a system inference profile or foundation model ARN works as base_model in the profile ARN hint The hint said not to use an ARN, but a system inference profile ARN or a foundation model ARN resolves as base_model, gets adaptive thinking, and is priced. Tests send each form, check the application profile's own ARN still gets the hint, and check the hinted error keeps Bedrock's headers * fix(bedrock): give the profile ARN thinking warning the same base_model advice as the 400 The proxy log warning still asked for the Bedrock model ID only, while the 400's sentence now also allows a system inference profile or foundation model ARN. Both now read one shared phrase, and the warning test checks that the ARN option is in it * fix(bedrock): tell direct SDK callers to pass base_model in the profile ARN thinking hint The 400 sentence and the log warning only named the proxy's model_info.base_model, while a direct litellm.completion call hits the same rejection and fixes it with the base_model argument. Both now end their advice with one shared SDK sentence, and a streamed 400 that is not the enabled thinking rejection is now tested to stay without the hint * ci: retrigger checks whose approved runs never started --------- Co-authored-by: mateo-berri <277851410+mateo-berri@users.noreply.github.com> |
||
|---|---|---|
| .. | ||
| batches | ||
| chat | ||
| count_tokens | ||
| embed | ||
| files | ||
| image | ||
| image_edit | ||
| image_generation | ||
| invoke_agent | ||
| messages | ||
| passthrough | ||
| realtime | ||
| rerank | ||
| responses | ||
| search | ||
| vector_stores | ||
| __init__.py | ||
| event_loop_probe.py | ||
| slow_upstream.py | ||
| test_anthropic_beta_support.py | ||
| test_base_aws_llm.py | ||
| test_bedrock_common_utils.py | ||
| test_bedrock_model_listing.py | ||
| test_bedrock_ssl_verify.py | ||
| test_claude_platform_provider.py | ||
| test_converse_context_management.py | ||
| test_cross_region_inference_profile_mapping.py | ||
| test_guardrail_attachments.py | ||
| test_mantle.py | ||
| test_nova_imported_models.py | ||
| test_request_metadata.py | ||
| test_session_identity.py | ||
| test_web_identity_session_policy.py | ||