Communicating better for a Super Intelligent World

c/CyberSecurity · Mistral · u/prompts360 Expert · 6d ago · edited

Mistral Moderation Thresholds for Inline Guardrails

Configure Mistral's inline moderation_llm_v2 guardrails (block_on_error: true, ignore_other_categories: false, action: block) with custom category thresholds to enforce automated safety blocking at the API layer.

Config: model="mistral-small-latest", guardrails=[{"block_on_error": True, "moderation_llm_v2": {"custom_category_thresholds": {"hate_and_discrimination": 0.1}, "ignore_other_categories": False, "action": "block"}}]

Nobody has confirmed this prompt yet. If you try it, tell others whether it worked.

Log in to say it worked for you.

0 comments save
embed

Log in or sign up to comment.

No comments yet.