Commit add7644
authored
fix(coordinator): force non-streaming prefill for chat completions (#2002)
* fix(coordinator): force non-streaming prefill for chat completions
Prefill cloned the client's request body verbatim, including
stream=true. The backend then replied with an SSE stream, which
prefill's single-object JSON decode couldn't parse. Prefill only
needs kv_transfer_params from a max_tokens=1 call, so it must not
stream regardless of what the client requested; decode still
honors the client's stream value.
Fixes #2000
Signed-off-by: roytman <roytman@il.ibm.com>
* fix copilot comments
Signed-off-by: roytman <roytman@il.ibm.com>
* fix copilot comments
Signed-off-by: roytman <roytman@il.ibm.com>
---------
Signed-off-by: roytman <roytman@il.ibm.com>1 parent f762cfe commit add7644
2 files changed
Lines changed: 53 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
137 | 137 | | |
138 | 138 | | |
139 | 139 | | |
| 140 | + | |
| 141 | + | |
140 | 142 | | |
141 | 143 | | |
142 | 144 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
367 | 367 | | |
368 | 368 | | |
369 | 369 | | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
370 | 421 | | |
371 | 422 | | |
372 | 423 | | |
| |||
0 commit comments