Commit 2e2c824
committed
fix(media): forward scanned PDF page images as inline data URIs on chat channels
When extractFileBlocks receives a scanned/image-only PDF (no extractable text
but page images present), it previously set a dead-end placeholder and dropped
the images. The /v1/responses API path already forwarded the same images
correctly.
Fix: embed the extracted page images as base64 data URIs in the file context
block, so vision-capable models can read scanned documents on all chat
channels.
Closes #965411 parent f65aca6 commit 2e2c824
1 file changed
Lines changed: 12 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
497 | 497 | | |
498 | 498 | | |
499 | 499 | | |
500 | | - | |
| 500 | + | |
| 501 | + | |
| 502 | + | |
| 503 | + | |
| 504 | + | |
| 505 | + | |
| 506 | + | |
| 507 | + | |
| 508 | + | |
| 509 | + | |
| 510 | + | |
| 511 | + | |
501 | 512 | | |
502 | 513 | | |
503 | 514 | | |
| |||
0 commit comments