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

feat: remove deprecated extension HFInferenceEndpointsExtension #23

Merged
merged 2 commits into from
Nov 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,6 @@ omit = [
"tests/*",
"src/banks/extensions/docs.py",
# deprecated modules, to be removed
"src/banks/extensions/inference_endpoint.py",
"src/banks/extensions/generate.py",
]

Expand Down
2 changes: 0 additions & 2 deletions src/banks/env.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,10 @@ 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
from .extensions.inference_endpoint import HFInferenceEndpointsExtension # pylint: disable=import-outside-toplevel

_env.add_extension(ChatExtension)
_env.add_extension(CompletionExtension)
_env.add_extension(GenerateExtension)
_env.add_extension(HFInferenceEndpointsExtension)


# Init the Jinja env
Expand Down
3 changes: 1 addition & 2 deletions src/banks/extensions/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,5 @@
#
# SPDX-License-Identifier: MIT
from banks.extensions.generate import GenerateExtension
from banks.extensions.inference_endpoint import HFInferenceEndpointsExtension

__all__ = ("GenerateExtension", "HFInferenceEndpointsExtension")
__all__ = ("GenerateExtension",)
58 changes: 0 additions & 58 deletions src/banks/extensions/inference_endpoint.py

This file was deleted.