Skip to content

Commit d35d6a9

Browse files
authored
Merge pull request #1117 from ssteeltm/master
Ticket Summary with detected language
2 parents bb6a1c3 + 52da072 commit d35d6a9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

post/ai.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@
9292
}
9393

9494
// Craft a prompt for ChatGPT
95-
$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:";
95+
$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:";
9696

9797
// Prepare the POST data
9898
$post_data = [

0 commit comments

Comments
 (0)