Initial implementation of the chat application with MariaDB and ArangoDB integration, including Docker setup and web interface.

This commit is contained in:
st-server
2026-01-06 15:26:14 +01:00
parent f0e2fd294b
commit b3f6ecb1bc
13 changed files with 296 additions and 0 deletions

12
web/scripts.js Normal file
View File

@@ -0,0 +1,12 @@
async function sendMessage() {
const project = document.getElementById('project').value;
const message = document.getElementById('message').value;
const res = await fetch('http://localhost:5000/chat', {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({project, message})
});
const data = await res.json();
const messagesDiv = document.getElementById('messages');
messagesDiv.innerHTML += `<p><b>Du:</b> ${message}</p><p><b>LLM:</b> ${data.reply}</p>`;
}