Add safeguard on prompt
Browse files- e2bqwen.py +1 -0
e2bqwen.py
CHANGED
|
@@ -228,6 +228,7 @@ class E2BVisionAgent(CodeAgent):
|
|
| 228 |
),
|
| 229 |
},
|
| 230 |
)
|
|
|
|
| 231 |
print("v3 PROMPT TEMPLATE:", self.prompt_templates["system_prompt"])
|
| 232 |
return system_prompt
|
| 233 |
|
|
|
|
| 228 |
),
|
| 229 |
},
|
| 230 |
)
|
| 231 |
+
assert system_prompt != self.prompt_templates["system_prompt"], "Populating prompt template failed"
|
| 232 |
print("v3 PROMPT TEMPLATE:", self.prompt_templates["system_prompt"])
|
| 233 |
return system_prompt
|
| 234 |
|