#Safety concerns on using eval() on a completion

1 messages · Page 1 of 1 (latest)

green tartan
#

Any precautions I should take when using eval() on a completion's return?

I ask the AI to generate a Python list of possible options and use eval() to convert it to an actual list. I am using functions to ensure that it works as I intend. The prompt is sent by my script (not the user) but I want to know if there is anything I should be careful of.

#

Safety concerns on using eval() on a completion

tepid bridge