feat: implement service management API for VLM control
- Add /api/v1/mbe/health endpoint for status checks - Add /api/v2/service/start to start llama-server - Add /api/v2/service/stop to stop llama-server - Use TCP connection test for port detection (more reliable than lsof) - Add ps aux fallback for PID detection - Implement structured bilingual VLM tags - Add VLM integration documentation for Studio team Endpoints tested and working with Momentry Studio AdminView UI.
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>Monitor Test</title>
|
||||
</head>
|
||||
<body>
|
||||
<h1>Monitor API Test</h1>
|
||||
<pre id="output">Loading...</pre>
|
||||
<script>
|
||||
async function test() {
|
||||
try {
|
||||
const res = await fetch('/api/v1/monitor/running_jobs');
|
||||
const data = await res.json();
|
||||
document.getElementById('output').textContent = JSON.stringify(data, null, 2);
|
||||
} catch (e) {
|
||||
document.getElementById('output').textContent = 'Error: ' + e.message;
|
||||
}
|
||||
}
|
||||
test();
|
||||
setInterval(test, 5000);
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user