File tree Expand file tree Collapse file tree 3 files changed +7
-1
lines changed
llm_router_web/web/anonymizer Expand file tree Collapse file tree 3 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -124,8 +124,13 @@ def chat_message():
124124 chat = "❌ GenAI selected but no model provided. Please select a model." ,
125125 )
126126
127+ print ("algorithm=" , algorithm )
128+ print ("algorithm=" , algorithm )
129+ print ("algorithm=" , algorithm )
130+
127131 payload = {
128132 "stream" : False ,
133+ "anonymize" : algorithm != "no_anno" ,
129134 "model" : model_name or "google/gemma-3-12b-it" ,
130135 "messages" : [{"role" : "user" , "content" : user_msg }],
131136 }
Original file line number Diff line number Diff line change @@ -25,6 +25,7 @@ <h2>💬 LLM‑Router Chat</h2>
2525 < option value ="fast " selected > Fast Masking</ option >
2626 < option value ="genai "> GenAI Anonymisation</ option >
2727 < option value ="priv "> Priv Masker</ option >
28+ < option value ="no_anno "> Dont anonymize</ option >
2829 </ select >
2930
3031 <!-- New: model selector – populated from our own `/anonymize/models` endpoint -->
Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ export LLM_ROUTER_REDIS_PORT=${LLM_ROUTER_REDIS_PORT:-6379}
4949# ==================================================================================
5050# Data protection (additional endpoints will be available)
5151export LLM_ROUTER_FORCE_ANONYMISATION=${LLM_ROUTER_FORCE_ANONYMISATION:- 0}
52- export LLM_ROUTER_ENABLE_GENAI_ANONYMIZE_TEXT_EP=${LLM_ROUTER_ENABLE_GENAI_ANONYMIZE_TEXT_EP:- 0 }
52+ export LLM_ROUTER_ENABLE_GENAI_ANONYMIZE_TEXT_EP=${LLM_ROUTER_ENABLE_GENAI_ANONYMIZE_TEXT_EP:- 1 }
5353
5454
5555# ==================================================================================
You can’t perform that action at this time.
0 commit comments