diff --git a/libs/core/langchain_core/language_models/base.py b/libs/core/langchain_core/language_models/base.py index cfa2b4fe34f91..d01247991a68e 100644 --- a/libs/core/langchain_core/language_models/base.py +++ b/libs/core/langchain_core/language_models/base.py @@ -61,8 +61,7 @@ def _get_token_ids_default_method(text: str) -> List[int]: class BaseLanguageModel( - RunnableSerializable[LanguageModelInput, LanguageModelOutputVar], - ABC, + RunnableSerializable[LanguageModelInput, LanguageModelOutputVar], ABC ): """Abstract base class for interfacing with language models. diff --git a/libs/core/langchain_core/language_models/chat_models.py b/libs/core/langchain_core/language_models/chat_models.py index 29abfc9bc3d13..6279116093e5f 100644 --- a/libs/core/langchain_core/language_models/chat_models.py +++ b/libs/core/langchain_core/language_models/chat_models.py @@ -26,10 +26,7 @@ Callbacks, ) from langchain_core.globals import get_llm_cache -from langchain_core.language_models.base import ( - BaseLanguageModel, - LanguageModelInput, -) +from langchain_core.language_models.base import BaseLanguageModel, LanguageModelInput from langchain_core.load import dumpd, dumps from langchain_core.messages import ( AIMessage, diff --git a/libs/core/langchain_core/language_models/llms.py b/libs/core/langchain_core/language_models/llms.py index 22c9f4d05e69a..36d9435325146 100644 --- a/libs/core/langchain_core/language_models/llms.py +++ b/libs/core/langchain_core/language_models/llms.py @@ -46,10 +46,7 @@ Callbacks, ) from langchain_core.globals import get_llm_cache -from langchain_core.language_models.base import ( - BaseLanguageModel, - LanguageModelInput, -) +from langchain_core.language_models.base import BaseLanguageModel, LanguageModelInput from langchain_core.load import dumpd from langchain_core.messages import ( AIMessage,