#27846 [Bug]: Structured Output fails for Anthropic models on bedrock/converse
### Check for existing issues
- [x] I have searched the existing issues and checked that my issue is not a duplicate.
### What happened?
When using the responses api, structured output (JSON schema) does not work correctly: - On the Converse API for Anthropic models ``` BedrockException - {"message":"The model returned the following errors: output_config.format: Extra inputs are not permitted"} ```
It works correctly: - On the Converse API for Amazon Nova models - On the Invoke API for Amazon Nova and Anthropic models
Relates to https://github.com/BerriAI/litellm/issues/21208
### Steps to Reproduce
``` # export AWS_BEARER_TOKEN_BEDROCK=bedrock-api-key-<>
from litellm import responses from pydantic import BaseModel
class TextResponse(BaseModel): text: str
response = responses( api_base="https://bedrock-runtime.eu-central-1.amazonaws.com/", model="bedrock/invoke/eu.anthropic.claude-opus-4-7", # Or any anthropic model input=[ { "role": "user", "content": [ { "type": "input_text", "text": "why is the sky blue? format your response as json", } …