Skip to content

Conversation

@yamitzky
Copy link
Contributor

@yamitzky yamitzky commented Dec 2, 2025

Summary

  • Remove structured-outputs-2025-11-13 beta header for Vertex AI Anthropic integration
  • This header is not supported by Vertex AI and causes invalid_request_error responses
  • Keep web-search-2025-03-05 header which is supported
  Response Body: {
    "httpStatus": 400,
    "httpStatusText": "Bad Request",
    "responseBody": "{\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"Unexpected value(s) `structured-outputs-2025-11-13` for the `anthropic-beta` header. Please consult our documentation at docs.anthropic.com or try again without the header.\"},\"request_id\":\"req_vrtx_XXXXXXXXXX\"}",
    "metrics": {
      "startTime": 1764679274337,
      "retryCount": 0
    }
  }

Related to #457

… Vertex AI

Vertex AI's Anthropic integration does not support the structured-outputs-2025-11-13
beta header, causing invalid_request_error responses. Remove this header while keeping
web-search-2025-03-05 which is supported.
@dosco dosco merged commit 8420adb into ax-llm:main Dec 2, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants