mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-03 02:22:24 +00:00
revert bedrock output_config change — snake-case key is intentional
The snake-case output_config is intentionally kept in inference_params for models that support it so it flows into additionalModelRequestFields. The original code was correct. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
529a3ac01c
commit
598914fb59
1 changed files with 1 additions and 2 deletions
|
|
@ -1203,13 +1203,12 @@ class AmazonConverseConfig(BaseConfig):
|
|||
output_config: Optional[OutputConfigBlock] = inference_params.pop(
|
||||
"outputConfig", None
|
||||
)
|
||||
inference_params.pop("output_config", None)
|
||||
if not _supports_factory(
|
||||
model=strip_bedrock_routing_prefix(model),
|
||||
custom_llm_provider="bedrock",
|
||||
key="supports_output_config",
|
||||
):
|
||||
output_config = None
|
||||
inference_params.pop("output_config", None)
|
||||
|
||||
# keep supported params in 'inference_params', and set all model-specific params in 'additional_request_params'
|
||||
additional_request_params = {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue