Skip to content

fix: disable OpenAI strict mode for dict[str, Any] compat#3

Merged
cdel1 merged 1 commit intomainfrom
fix/openai-strict-mode
Apr 24, 2026
Merged

fix: disable OpenAI strict mode for dict[str, Any] compat#3
cdel1 merged 1 commit intomainfrom
fix/openai-strict-mode

Conversation

@cdel1
Copy link
Copy Markdown
Owner

@cdel1 cdel1 commented Apr 20, 2026

Summary

  • Set strict: False in OpenAI structured output config
  • ChunkExtractionResult uses dict[str, Any] properties which OpenAI strict mode rejects
  • Pydantic validates the response client-side instead
  • Fixes runtime BadRequestError when running extraction against OpenAI API

Test plan

  • Updated test assertion to match new strict=False
  • 201 passed, 19 skipped

ChunkExtractionResult contains dict[str, Any] properties which are
incompatible with OpenAI's strict structured output mode. Pydantic
validates the response client-side instead.
@cdel1 cdel1 merged commit 2fa28eb into main Apr 24, 2026
1 check passed
@cdel1 cdel1 deleted the fix/openai-strict-mode branch April 24, 2026 07:16
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