Skip to content

fix(k8s): the Claude gateway groups cannot serve a structured reply #3140

Description

@dan-petty

What happened

The gateway groups claude-sonnet-5-5 and claude-haiku-5-5 (#3117) cannot serve a call that asks for a structured reply, which is how the stage, refine and intake jobs call a model. LiteLLM turns response_format into a forced tool call (tool_choice of type tool) unless its model map says that the model supports native structured output. The cost map of the pinned image (v1.103.0) lists no Claude 5.5 model, so LiteLLM takes the tool path. The Anthropic API answers HTTP 400 for Sonnet 5.5: tool_choice: type "tool" and "any" are not supported for this model.

Evidence: devops roadmap eval stage --model claude-sonnet-5-5 ended 16 of 16 cases with AIClientError after about 3 seconds each, with that message. Haiku 5.5 accepts the forced tool but filled the plan schema wrongly in 35 of 40 cases (StructuredOutputValidationError).

With supports_native_structured_output: true and supports_response_schema: true in the model_info of each group, LiteLLM sends the schema as Anthropic output_format, and both models answer. A local proxy of the same LiteLLM version showed it: Sonnet 5.5 staged 3 of 4 stage cases (before: 0 of 16), and Haiku 5.5 staged 1 of 4.

What should happen

Both Claude groups serve structured replies. A test fails if a Claude group lacks the two flags.

Acceptance criteria

  • model_info of claude-sonnet-5-5 and claude-haiku-5-5 sets both flags.
  • The hosted-group check fails when a Claude group lacks either flag.
  • After the rollout, devops roadmap eval stage --model claude-sonnet-5-5 --limit 2 stages at least one case.

Activity

  1. added
    source/agent
    type/bug
    scope/k8s
    status/new
    value/high
    effort/low
    on Nov 2, 2026
  2. dan-petty commented on Nov 2, 2026

    @dan-petty
    OwnerAuthor

    Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones.

    • Type: type/bug. The fix prefix of the title gives the type.
    • Scope: scope/k8s. The (k8s) scope of the title gives the scope.
    • Priority: P1-High. All 16 test cases fail, blocking stage, refine and intake jobs that use these models.
    • Value: High. Without this fix, no structured reply works for the two Claude 5.5 gateway groups.
    • Effort: Low. The fix sets two boolean flags in model_info and adds a check for them.
    • Related: feat(ai): constrain structured replies on the claude, openai and copilot providers #1419, which asks for a different change. Both address structured replies on the Claude path, but 1419 adds client-side provider constraints while this sets gateway model_info flags for LiteLLM.
  3. added
    priority/p1-high
    on Nov 2, 2026
  4. removed
    status/new
    on Nov 2, 2026
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

    effort/lowpriority/p1-highscope/k8ssource/agenttype/bugvalue/high

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions