auto-opus-msgfix

This commit is contained in:
Yanis Mahboub
2026-04-16 01:30:00 +02:00
parent f4221ce59d
commit ecb76d978a

View File

@@ -5843,6 +5843,9 @@ if ($s95_ok) { $decoded = @json_decode($s95, true); if (is_array($decoded)) $s95
return null;
}
// OPUS-FIX: Initialize $msg from pipeline input
if (!isset($msg)) { $msg = $_JIN['message'] ?? $_POST['message'] ?? $_GET['message'] ?? ''; }
function mr_route($userMessage, $systemPrompt = '', $history = [], $options = []) {
// STRATEGIC GUARD: long business questions go direct to LLM, skip pattern matching
require_once __DIR__ . '/wevia-strategic-guard.php';