From b3a56545d62e6b6fd2f9c2df46c786fe7c398399 Mon Sep 17 00:00:00 2001 From: HanishKVC Date: Tue, 7 May 2024 11:49:43 +0530 Subject: [PATCH] ChatON:Reposition alertAssistantAtEnd flag for consistency --- common/chaton.hpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/common/chaton.hpp b/common/chaton.hpp index b34129c38..395057f2c 100644 --- a/common/chaton.hpp +++ b/common/chaton.hpp @@ -446,10 +446,10 @@ inline size_t chat_tmpl_apply_single_capi( inline bool chaton_tmpl_apply_ex( const std::string &tmpl, const std::vector &msgs, + bool alertAssistantAtEnd, std::string &tagged, std::string &types, - std::vector &lens, - bool alertAssistantAtEnd + std::vector &lens ) { if (!chaton_tmpl_exists(tmpl)) { return false; @@ -528,7 +528,7 @@ inline int32_t chaton_tmpl_apply( ) { std::string types; std::vector lens; - if (!chaton_tmpl_apply_ex(tmpl, msgs, tagged, types, lens, alertAssistantAtEnd)) { + if (!chaton_tmpl_apply_ex(tmpl, msgs, alertAssistantAtEnd, tagged, types, lens)) { return -1; } return tagged.size(); @@ -608,7 +608,7 @@ inline int32_t chaton_tmpl_apply_ex_capi( std::string taggedMsgs; std::string types; std::vector lens; - if (!chaton_tmpl_apply_ex(tmpl, vMsgs, taggedMsgs, types, lens, alertAssistantAtEnd)) { + if (!chaton_tmpl_apply_ex(tmpl, vMsgs, alertAssistantAtEnd, taggedMsgs, types, lens)) { return -1; } int32_t taggedLength = taggedMsgs.size();