Start: Give the user a hint when a module can't be imported

If an ImportError or ModuleNotFoundError is raised, tell the user
to run the update scripts.

Signed-off-by: kingbri <bdashore3@proton.me>
This commit is contained in:
kingbri 2024-08-03 21:56:53 -04:00
parent 1aa934664c
commit b6d2676f1c
3 changed files with 23 additions and 10 deletions

View file

@ -51,7 +51,7 @@ class PromptTemplate:
raise ImportError(
"Parsing these chat completion messages requires jinja2 3.0.0 "
f"or greater. Current version: {package_version('jinja2')}\n"
"Please upgrade jinja by running the following command: "
"Please update jinja by running the following command: "
"pip install --upgrade jinja2"
)