Commit 310246d
fix: MLLM image processing — exclude_none for Jinja template, error handling
- Use model_dump(exclude_none=True) for MLLM messages: Qwen3VL Jinja
template checks 'image_url' in item — null keys from Pydantic
model_dump() falsely triggered extra <|image_pad|> tokens, causing
"index out of bounds" crash in processor
- Add per-request error handling in MLLM batch preprocessing: failed
requests now get immediate finish_reason="error" instead of infinite
retry loop (was retrying 5756 times in 300s before timeout)
- Handle error responses in MLLM scheduler to properly clean up and
return error status to client
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent bf78650 commit 310246d
3 files changed
+68
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
348 | 348 | | |
349 | 349 | | |
350 | 350 | | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
351 | 354 | | |
352 | 355 | | |
353 | 356 | | |
| |||
621 | 624 | | |
622 | 625 | | |
623 | 626 | | |
624 | | - | |
| 627 | + | |
| 628 | + | |
625 | 629 | | |
626 | | - | |
| 630 | + | |
| 631 | + | |
| 632 | + | |
| 633 | + | |
| 634 | + | |
| 635 | + | |
| 636 | + | |
| 637 | + | |
| 638 | + | |
| 639 | + | |
| 640 | + | |
| 641 | + | |
| 642 | + | |
| 643 | + | |
| 644 | + | |
| 645 | + | |
| 646 | + | |
| 647 | + | |
| 648 | + | |
| 649 | + | |
| 650 | + | |
| 651 | + | |
| 652 | + | |
| 653 | + | |
| 654 | + | |
| 655 | + | |
627 | 656 | | |
628 | 657 | | |
629 | 658 | | |
| |||
768 | 797 | | |
769 | 798 | | |
770 | 799 | | |
| 800 | + | |
| 801 | + | |
| 802 | + | |
| 803 | + | |
| 804 | + | |
| 805 | + | |
771 | 806 | | |
772 | 807 | | |
773 | 808 | | |
774 | | - | |
| 809 | + | |
775 | 810 | | |
776 | 811 | | |
777 | 812 | | |
| |||
840 | 875 | | |
841 | 876 | | |
842 | 877 | | |
843 | | - | |
| 878 | + | |
844 | 879 | | |
845 | 880 | | |
846 | 881 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
446 | 446 | | |
447 | 447 | | |
448 | 448 | | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
449 | 470 | | |
450 | 471 | | |
451 | 472 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1385 | 1385 | | |
1386 | 1386 | | |
1387 | 1387 | | |
1388 | | - | |
| 1388 | + | |
| 1389 | + | |
| 1390 | + | |
1389 | 1391 | | |
1390 | 1392 | | |
1391 | | - | |
| 1393 | + | |
| 1394 | + | |
| 1395 | + | |
| 1396 | + | |
| 1397 | + | |
1392 | 1398 | | |
1393 | 1399 | | |
1394 | 1400 | | |
| |||
0 commit comments