Skip to content

Commit 00a3eca

Browse files
authored
chore: remove deprecated LightningLLM class (#63)
1 parent 2f8f9ae commit 00a3eca

File tree

4 files changed

+5
-19
lines changed

4 files changed

+5
-19
lines changed

setup.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,8 @@ def _prepare_extras(requirements_dir: str = _PATH_REQUIRES, skip_files: tuple =
7171
install_requires=_load_requirements(),
7272
extras_require=_prepare_extras(),
7373
project_urls={
74-
"Bug Tracker": "https://github.com/Lightning-AI/LightningLLM/issues",
75-
"Documentation": "https://lightning-ai.github.io/LightningLLM/",
76-
"Source Code": "https://github.com/Lightning-AI/LightningLLM",
74+
"Bug Tracker": "https://github.com/Lightning-AI/litAI/issues",
75+
"Source Code": "https://github.com/Lightning-AI/litAI",
7776
},
7877
classifiers=[
7978
"Environment :: Console",

src/litai/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414
"""Chat with LLMs through Lightning."""
1515

1616
from litai.__about__ import * # noqa: F401, F403
17-
from litai.llm import LLM, LightningLLM # noqa: F401
17+
from litai.llm import LLM # noqa: F401
1818
from litai.llm_config import Models
1919
from litai.tools import LitTool, tool
2020

21-
__all__ = ["LLM", "Models", "LitTool", "tool", "LightningLLM"]
21+
__all__ = ["LLM", "Models", "LitTool", "tool"]

src/litai/llm.py

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -530,16 +530,3 @@ def __repr__(self) -> str:
530530
str: A string representation of the instance.
531531
"""
532532
return f"<LLM model={self.model} fallback_models={self.fallback_models} max_retries={self.max_retries}"
533-
534-
535-
class LightningLLM(LLM):
536-
"""Alias for the LightningLLM class."""
537-
538-
def __init__(self, *args: Any, **kwargs: Any) -> None:
539-
"""Initializes the LightningLLM client."""
540-
super().__init__(*args, **kwargs)
541-
warnings.warn(
542-
"The LightningLLM class is deprecated. Use the LLM class instead.",
543-
DeprecationWarning,
544-
stacklevel=2,
545-
)

tests/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
"""LightningLLM tests."""
1+
"""LitAI tests."""
22
# Copyright The Lightning AI team.
33
#
44
# Licensed under the Apache License, Version 2.0 (the "License");

0 commit comments

Comments
 (0)