diff --git a/api/wevia-sse-orchestrator.php b/api/wevia-sse-orchestrator.php index a78357e93..64800322f 100644 --- a/api/wevia-sse-orchestrator.php +++ b/api/wevia-sse-orchestrator.php @@ -6,7 +6,7 @@ set_time_limit(120); ob_implicit_flush(true); while(ob_get_level())ob_end_flush(); function sse($d){echo 'data: '.json_encode($d,JSON_UNESCAPED_UNICODE)."\n\n";flush();} -$msg=$_GET['msg']??''; +$msg=$_GET['msg']??'';if(!$msg){$__b=@json_decode(@file_get_contents('php://input'),true);$msg=$__b['message']??$__b['msg']??'';} if(!$msg){sse(['error'=>'msg required']);exit;} sse(['type'=>'start','task'=>$msg,'ts'=>date('H:i:s')]); diff --git a/ethica-chatbot.html b/ethica-chatbot.html index 2e3b09b40..964832eac 100644 --- a/ethica-chatbot.html +++ b/ethica-chatbot.html @@ -72,8 +72,8 @@ header .st .l{font-size:9px;color:var(--tx2);text-transform:uppercase}