Skip to content

Commit 7f973bb

Browse files
author
Paweł Kędzia
committed
Remove GenAI and Priv masking options and related backend checks from anonymizer UI and routes.
1 parent 69a89b8 commit 7f973bb

File tree

3 files changed

+0
-15
lines changed

3 files changed

+0
-15
lines changed

llm_router_web/web/anonymizer/routes.py

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -117,17 +117,6 @@ def chat_message():
117117
algorithm = request.form.get("algorithm", "fast")
118118
model_name = request.form.get("model_name", "").strip()
119119

120-
# If GenAI was chosen but no model supplied, inform the user.
121-
if algorithm == "genai" and not model_name:
122-
return render_template(
123-
"chat_partial.html",
124-
chat="❌ GenAI selected but no model provided. Please select a model.",
125-
)
126-
127-
print("algorithm=", algorithm)
128-
print("algorithm=", algorithm)
129-
print("algorithm=", algorithm)
130-
131120
payload = {
132121
"stream": False,
133122
"anonymize": algorithm != "no_anno",

llm_router_web/web/anonymizer/templates/anonymize.html

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,6 @@ <h2>🔒 Text Anonymization</h2>
2121
class="btn"
2222
style="width:auto;">
2323
<option value="fast" selected>Fast Masking</option>
24-
<option value="genai">GenAI Anonymisation</option>
25-
<option value="priv">Priv Masker</option>
2624
</select>
2725

2826
<button type="submit" class="btn primary">🚀 Anonymize</button>

llm_router_web/web/anonymizer/templates/chat.html

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,6 @@ <h2>💬 LLM‑Router Chat</h2>
2323
class="btn"
2424
style="width:auto;">
2525
<option value="fast" selected>Fast Masking</option>
26-
<option value="genai">GenAI Anonymisation</option>
27-
<option value="priv">Priv Masker</option>
2826
<option value="no_anno">Dont anonymize</option>
2927
</select>
3028

0 commit comments

Comments
 (0)