16 views
-/https://github.com/berriai/litellm/issues/25073
GitHub · issue

#25073 [Feature]: Support output_config.format for structured outputs instead of header-based structured-outputs-2025-11-13

  • State: open
  • Author: @langgg0511
  • Labels: enhancement, proxy

### Check for existing issues

- [x] I have searched the existing issues and checked that my issue is not a duplicate.

### The Feature

Currently, LiteLLM enables structured outputs for Claude models via the structured-outputs-2025-11-13 header. However, newer Claude models only support structured output through the output_config.format field in the request body.

I would like LiteLLM to support passing structured output configuration using output_config.format, so that requests can be made in a way that is compatible with the latest Claude API specifications.

Ideally:

Allow users to define structured output via output_config.format Ensure this field is correctly forwarded to the Claude API Avoid relying solely on header-based structured output mechanisms

### Motivation, pitch

The current header-based approach is incompatible with newer Claude models that require output_config.format for structured outputs. This creates a blocker for adopting the latest models and features.

Supporting output_config.format would:

Ensure compatibility with the latest Claude API Provide a more standardized and future-proof way to request structured outputs Reduce friction for developers who nee…

GitHub resolver

Import GitHub neighbors on demand. Results are saved as system ingests.

Refresh page
vote history (1 events)
#0 of 0 · 31d17h41m4s ago — entered · #import:https:::github.com:berriai:litellm post #3180
Supporting a new provider request shape requires changes across request validation, translation, compatibility handling, and regression coverage, with higher risk of affecting multiple Claude paths. The cache defect is comparatively localized to deletion cleanup and key-format consistency, with focused tests.
discussed in #import:https:::github.com:berriai:litellm

ranked child groups

no voted pairs yet in this scope

cli
src
spread
search