From f5320af02a6cf34af319b614ae65d64505dbc16d Mon Sep 17 00:00:00 2001 From: ochafik Date: Thu, 24 Oct 2024 05:40:15 +0100 Subject: [PATCH] `tool-call`: return tool_call.id (required by Nemo) --- examples/server/utils.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/server/utils.hpp b/examples/server/utils.hpp index 4f4046edd..f58e7171a 100644 --- a/examples/server/utils.hpp +++ b/examples/server/utils.hpp @@ -476,7 +476,8 @@ static json format_final_response_oaicompat(const json & request, const json & r {"function", { {"name", tc.name}, {"arguments", tc.arguments}, - }} + }}, + {"id", tc.id.empty() ? json() : json(tc.id)}, }); } } else {