Api key via web interface

This commit is contained in:
Alex
2023-02-06 23:37:18 +00:00
parent 94063649b2
commit 4bbc7ee1a0
6 changed files with 585 additions and 28 deletions

View File

@@ -19,7 +19,8 @@ if (el) {
headers: {
'Content-Type': 'application/json',
},
body: JSON.stringify({question: message}),
body: JSON.stringify({question: message, api_key: localStorage.getItem('apiKey')}),
})
.then(response => response.json())
.then(data => {