mirror of
https://github.com/khoaliber/khoj.git
synced 2026-03-02 13:18:18 +00:00
Fix unbound response var exception in agent safety checker
This commit is contained in:
@@ -324,6 +324,7 @@ async def acheck_if_safe_prompt(system_prompt: str, user: KhojUser = None, lax:
|
||||
safe: bool
|
||||
reason: Optional[str] = ""
|
||||
|
||||
response = None
|
||||
with timer("Chat actor: Check if safe prompt", logger):
|
||||
try:
|
||||
response = await send_message_to_model_wrapper(
|
||||
|
||||
Reference in New Issue
Block a user