Skip to content

Commit 48f694d

Browse files
committed
Set 1.0 as deprecation version
1 parent c8f3f47 commit 48f694d

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

libs/core/langchain_core/language_models/chat_models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1540,7 +1540,7 @@ async def apredict_messages(
15401540
def _llm_type(self) -> str:
15411541
"""Return type of chat model."""
15421542

1543-
@deprecated("0.3.61", alternative="asdict", removal="1.0")
1543+
@deprecated("1.0", alternative="asdict", removal="2.0")
15441544
@override
15451545
def dict(self, **kwargs: Any) -> builtins.dict[str, Any]:
15461546
return self.asdict()

libs/core/langchain_core/language_models/llms.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1402,7 +1402,7 @@ def __str__(self) -> str:
14021402
def _llm_type(self) -> str:
14031403
"""Return type of llm."""
14041404

1405-
@deprecated("0.3.61", alternative="asdict", removal="1.0")
1405+
@deprecated("1.0", alternative="asdict", removal="2.0")
14061406
@override
14071407
def dict(self, **kwargs: Any) -> builtins.dict[str, Any]:
14081408
return self.asdict()

libs/core/langchain_core/output_parsers/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ def _type(self) -> str:
327327
)
328328
raise NotImplementedError(msg)
329329

330-
@deprecated("0.3.61", alternative="asdict", removal="1.0")
330+
@deprecated("1.0", alternative="asdict", removal="2.0")
331331
@override
332332
def dict(self, **kwargs: Any) -> builtins.dict[str, Any]:
333333
return self.asdict()

libs/core/langchain_core/prompts/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,7 @@ def _prompt_type(self) -> str:
346346
"""Return the prompt type key."""
347347
raise NotImplementedError
348348

349-
@deprecated("0.3.61", alternative="asdict", removal="1.0")
349+
@deprecated("1.0", alternative="asdict", removal="2.0")
350350
@override
351351
def dict(self, **kwargs: Any) -> builtins.dict[str, Any]:
352352
return self.asdict(**kwargs)

0 commit comments

Comments
 (0)