Incorporate French penal code and expand legal framework for content moderation
Update AI agent's legal framework to include French penal code, press law, and digital regulations, and update frontend to reflect new legal sources and rejection criteria. Replit-Commit-Author: Agent Replit-Commit-Session-Id: 923ae0e3-a363-4db8-b04a-e8baca2a1330 Replit-Commit-Checkpoint-Type: full_checkpoint Replit-Commit-Event-Id: d5df5b15-f2c9-4041-91be-f6bf0155cea0 Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/8af7d2ec-2cc3-4ece-8af3-9f071488d072/923ae0e3-a363-4db8-b04a-e8baca2a1330/nghZcOj Replit-Helium-Checkpoint-Created: true
This commit is contained in:
@@ -54,7 +54,9 @@ def get_client() -> OpenAI:
|
||||
|
||||
def filter_idea(content: str) -> dict:
|
||||
"""
|
||||
Filtre une idée selon le cadre légal international des droits humains.
|
||||
Filtre une idée selon le cadre légal international des droits humains
|
||||
et le droit pénal français (Code pénal, Loi du 29 juillet 1881, LCEN,
|
||||
Loi SREN 2024, RGPD, Code de la santé publique).
|
||||
Retourne : {"accepted": bool, "reason"?: str, "legal_basis"?: str}
|
||||
"""
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user