https://promptfoo.dev/ logo
Suggestion relative to python executable in provid...
# ❓|questions
a
Hi ! I'm glad to be able to use different python bin for each provider But now we have to put the exact path from the root However, if we want to share the configuration (with may be a script to install each one of the different env) it won't work because of "/home/$USER/" I tried to use "~/" but it didn't work  Is there another way of writing it in the configuration file to take into account the home space of the user launching promtfoo? Thanks in advance for your responses !
i
You might want to use the
PROMPTFOO_PYTHON
environment variable. You can set this per-system and because it's an environment variable, create it using another environment variable like
$HOME
. For example:
Copy code
PROMPTFOO_PYTHON="$HOME/path/to/python" promptfoo eval
a
Because of librairies incompatibilities (using different kind of models) : I use different python environement 1 for each model familly tested So I use
PROMPTFOO_PYTHON
for the general env (eg : the scoring script) but I have also to use the
pythonExecutable
var in the configuration and it is in this case that the
$HOME
doesn't work neither the
~/
2 Views