Skip to content

[BUG] LiteLLM (Bedrock) + Claude Sonnet 5 fails with tools.0.custom.strict: Extra inputs are not permitted #1137

Description

@TGDone

Problem (one or two sentences)

Description

When using Zoo Code with LiteLLM (proxy) and AWS Bedrock, requests to Claude Sonnet 5 fail immediately with a 400 BadRequestError.

The error indicates that Bedrock rejects the generated tool schema because of an unexpected strict field.

Error

LiteLLM streaming error: 400

litellm.BadRequestError:

BedrockException -

{
  "message":"The model returned the following errors:
  tools.0.custom.strict:
  Extra inputs are not permitted"
}

### Context (who is affected and when)

I am when I try to use sonnet5.0

### Reproduction steps

## Steps to Reproduce

1. Install the Zoo Code VSCode extension (version 3.75.100335).
2. Configure the provider to use LiteLLM (proxy).
3. Select the `claude-sonnet-5` model.
4. Start any chat or ask Zoo Code to perform a task that triggers tool/function calling.
5. The request immediately fails before inference starts.

## Actual Result

Zoo Code reports:

```text
LiteLLM streaming error: 400

litellm.BadRequestError:
BedrockException -
{
  "message":"The model returned the following errors:
  tools.0.custom.strict:
  Extra inputs are not permitted"
}

Expected Result

The request should be accepted by Bedrock and Claude Sonnet 5 should start generating a response.

Expected result

Zoo Code should generate a tool schema compatible with Claude Sonnet 5 on AWS Bedrock.

Actual result

The request fails before inference because Bedrock rejects:tools.0.custom.strict

Variations tried (optional)

No response

App Version

3.75.100335

API Provider (optional)

None

Model Used (optional)

No response

Zoo Code Task Links (optional)

No response

Relevant logs or errors (optional)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions