Skip to content

anthropic wire: adopt native output_config.format json_schema (kimi-code prior art), tool-mode as fallback #550

Description

@justrach

While auditing MoonshotAI/kimi-code for the #543 bug class (they don't have it — their kosong responseFormat seam maps structured outputs natively in every adapter), found their anthropic adapter uses output_config.format = {type: 'json_schema', schema} — Anthropic's native structured-outputs field. graff's anthropic wire currently uses the dsh-style structured_output tool (9e2da0a), which works everywhere but is client-enforced. Upgrade: try output_config.format first on provider id 'anthropic', keep the tool mode for minimax/kimi-anthropic and as the learned fallback on rejection — same quirk-ladder pattern as sox_json_object.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions