Commit c747043
authored
fix(openai): Check response text is present to avoid AttributeError (#5081)
Verify that messages are not null before calling `model_dump()` on message objects in chat completion choices. Gemini's API can return `null` values in these fields.
Closes #50711 parent 98fa10a commit c747043
1 file changed
Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
243 | 243 | | |
244 | 244 | | |
245 | 245 | | |
246 | | - | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
247 | 251 | | |
248 | 252 | | |
249 | 253 | | |
| |||
0 commit comments