'https://127.0.0.1/api/weval-ia',CURLOPT_POST=>1,CURLOPT_POSTFIELDS=>json_encode(['message'=>$m,'mode'=>'fast']),CURLOPT_HTTPHEADER=>['Content-Type:application/json','Cookie:PHPSESSID=relay;weval_user=yacine','Host:weval-consulting.com'],CURLOPT_RETURNTRANSFER=>1,CURLOPT_SSL_VERIFYPEER=>0,CURLOPT_SSL_VERIFYHOST=>0,CURLOPT_TIMEOUT=>25]); $r=curl_exec($c); curl_close($c); $d=json_decode($r,1); $resp=$d['response']??$d['result']??''; $prov=$d['provider']??$d['action']??'?'; echo json_encode(['p'=>$prov,'b'=>base64_encode($resp),'l'=>strlen($resp),'f'=>$d['functions_loaded']??0]);