diff --git a/api/nonreg-master.php b/api/nonreg-master.php index 15e74cc50..cbccaac62 100644 --- a/api/nonreg-master.php +++ b/api/nonreg-master.php @@ -16,7 +16,7 @@ function api($msg,$mode='full',$to=30){ // V77: throttle to prevent FPM worker saturation on rapid-fire calls static $lastCall = 0; $now = microtime(true); - if ($lastCall > 0 && ($now - $lastCall) < 0.8) { usleep((int)((0.8 - ($now - $lastCall)) * 1000000)); } + if ($lastCall > 0 && ($now - $lastCall) < 1.2) { usleep((int)((1.2 - ($now - $lastCall)) * 1000000)); } $lastCall = microtime(true); curl_setopt_array($ch,[ CURLOPT_POST=>1,CURLOPT_RETURNTRANSFER=>1,CURLOPT_TIMEOUT=>$to, @@ -42,7 +42,7 @@ $d1=api('Quels services cybersécurité?');$r1=$d1['response']??''; t('Réponse cybersécurité',stripos($r1,'curit')!==false||stripos($r1,'sentinel')!==false,strlen($r1).'c'); t('Accents français',preg_match('/[éèêàçùô]/',$r1)===1); t('Provider identifié',!empty($d1['provider']),$d1['provider']??'?'); -$d2=api('Bonjour','fast',15);t('Greeting fast',strlen($d2['response']??'')>5); +$d2=api('Bonjour','fast',30);t('Greeting fast',strlen($d2['response']??'')>5); $d3=api('Migration SAP S4HANA');t('Expertise SAP',stripos($d3['response']??'','sap')!==false,strlen($d3['response']??'').'c'); $d4=api('IA souveraine definition');t('IA souveraine',stripos($d4['response']??'','souverain')!==false); $d5=api('Combien de produits SaaS');t('Connaissance produits',strpos($d5['response']??'','54')!==false||stripos($d5['response']??'','produit')!==false); diff --git a/api/v83-business-kpi-latest.json b/api/v83-business-kpi-latest.json index f76f6ef6a..2f127c7b8 100644 --- a/api/v83-business-kpi-latest.json +++ b/api/v83-business-kpi-latest.json @@ -1,7 +1,7 @@ { "ok": true, "version": "V83-business-kpi", - "ts": "2026-04-20T02:10:13+00:00", + "ts": "2026-04-20T02:13:34+00:00", "summary": { "total_categories": 7, "total_kpis": 56,