Commit 5a53266
Copybara import of the project:
--
2720367 by Shelly (6utt3rfly) <[email protected]>:
fix: aggregate text & functionCall(s) correctly
content parts should have either text or functionCall set, but never both. When aggregating, combine the text (as before), but add functionCall(s) as new parts. Then when done, if the text from part[0] is empty, that part can be removed.
fixes #494
--
b8eed9f by Shelly (6utt3rfly) <[email protected]>:
fix: aggregate text & functionCall(s) correctly
don't delete the text part, because it could just be added back again when working with multiple responses (and the end up as `"undefined\n"` for example). Leave the text part, and always push functions as new parts.
fixes #494
--
a4fc31e by Shelly (6utt3rfly) <[email protected]>:
fix: aggregate text & functionCall(s) correctly
the AI API gives an error for empty text, so the empty text has to be deleted after aggregating all responses
fixes #494
--
5ada9d4 by Shelly (6utt3rfly) <[email protected]>:
chore: fix style using script
COPYBARA_INTEGRATE_REVIEW=#497 from 6utt3rfly:main 5ada9d4
PiperOrigin-RevId: 7460455191 parent 0075baa commit 5a53266
File tree
3 files changed
+0
-57
lines changed- src
- functions
- test
- types
3 files changed
+0
-57
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
80 | | - | |
81 | 80 | | |
82 | 81 | | |
83 | 82 | | |
| |||
133 | 132 | | |
134 | 133 | | |
135 | 134 | | |
136 | | - | |
137 | 135 | | |
138 | 136 | | |
139 | 137 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
226 | 226 | | |
227 | 227 | | |
228 | 228 | | |
229 | | - | |
230 | | - | |
231 | | - | |
232 | | - | |
233 | 229 | | |
234 | 230 | | |
235 | 231 | | |
| |||
652 | 648 | | |
653 | 649 | | |
654 | 650 | | |
655 | | - | |
656 | | - | |
657 | | - | |
658 | | - | |
659 | | - | |
660 | | - | |
661 | | - | |
662 | | - | |
663 | | - | |
664 | | - | |
665 | | - | |
666 | | - | |
667 | | - | |
668 | | - | |
669 | | - | |
670 | | - | |
671 | | - | |
672 | | - | |
673 | | - | |
674 | | - | |
675 | 651 | | |
676 | 652 | | |
677 | 653 | | |
| |||
854 | 830 | | |
855 | 831 | | |
856 | 832 | | |
857 | | - | |
858 | | - | |
859 | | - | |
860 | | - | |
861 | | - | |
862 | | - | |
863 | | - | |
864 | | - | |
865 | | - | |
866 | | - | |
867 | | - | |
868 | | - | |
869 | | - | |
870 | | - | |
871 | | - | |
872 | | - | |
873 | | - | |
874 | | - | |
875 | | - | |
876 | | - | |
877 | | - | |
878 | | - | |
879 | | - | |
880 | | - | |
881 | | - | |
882 | 833 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | 71 | | |
78 | 72 | | |
79 | 73 | | |
| |||
0 commit comments