-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: remove deprecated 'generate' and 'run_prompt' (#28)
* chore: remove deprecated 'generate' and 'run_prompt' * lint
- Loading branch information
Showing
11 changed files
with
1 addition
and
204 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
# SPDX-FileCopyrightText: 2023-present Massimiliano Pippi <[email protected]> | ||
# | ||
# SPDX-License-Identifier: MIT | ||
from jinja2 import Environment, PackageLoader, select_autoescape | ||
from jinja2 import Environment, select_autoescape | ||
|
||
from .config import config | ||
from .filters import cache_control, image, lemmatize, tool | ||
|
@@ -15,16 +15,13 @@ def _add_extensions(_env): | |
""" | ||
from .extensions.chat import ChatExtension # pylint: disable=import-outside-toplevel | ||
from .extensions.completion import CompletionExtension # pylint: disable=import-outside-toplevel | ||
from .extensions.generate import GenerateExtension # pylint: disable=import-outside-toplevel | ||
|
||
_env.add_extension(ChatExtension) | ||
_env.add_extension(CompletionExtension) | ||
_env.add_extension(GenerateExtension) | ||
|
||
|
||
# Init the Jinja env | ||
env = Environment( | ||
loader=PackageLoader("banks", "internal"), | ||
autoescape=select_autoescape( | ||
enabled_extensions=("html", "xml"), | ||
default_for_string=False, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.