m-ric HF Staff commited on
Commit
cd2f7bf
·
1 Parent(s): a80b094

Add safeguard on prompt

Browse files
Files changed (1) hide show
  1. 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