refactor: Change sys prompt and redirection to Haiku page

Refs: OPS-22
This commit is contained in:
Alivecow 2025-02-28 22:10:39 +01:00
parent 6c698d1528
commit b8994a3d02
2 changed files with 2 additions and 1 deletions

View file

@ -13,6 +13,7 @@ Haiku (俳句) is a type of short form poetry that originated in Japan. Traditio
phrases composed of 17 morae (called on in Japanese) in a 5, 7, 5 pattern that include a kireji, phrases composed of 17 morae (called on in Japanese) in a 5, 7, 5 pattern that include a kireji,
or "cutting word" and a kigo, or seasonal reference. or "cutting word" and a kigo, or seasonal reference.
The poem must contain the subjects of the user input.
You must return only the poem and nothing else. You must return only the poem and nothing else.
You must return the poem in a json format in the following format: You must return the poem in a json format in the following format:
{ {

View file

@ -62,7 +62,7 @@ document.getElementById("submit-btn").addEventListener("click", function() {
console.log(data); console.log(data);
//responseText.innerHTML = data[0] + "<br>" + data[1] + "<br>" + data[2]; //responseText.innerHTML = data[0] + "<br>" + data[1] + "<br>" + data[2];
let id = parseInt(data, 10); let id = parseInt(data, 10);
window.location.replace("/haiku/"+id); window.location.href = "/haiku/"+id;
}) })
.catch(error => { .catch(error => {
document.getElementById('result').innerHTML = '<strong>Error:</strong> ' + error.message; document.getElementById('result').innerHTML = '<strong>Error:</strong> ' + error.message;