Commit 744a580
committed
Fix memory tools returning 'unsupported call' in Chat Completions
The Chat Completions handler executed memory tool calls (memory_save,
memory_search, etc.) but discarded the results — returning the original
response with tool_calls but no tool results. The client saw
"unsupported call" because it never received the tool output.
Fix: after executing memory tools, send a continuation request to the
upstream model with the tool results appended as messages, so the model
produces a final user-facing response.
Fixes #1571 parent b501369 commit 744a580
1 file changed
+26
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
672 | 672 | | |
673 | 673 | | |
674 | 674 | | |
675 | | - | |
| 675 | + | |
| 676 | + | |
| 677 | + | |
676 | 678 | | |
677 | 679 | | |
678 | 680 | | |
| |||
684 | 686 | | |
685 | 687 | | |
686 | 688 | | |
687 | | - | |
688 | | - | |
689 | | - | |
690 | | - | |
| 689 | + | |
| 690 | + | |
| 691 | + | |
| 692 | + | |
| 693 | + | |
| 694 | + | |
| 695 | + | |
| 696 | + | |
| 697 | + | |
| 698 | + | |
| 699 | + | |
| 700 | + | |
| 701 | + | |
| 702 | + | |
| 703 | + | |
| 704 | + | |
| 705 | + | |
| 706 | + | |
| 707 | + | |
| 708 | + | |
| 709 | + | |
| 710 | + | |
| 711 | + | |
691 | 712 | | |
692 | 713 | | |
693 | 714 | | |
| |||
0 commit comments