Skip to content

Commit

Permalink
adding deprecation import
Browse files Browse the repository at this point in the history
  • Loading branch information
jmansdorfer committed Dec 19, 2024
1 parent 68ae3ff commit 0025472
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion libs/community/langchain_community/llms/predictionguard.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import logging
from typing import Any, Dict, List, Optional, Union

from langchain_core._api.deprecation import deprecated
from langchain_core.callbacks import CallbackManagerForLLMRun
from langchain_core.language_models.llms import LLM
from langchain_core.utils import get_from_dict_or_env
Expand All @@ -12,7 +13,9 @@


@deprecated(
since="0.3.28", removal="1.0", alternative_import="langchain_predictionguard.PredictionGuard"
since="0.3.28",
removal="1.0",
alternative_import="langchain_predictionguard.PredictionGuard"
)
class PredictionGuard(LLM):
"""Prediction Guard large language models.
Expand Down

0 comments on commit 0025472

Please sign in to comment.