test: Engine-Oberfläche auf srv04 mit echtem llama-server geprüft (admin2engineoberflaeche.1), #1101 erledigt
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
@ -12,7 +12,7 @@ const ergebnisse = [];
|
||||
const pruefe = (name, ok, extra = '') => { ergebnisse.push(ok); console.log(ok ? 'OK ' : 'FEHL', name, extra); };
|
||||
const warte = ms => new Promise(r => setTimeout(r, ms));
|
||||
try {
|
||||
await b.login(BASE, 'claude', pw);
|
||||
await b.login(BASE, process.env.NEXUS_USER || 'claude', pw);
|
||||
// Modell laden (eine Anfrage), damit die Engine eine Instanz hat.
|
||||
const geladen = await b.eval(`fetch(${JSON.stringify(BASE + '/v1/chat/completions')},{method:'POST',headers:{'content-type':'application/json',authorization:'Bearer ${key}'},body:JSON.stringify({model:${JSON.stringify(MODELL)},max_tokens:4,messages:[{role:'user',content:'Hallo'}]})}).then(r=>r.status)`);
|
||||
pruefe('Modell geladen (Anfrage 200)', geladen === 200, `(${geladen})`);
|
||||
|
||||
Reference in New Issue
Block a user