Skip to content

Commit 73da8f8

Browse files
harupyhwchase17
andauthored
Remove unused Params (langchain-ai#14385)
<!-- Thank you for contributing to LangChain! Replace this entire comment with: - **Description:** a description of the change, - **Issue:** the issue # it fixes (if applicable), - **Dependencies:** any dependencies required for this change, - **Tag maintainer:** for a quicker response, tag the relevant maintainer (see below), - **Twitter handle:** we announce bigger features on Twitter. If your PR gets announced, and you'd like a mention, we'll gladly shout you out! Please make sure your PR is passing linting and testing before submitting. Run `make format`, `make lint` and `make test` to check this locally. See contribution guidelines for more information on how to write/run tests, lint, etc: https://github.com/langchain-ai/langchain/blob/master/.github/CONTRIBUTING.md If you're adding a new integration, please include: 1. a test for the integration, preferably unit tests that do not rely on network access, 2. an example notebook showing its use. It lives in `docs/extras` directory. If no one reviews your PR within a few days, please @-mention one of @baskaryan, @eyurtsev, @hwchase17. --> Removes unused `Params` in `libs/langchain/langchain/llms/mlflow.py`. Co-authored-by: Harrison Chase <hw.chase.17@gmail.com>
1 parent b65e579 commit 73da8f8

File tree

1 file changed

+1
-12
lines changed
  • libs/community/langchain_community/llms

1 file changed

+1
-12
lines changed

libs/community/langchain_community/llms/mlflow.py

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,7 @@
55

66
from langchain_core.callbacks import CallbackManagerForLLMRun
77
from langchain_core.language_models import LLM
8-
from langchain_core.pydantic_v1 import BaseModel, Extra, Field, PrivateAttr
9-
10-
11-
# Ignoring type because below is valid pydantic code
12-
# Unexpected keyword argument "extra" for "__init_subclass__" of "object"
13-
class Params(BaseModel, extra=Extra.allow): # type: ignore[call-arg]
14-
"""Parameters for MLflow"""
15-
16-
temperature: float = 0.0
17-
n: int = 1
18-
stop: Optional[List[str]] = None
19-
max_tokens: Optional[int] = None
8+
from langchain_core.pydantic_v1 import Field, PrivateAttr
209

2110

2211
class Mlflow(LLM):

0 commit comments

Comments
 (0)