Skip to content

Commit

Permalink
langchain: fix deprecation decorators on extraction chains (#21276)
Browse files Browse the repository at this point in the history
Calling any of these raises
```
ValueError: A pending deprecation cannot have a scheduled removal
```
  • Loading branch information
ccurme committed May 3, 2024
1 parent ee1adaa commit c9e9470
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 5 deletions.
Expand Up @@ -59,7 +59,6 @@ def _get_extraction_function(entity_schema: dict) -> dict:
"https://github.com/langchain-ai/langchain/discussions/18154"
),
removal="0.3.0",
pending=True,
alternative=(
"""
from langchain_core.pydantic_v1 import BaseModel, Field
Expand Down Expand Up @@ -130,7 +129,6 @@ def create_extraction_chain(
"https://github.com/langchain-ai/langchain/discussions/18154"
),
removal="0.3.0",
pending=True,
alternative=(
"""
from langchain_core.pydantic_v1 import BaseModel, Field
Expand Down
1 change: 0 additions & 1 deletion libs/langchain/langchain/chains/openai_tools/extraction.py
Expand Up @@ -30,7 +30,6 @@
"https://github.com/langchain-ai/langchain/discussions/18154"
),
removal="0.3.0",
pending=True,
alternative=(
"""
from langchain_core.pydantic_v1 import BaseModel, Field
Expand Down
2 changes: 0 additions & 2 deletions libs/langchain/langchain/chains/structured_output/base.py
Expand Up @@ -41,7 +41,6 @@
"https://github.com/langchain-ai/langchain/discussions/18154"
),
removal="0.3.0",
pending=True,
alternative=(
"""
from langchain_core.pydantic_v1 import BaseModel, Field
Expand Down Expand Up @@ -160,7 +159,6 @@ class RecordDog(BaseModel):
"https://github.com/langchain-ai/langchain/discussions/18154"
),
removal="0.3.0",
pending=True,
alternative=(
"""
from langchain_core.pydantic_v1 import BaseModel, Field
Expand Down

0 comments on commit c9e9470

Please sign in to comment.