mirror of
https://github.com/hwchase17/langchain.git
synced 2025-09-27 22:37:46 +00:00
experimental[major]: upgrade pydantic (#26228)
This commit is contained in:
@@ -4,6 +4,7 @@ from langchain.chains.base import Chain
|
||||
from langchain_core.callbacks import CallbackManagerForChainRun
|
||||
from langchain_core.language_models import BaseLanguageModel
|
||||
from langchain_core.prompts import PromptTemplate
|
||||
from pydantic import ConfigDict
|
||||
|
||||
from langchain_experimental.video_captioning.services.audio_service import (
|
||||
AudioProcessor,
|
||||
@@ -36,9 +37,10 @@ class VideoCaptioningChain(Chain):
|
||||
closed_caption_similarity_threshold: int = 80
|
||||
use_unclustered_video_models: bool = False
|
||||
|
||||
class Config:
|
||||
arbitrary_types_allowed = True
|
||||
extra = "allow"
|
||||
model_config = ConfigDict(
|
||||
arbitrary_types_allowed=True,
|
||||
extra="allow",
|
||||
)
|
||||
|
||||
@property
|
||||
def input_keys(self) -> List[str]:
|
||||
|
Reference in New Issue
Block a user