From b424f13ddca539983c9a2f8da197e13b85c6dc6e Mon Sep 17 00:00:00 2001 From: Max Date: Sun, 25 May 2025 11:34:44 +0800 Subject: [PATCH] Update system time message format in API response - Changed the system time message to include a name field and a more descriptive content format for clarity. - Added a development log comment for the DUI platform to enhance code documentation. --- neo/assistant/api.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/neo/assistant/api.go b/neo/assistant/api.go index c207742d..fdde4956 100644 --- a/neo/assistant/api.go +++ b/neo/assistant/api.go @@ -960,7 +960,8 @@ func formatMessages(messages []map[string]interface{}) []map[string]interface{} filteredMessages := []map[string]interface{}{ { "role": "system", - "content": "Current time: " + time.Now().Format(time.RFC3339), + "name": "SYSTEM_TIME", + "content": "System Time: " + time.Now().Format(time.RFC3339) + "\n\n" + "It's the system time, please use it for reference.", }, } seen := make(map[string]bool) @@ -1084,6 +1085,7 @@ func formatMessages(messages []map[string]interface{}) []map[string]interface{} lastMessage = msg } + // Development log for DUI platform return mergedMessages }