Skip to content

Bug: Anthropic models error Input_schema does not support oneOf, allOf, or anyOf at the top level #37916

Closed as not planned

Description

@LuizGustavoWT

Description

Description

Claude models in opencode fails with:
tools.12.custom.input_schema: input_schema does not support oneOf, allOf, or anyOf at the top level.

PR #32489 (#32489) (shipped in v1.17.8) sanitizes tool schemas for OpenAI models by dropping composition keywords. But that sanitization only runs for OpenAI/Azure adapters. It never touches the Anthropic path.
Plugins

Plugins

@ex-machina/opencode-anthropic-auth@1.8.1, oh-my-openagent@latest, opencode-antigravity-auth@latest

OpenCode version

1.18.3

Steps to reproduce

No response

Screenshot and/or share link

Image

Operating System

Ubuntu 26.04

Terminal

No response

Activity

  1. changed the title [-]Anthropic models error: Input_schema does not support oneOf, allOf, or anyOf at the top level[/-] [+]Bug: Anthropic models error Input_schema does not support oneOf, allOf, or anyOf at the top level[/+] on Jul 20, 2026
  2. github-actions commented on Jul 20, 2026

    @github-actions
    Contributor

    This issue might be a duplicate of an existing issue. Please check:

  3. github-actions commented on Sep 19, 2026

    @github-actions
    Contributor

    To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions