This repository was archived by the owner on Feb 11, 2025. It is now read-only.
Commit 8263f57
authored
Fix potential stream hangs by ensuring completion callback (#52)
## Issue
Closes langchain4j/langchain4j#2048
## Change
Ensure that the completion callback is called even if the
[DONE] event is not received.
## General checklist
- [X] There are no breaking changes
- [ ] I have added unit and/or integration tests for my change
- [ ] The tests cover both positive and negative cases
- [X] I have manually run all the unit and integration tests in the
module I have added/changed, and they are all green1 parent 80f444a commit 8263f57
File tree
1 file changed
+2
-1
lines changed- src/main/java/dev/ai4j/openai4j
1 file changed
+2
-1
lines changedLines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
167 | 167 | | |
168 | 168 | | |
169 | 169 | | |
170 | | - | |
171 | 170 | | |
172 | 171 | | |
173 | 172 | | |
| |||
192 | 191 | | |
193 | 192 | | |
194 | 193 | | |
| 194 | + | |
| 195 | + | |
195 | 196 | | |
196 | 197 | | |
197 | 198 | | |
| |||
0 commit comments