mirror of
https://github.com/khoaliber/khoj.git
synced 2026-03-09 05:39:12 +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
|
safe: bool
|
||||||
reason: Optional[str] = ""
|
reason: Optional[str] = ""
|
||||||
|
|
||||||
|
response = None
|
||||||
with timer("Chat actor: Check if safe prompt", logger):
|
with timer("Chat actor: Check if safe prompt", logger):
|
||||||
try:
|
try:
|
||||||
response = await send_message_to_model_wrapper(
|
response = await send_message_to_model_wrapper(
|
||||||
|
|||||||
Reference in New Issue
Block a user