Commit 5ae0475
Vincenzo Sciangola
Prevent NPE when delta is null in Azure OpenAI streaming
Azure OpenAI sends streaming chunks without delta content for
end-of-stream markers and content filter responses. Added null
check to prevent NullPointerException in streaming handler.1 parent 5a7b7d5 commit 5ae0475
File tree
1 file changed
+3
-0
lines changed- model-providers/openai/azure-openai/runtime/src/main/java/io/quarkiverse/langchain4j/azure/openai
1 file changed
+3
-0
lines changedLines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
234 | 234 | | |
235 | 235 | | |
236 | 236 | | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
237 | 240 | | |
238 | 241 | | |
239 | 242 | | |
| |||
0 commit comments