nothumanallowed 13.5.94 → 13.5.95
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/commands/ui.mjs +1 -1
- package/src/services/web-ui.mjs +3 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nothumanallowed",
|
|
3
|
-
"version": "13.5.
|
|
3
|
+
"version": "13.5.95",
|
|
4
4
|
"description": "NotHumanAllowed — 38 AI agents, 80 tools, Studio (visual agentic workflows). Email, calendar, browser automation, screen capture, canvas, cron/heartbeat, Alexandria E2E messaging, GitHub, Notion, Slack, voice chat, free AI (Liara), 28 languages. Zero-dependency CLI.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
package/src/commands/ui.mjs
CHANGED
|
@@ -3856,7 +3856,7 @@ ${completedHeadings ? `## SECTIONS ALREADY WRITTEN (headings only):\n${completed
|
|
|
3856
3856
|
return;
|
|
3857
3857
|
}
|
|
3858
3858
|
try {
|
|
3859
|
-
const result = await callLLM(config, body.system, body.user, { max_tokens: body.max_tokens || 8192, temperature: 0.
|
|
3859
|
+
const result = await callLLM(config, body.system, body.user, { max_tokens: body.max_tokens || 8192, temperature: 0.3 });
|
|
3860
3860
|
sendJSON(res, 200, { text: result });
|
|
3861
3861
|
} catch (e) {
|
|
3862
3862
|
sendJSON(res, 500, { error: e.message });
|
package/src/services/web-ui.mjs
CHANGED
|
@@ -8294,8 +8294,9 @@ async function wcCallLLMRaw(sys, user, signal, maxTok) {
|
|
|
8294
8294
|
}
|
|
8295
8295
|
if (r.status < 500 || attempt === 2) {
|
|
8296
8296
|
var errBody = '';
|
|
8297
|
-
try { var
|
|
8298
|
-
|
|
8297
|
+
try { var errText = await r.text(); try { errBody = JSON.parse(errText).error || errText; } catch(_) { errBody = errText; } } catch(_) {}
|
|
8298
|
+
console.warn('[WebCraft] LLM ' + r.status + ' attempt=' + attempt + ':', errBody.slice(0, 300));
|
|
8299
|
+
throw new Error('LLM error ' + r.status + (errBody ? ': ' + errBody.slice(0, 120) : ''));
|
|
8299
8300
|
}
|
|
8300
8301
|
await new Promise(function(resolve) { setTimeout(resolve, 2000); });
|
|
8301
8302
|
}
|