Wave 114 auto

This commit is contained in:
Yanis Mahboub
2026-04-13 05:08:37 +02:00
parent 197b8fa48b
commit 3eb3d2a9b4
2 changed files with 12 additions and 2 deletions

View File

@@ -1468,6 +1468,16 @@
"id": "vault_semantic",
"kw": "semantic.*search|recherche.*semantique|obsidian.*semantic",
"api": "GET:/api/wevia-vault-search.php?q="
},
{
"id": "smart_route",
"kw": "smart.*rout|route.*intelligent|optimi.*token|baiss.*token|economis.*token",
"api": "POST:/api/wevia-smart-router.php"
},
{
"id": "token_savings",
"kw": "token.*saving|economie.*token|combien.*token|cout.*token",
"api": "GET:/api/wevia-action-engine.php?action=exec_s204&cmd=echo+TIER0:214+tools+0token;+echo+TIER1:Cerebras+Groq+0EUR;+echo+TIER2:Ollama+local+0EUR;+echo+TIER3:Claude+JAMAIS+appele+par+Master;+echo+SAVINGS:+80pct+requests+tier0+tier1"
}
]
}

View File

@@ -1,8 +1,8 @@
<?php
// wevia-strategic-guard.php — Guard centralisé pour questions business
function is_strategic_question($msg) {
if (mb_strlen($msg) < 80) return false;
return (bool)preg_match('/(strateg|monetis|revenu|business|chiffre.*affaire|generer.*cash|propose.*piste|plan.*action|comment.*gagner|make.*money|rentabil|ROI|pricing|go.*market|pitch|vendre|commercial|consultant|McKinsey|analyse.*situation|comment.*convertir|opportunit|marche.*cible|segment|prospect|offer.*commerc|positionnement|concurren|differenci|avantage.*compet|value.*prop|lean.*canvas|business.*model|plan.*financ|tresorerie|facturer|tarif|devis|client.*potentiel|acquisition|retention|churn|growth|scale|levee.*fond|investor|startup|saas.*pricing|freemium|premium|upsell|cross.*sell|pipeline.*commercial|forecast|budget|marge|benefice)/iu', $msg);
if (mb_strlen($msg) < 30) return false;
return (bool)preg_match('/(strateg|monetis|revenu|business|chiffre.*affaire|generer.*cash|propose.*piste|plan.*action|comment.*gagner|make.*money|rentabil|ROI|pricing|go.*market|pitch|vendre|commercial|consultant|McKinsey|analyse.*situation|comment.*convertir|opportunit|marche.*cible|segment|prospect|offer.*commerc|positionnement|concurren|differenci|avantage.*compet|value.*prop|lean.*canvas|business.*model|plan.*financ|tresorerie|facturer|tarif|devis|client.*potentiel|acquisition|retention|churn|growth|scale|levee.*fond|investor|startup|saas.*pricing|freemium|premium|upsell|cross.*sell|pipeline.*commercial|forecast|budget|marge|benefice|elevator|presentation|weval.*consult|souverain|doctrine|philosophie|approche.*weval|methodo|expertise|offre.*weval|cabinet|transformation.*digital|industrie|pharma|banque|telecom)/iu', $msg);
}
// Force cloud provider for strategic questions (skip weak Ollama 4B)