mirror of
https://github.com/hwchase17/langchain.git
synced 2025-07-18 10:43:36 +00:00
langchain: fix deprecation decorators on extraction chains (#21276)
Calling any of these raises ``` ValueError: A pending deprecation cannot have a scheduled removal ```
This commit is contained in:
parent
ee1adaacaa
commit
c9e9470c5a
@ -59,7 +59,6 @@ Passage:
|
|||||||
"https://github.com/langchain-ai/langchain/discussions/18154"
|
"https://github.com/langchain-ai/langchain/discussions/18154"
|
||||||
),
|
),
|
||||||
removal="0.3.0",
|
removal="0.3.0",
|
||||||
pending=True,
|
|
||||||
alternative=(
|
alternative=(
|
||||||
"""
|
"""
|
||||||
from langchain_core.pydantic_v1 import BaseModel, Field
|
from langchain_core.pydantic_v1 import BaseModel, Field
|
||||||
@ -130,7 +129,6 @@ def create_extraction_chain(
|
|||||||
"https://github.com/langchain-ai/langchain/discussions/18154"
|
"https://github.com/langchain-ai/langchain/discussions/18154"
|
||||||
),
|
),
|
||||||
removal="0.3.0",
|
removal="0.3.0",
|
||||||
pending=True,
|
|
||||||
alternative=(
|
alternative=(
|
||||||
"""
|
"""
|
||||||
from langchain_core.pydantic_v1 import BaseModel, Field
|
from langchain_core.pydantic_v1 import BaseModel, Field
|
||||||
|
@ -30,7 +30,6 @@ If a property is not present and is not required in the function parameters, do
|
|||||||
"https://github.com/langchain-ai/langchain/discussions/18154"
|
"https://github.com/langchain-ai/langchain/discussions/18154"
|
||||||
),
|
),
|
||||||
removal="0.3.0",
|
removal="0.3.0",
|
||||||
pending=True,
|
|
||||||
alternative=(
|
alternative=(
|
||||||
"""
|
"""
|
||||||
from langchain_core.pydantic_v1 import BaseModel, Field
|
from langchain_core.pydantic_v1 import BaseModel, Field
|
||||||
|
@ -41,7 +41,6 @@ from langchain_core.utils.function_calling import (
|
|||||||
"https://github.com/langchain-ai/langchain/discussions/18154"
|
"https://github.com/langchain-ai/langchain/discussions/18154"
|
||||||
),
|
),
|
||||||
removal="0.3.0",
|
removal="0.3.0",
|
||||||
pending=True,
|
|
||||||
alternative=(
|
alternative=(
|
||||||
"""
|
"""
|
||||||
from langchain_core.pydantic_v1 import BaseModel, Field
|
from langchain_core.pydantic_v1 import BaseModel, Field
|
||||||
@ -160,7 +159,6 @@ def create_openai_fn_runnable(
|
|||||||
"https://github.com/langchain-ai/langchain/discussions/18154"
|
"https://github.com/langchain-ai/langchain/discussions/18154"
|
||||||
),
|
),
|
||||||
removal="0.3.0",
|
removal="0.3.0",
|
||||||
pending=True,
|
|
||||||
alternative=(
|
alternative=(
|
||||||
"""
|
"""
|
||||||
from langchain_core.pydantic_v1 import BaseModel, Field
|
from langchain_core.pydantic_v1 import BaseModel, Field
|
||||||
|
Loading…
Reference in New Issue
Block a user