mirror of
https://github.com/msoedov/agentic_security.git
synced 2026-06-24 06:09:55 +02:00
fix(make more robust process_prompt):
This commit is contained in:
@@ -84,6 +84,9 @@ async def process_prompt(
|
||||
logger.error(f"Jason error: {json_decode_error}")
|
||||
errors.append((module_name, prompt, "?", str(json_decode_error)))
|
||||
return tokens, True
|
||||
except Exception:
|
||||
logger.exception("Oups")
|
||||
return tokens, False
|
||||
|
||||
|
||||
async def process_prompt_batch(
|
||||
|
||||
Reference in New Issue
Block a user