Commit d55ac7f
authored
[BUGS] Prevent NullPointerException for Gemini models with empty AIMessage content (#79)
* Fix NullPointerException for empty message content
Adds a check for empty message content before processing in GenericProvider, returning a default text when content is missing.
* Fix tool_call id assignment in ToolCall creation
Refactors the logic for assigning the id field when creating a ToolCall object to ensure an id is always set, generating a new UUID if necessary.
* Make format to appease the lint god1 parent 17be3c4 commit d55ac7f
1 file changed
+12
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
110 | 110 | | |
111 | 111 | | |
112 | 112 | | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
113 | 118 | | |
114 | 119 | | |
115 | 120 | | |
116 | 121 | | |
117 | 122 | | |
118 | | - | |
| 123 | + | |
119 | 124 | | |
120 | 125 | | |
121 | 126 | | |
| |||
815 | 820 | | |
816 | 821 | | |
817 | 822 | | |
818 | | - | |
| 823 | + | |
| 824 | + | |
| 825 | + | |
| 826 | + | |
| 827 | + | |
| 828 | + | |
819 | 829 | | |
820 | 830 | | |
821 | 831 | | |
| |||
0 commit comments