UPDATE 03-Nov
This commit is contained in:
@@ -74,6 +74,14 @@ public class ConversationContextMapper {
|
||||
text += " " + entry.parameters().toString();
|
||||
}
|
||||
|
||||
if (entry.type() == MessageType.AGENT) {
|
||||
text = cleanAgentMessage(text);
|
||||
}
|
||||
|
||||
return text;
|
||||
}
|
||||
|
||||
private String cleanAgentMessage(String message) {
|
||||
return message.replaceAll("\\s*\\{.*\\}\\s*$", "").trim();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user