Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable loading jinja2 PromptTemplate from file. #10252

Merged
merged 3 commits into from
Oct 10, 2023
Merged

Commits on Sep 5, 2023

  1. Disable loading jinja2 PromptTemplate from file.

    jinja2 templates are not sandboxed and are at risk for arbitrary code
    execution. To mitigate this risk:
    - We no longer support loading jinja2-formatted prompt template files.
    - `PromptTemplate` with jinja2 may still be constructed manually, but
      the class carries a security warning reminding the user to not pass
      untrusted input into it.
    
    Resolves #4394.
    obi1kenobi committed Sep 5, 2023
    Configuration menu
    Copy the full SHA
    b574d72 View commit details
    Browse the repository at this point in the history
  2. Fix lint.

    obi1kenobi committed Sep 5, 2023
    Configuration menu
    Copy the full SHA
    68c57ad View commit details
    Browse the repository at this point in the history
  3. Add warnings.

    obi1kenobi committed Sep 5, 2023
    Configuration menu
    Copy the full SHA
    ded7be4 View commit details
    Browse the repository at this point in the history