mirror of
https://github.com/itflow-org/itflow
synced 2026-02-28 02:44:53 +00:00
add ticket description to AI Query
This commit is contained in:
@@ -13,7 +13,7 @@ if (isset($_GET['ai_reword'])) {
|
||||
$input = json_decode($inputJSON, TRUE); // Convert JSON into array.
|
||||
|
||||
// Prefix the input text with "reword: "
|
||||
$prefixedText = "reword: " . $input['text'];
|
||||
$prefixedText = "You are a technician at a help desk, training another technician. This is a response to the following issue " . $input['description'] . " Help me reword this for clarity and proffesionalism: " . $input['text'];
|
||||
|
||||
// Preparing the data for the OpenAI Chat API request.
|
||||
$data = [
|
||||
|
||||
Reference in New Issue
Block a user