Commit 4294712
committed
Fix /completions endpoint by separating completion and chat completion parsing
- Add new oaicompat_completion_params_parse() for simple completions
- Rename existing function to oaicompat_chat_completion_params_parse()
- Update /completions endpoint to use simple parser (no chat templates)
- Update /chat/completions endpoint to use chat parser (with tools support)
- Fixes compatibility issue introduced in tool calling PR ikawrakow#677
Incorporates fixes from upstream PR ikawrakow#6841 parent df660f7 commit 4294712
2 files changed
+43
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3602 | 3602 | | |
3603 | 3603 | | |
3604 | 3604 | | |
3605 | | - | |
3606 | | - | |
3607 | | - | |
| 3605 | + | |
3608 | 3606 | | |
3609 | 3607 | | |
3610 | 3608 | | |
| |||
3707 | 3705 | | |
3708 | 3706 | | |
3709 | 3707 | | |
3710 | | - | |
| 3708 | + | |
3711 | 3709 | | |
3712 | 3710 | | |
3713 | 3711 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
424 | 424 | | |
425 | 425 | | |
426 | 426 | | |
427 | | - | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
428 | 468 | | |
429 | 469 | | |
430 | 470 | | |
| |||
0 commit comments