Commit 13f19c4
committed
fix: publish RAG error as realtime event to the client
When the RAG server returns a non-200 status (e.g. 413), the
error was not sent to the client via realtime, so it could not
display it. Now publish an error event before returning.1 parent 07c287e commit 13f19c4
1 file changed
Lines changed: 13 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
301 | 301 | | |
302 | 302 | | |
303 | 303 | | |
| 304 | + | |
| 305 | + | |
304 | 306 | | |
305 | | - | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
306 | 318 | | |
307 | | - | |
308 | | - | |
309 | 319 | | |
310 | 320 | | |
311 | 321 | | |
| |||
0 commit comments