Skip to content

fix(api): add OutputConfig and OutputFormat models with proper beta headers#43

Open
soxfmr wants to merge 1 commit intomirrorange:mainfrom
soxfmr:fix/api-effort-header
Open

fix(api): add OutputConfig and OutputFormat models with proper beta headers#43
soxfmr wants to merge 1 commit intomirrorange:mainfrom
soxfmr:fix/api-effort-header

Conversation

@soxfmr
Copy link

@soxfmr soxfmr commented Jan 29, 2026

  • Add OutputConfig model for effort parameter (effort-2025-11-24 beta)
    • Uses extra="ignore" to strip unsupported fields like 'format'
  • Add OutputFormat model for structured outputs (structured-outputs-2025-11-13 beta)
  • Update _prepare_headers to add appropriate beta headers based on request fields
  • Add MessagesAPIRequest import to claude_api_processor

This fix the issue #40.

…eaders

- Add OutputConfig model for effort parameter (effort-2025-11-24 beta)
  - Uses extra="ignore" to strip unsupported fields like 'format'
- Add OutputFormat model for structured outputs (structured-outputs-2025-11-13 beta)
- Update _prepare_headers to add appropriate beta headers based on request fields
- Add MessagesAPIRequest import to claude_api_processor

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
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.

1 participant