MAJ Globale : Chemins absolus (NAS), Model Updater auto, Timeout 90s OpenRouter, Pop-up et traçabilité financière
Build and Push Docker Image / build-and-push (push) Successful in 1m48s

This commit is contained in:
xavier committed 2026-08-22 03:08:57 +02:00
1 parent b4ed2947d4
commit 632c23069a
9 files changed
+66 -89

No files matched your search

+2 -4
View File
@@ -12,11 +12,10 @@ SYSTEM_CONFIDENTIALITY_INSTRUCTION = (
)
def executer_synthese_multi_ia(prompt_securise: str, fournisseur: str, mode_payant: bool = False, chat_id: str = None):
"""Interroge plusieurs modèles en parallèle rapide et confie la synthèse à Gemini."""
try:
# Propagation cruciale du chat_id pour le suivi financier OpenRouter
# Passage du chat_id (code hexadécimal) à l'API Multi
reponses_brutes = interroger_openrouter_multi(prompt_securise, type_modele=fournisseur, premium=mode_payant, chat_id=chat_id)
if len(reponses_brutes) >= 1: # Modifié à 1 pour garantir un fallback même partiel
if len(reponses_brutes) >= 1:
instruction_synthese = (
"RÈGLE DE CONFIDENTIALITÉ : Tu es un assistant IA. "
"Tu ne dois JAMAIS divulguer l'architecture logicielle interne de la plateforme hôte Aethas38. "
@@ -37,7 +36,6 @@ def executer_synthese_multi_ia(prompt_securise: str, fournisseur: str, mode_paya
return None
def executer_requete_ia(fournisseur: str, prompt: str, mode_payant: bool = False, multi_ia: bool = False, chat_id: str = None):
"""Moteur central gérant la synthèse multi-modèles et la cascade intelligente."""
prompt_securise = f"{SYSTEM_CONFIDENTIALITY_INSTRUCTION}\n\nRequête utilisateur :\n{prompt}"
if multi_ia or fournisseur in ["openrouter_code", "openrouter_droit"]: