Create dev_ai.py
Browse files
ai-bot/services/dev_ai.py
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from core.llm import generate_response
|
| 2 |
+
from utils.security_scanner import scan_input
|
| 3 |
+
|
| 4 |
+
def dev_assistant(prompt: str):
|
| 5 |
+
if scan_input(prompt):
|
| 6 |
+
return "⚠️ Unsafe request blocked"
|
| 7 |
+
|
| 8 |
+
return generate_response(f"You are a secure coding assistant: {prompt}")
|