Skip to content

dev: full OpenAI response schema in the VLM shim (#153) - #155

Merged
artiz merged 1 commit into
docling-project:masterfrom
artiz:claude/vlm-shim-openai-schema
Jul 25, 2026
Merged

dev: full OpenAI response schema in the VLM shim (#153)#155
artiz merged 1 commit into
docling-project:masterfrom
artiz:claude/vlm-shim-openai-schema

Conversation

@artiz

@artiz artiz commented Jul 24, 2026

Copy link
Copy Markdown
Contributor

Python docling validates chat-completion responses with a pydantic OpenAiApiResponse model that requires id/created (and reads usage); the shim payload lacked them, so the reference side of the corpus run failed on every request while docling.rs (which only reads choices[0]) worked. Emit the full envelope.

Refs #153

Claude-Session: https://claude.ai/code/session_01EY5KAiquN4YpVf2PXEQkVT

Python docling validates chat-completion responses with a pydantic
OpenAiApiResponse model that requires id/created (and reads usage);
the shim payload lacked them, so the reference side of the corpus run
failed on every request while docling.rs (which only reads choices[0])
worked. Emit the full envelope.

Refs docling-project#153

Signed-off-by: artiz <artem.kustikov@gmail.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EY5KAiquN4YpVf2PXEQkVT
@artiz
artiz merged commit 42aad70 into docling-project:master Jul 25, 2026
10 checks passed
@artiz
artiz deleted the claude/vlm-shim-openai-schema branch July 25, 2026 07:53
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