Skip to content

Commit

Permalink
Ticket Summary with detected language
Browse files Browse the repository at this point in the history
  • Loading branch information
ssteeltm committed Dec 10, 2024
1 parent 1e05c7d commit 52da072
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion post/ai.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [
Expand Down

0 comments on commit 52da072

Please sign in to comment.