Update AI prompting

This commit is contained in:
o-psi
2024-02-21 18:13:10 +00:00
parent b31f1b4c49
commit 06ce12ba47
2 changed files with 11 additions and 3 deletions

View File

@@ -14,7 +14,11 @@ document.getElementById('rewordButton').addEventListener('click', function() {
headers: {
'Content-Type': 'application/json',
},
body: JSON.stringify({ text: textInput.value, description: ticketDescription.value }),
// Body with the text to reword and the ticket description
body: JSON.stringify({
text: textInput.value,
ticketDescription: ticketDescription.innerText.valueOf(),
}),
})
.then(response => response.json())
.then(data => {