From 52da0727110613213b55345efbcac18418a143e0 Mon Sep 17 00:00:00 2001 From: Hugo Sampaio Date: Tue, 10 Dec 2024 16:54:57 -0300 Subject: [PATCH] Ticket Summary with detected language --- post/ai.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/post/ai.php b/post/ai.php index b3b15ca11..f2dec1b6b 100644 --- a/post/ai.php +++ b/post/ai.php @@ -92,7 +92,7 @@ } // Craft a prompt for ChatGPT - $prompt = "Summarize the following ticket and its responses in a concise and clear way. The summary should be short, highlight the main issue, the actions taken, and any resolution steps:\n\nTicket Subject: $ticket_subject\nTicket Details: $ticket_details\nReplies:$all_replies_text\n\nShort Summary:"; + $prompt = "Based on the language detection (case not detected use default English), dont show \"Language Detected\", and Summarize using this language, the following ticket and its responses in a concise and clear way. The summary should be short, highlight the main issue, the actions taken, and any resolution steps:\n\nTicket Subject: $ticket_subject\nTicket Details: $ticket_details\nReplies:$all_replies_text\n\nShort Summary:"; // Prepare the POST data $post_data = [