Commit 0a35ccf
authored
Always populate ORItemParam.Summary (mudler#9049)
* fix(openresponses): do not omit required fields summary and id
* fix(openresponses): ensure ORItemParam.Summary is never null
Normalize Summary to an empty slice at serialization chokepoints
(sendSSEEvent, bufferEvent, buildORResponse) so it always serializes
as [] instead of null.
Closes mudler#9047
Signed-off-by: localai-bot <localai-bot@localai.io>1 parent dc12d30 commit 0a35ccf
2 files changed
Lines changed: 19 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1332 | 1332 | | |
1333 | 1333 | | |
1334 | 1334 | | |
| 1335 | + | |
1335 | 1336 | | |
1336 | 1337 | | |
1337 | 1338 | | |
| |||
2605 | 2606 | | |
2606 | 2607 | | |
2607 | 2608 | | |
| 2609 | + | |
2608 | 2610 | | |
2609 | 2611 | | |
2610 | 2612 | | |
| |||
2613 | 2615 | | |
2614 | 2616 | | |
2615 | 2617 | | |
| 2618 | + | |
| 2619 | + | |
| 2620 | + | |
| 2621 | + | |
| 2622 | + | |
| 2623 | + | |
| 2624 | + | |
2616 | 2625 | | |
2617 | 2626 | | |
2618 | 2627 | | |
| |||
2693 | 2702 | | |
2694 | 2703 | | |
2695 | 2704 | | |
| 2705 | + | |
| 2706 | + | |
| 2707 | + | |
| 2708 | + | |
| 2709 | + | |
| 2710 | + | |
| 2711 | + | |
2696 | 2712 | | |
2697 | 2713 | | |
2698 | 2714 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
86 | 86 | | |
87 | 87 | | |
88 | 88 | | |
89 | | - | |
| 89 | + | |
90 | 90 | | |
91 | 91 | | |
92 | 92 | | |
| |||
102 | 102 | | |
103 | 103 | | |
104 | 104 | | |
105 | | - | |
106 | | - | |
| 105 | + | |
| 106 | + | |
107 | 107 | | |
108 | 108 | | |
109 | 109 | | |
| |||
0 commit comments