langchain 0.3.2__py3-none-any.whl → 0.3.4__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of langchain might be problematic. Click here for more details.

@@ -30,7 +30,7 @@ from langchain_core.language_models.chat_models import (
30
30
  generate_from_stream,
31
31
  )
32
32
  from langchain_core.messages import AnyMessage, BaseMessage
33
- from langchain_core.runnables import Runnable, RunnableConfig
33
+ from langchain_core.runnables import Runnable, RunnableConfig, ensure_config
34
34
  from langchain_core.runnables.schema import StreamEvent
35
35
  from langchain_core.tools import BaseTool
36
36
  from langchain_core.tracers import RunLog, RunLogPatch
@@ -530,7 +530,7 @@ class _ConfigurableModel(Runnable[LanguageModelInput, Any]):
530
530
  return model
531
531
 
532
532
  def _model_params(self, config: Optional[RunnableConfig]) -> dict:
533
- config = config or {}
533
+ config = ensure_config(config)
534
534
  model_params = {
535
535
  _remove_prefix(k, self._config_prefix): v
536
536
  for k, v in config.get("configurable", {}).items()
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: langchain
3
- Version: 0.3.2
3
+ Version: 0.3.4
4
4
  Summary: Building applications with LLMs through composability
5
5
  Home-page: https://github.com/langchain-ai/langchain
6
6
  License: MIT
@@ -15,14 +15,14 @@ Requires-Dist: PyYAML (>=5.3)
15
15
  Requires-Dist: SQLAlchemy (>=1.4,<3)
16
16
  Requires-Dist: aiohttp (>=3.8.3,<4.0.0)
17
17
  Requires-Dist: async-timeout (>=4.0.0,<5.0.0) ; python_version < "3.11"
18
- Requires-Dist: langchain-core (>=0.3.8,<0.4.0)
18
+ Requires-Dist: langchain-core (>=0.3.12,<0.4.0)
19
19
  Requires-Dist: langchain-text-splitters (>=0.3.0,<0.4.0)
20
20
  Requires-Dist: langsmith (>=0.1.17,<0.2.0)
21
21
  Requires-Dist: numpy (>=1,<2) ; python_version < "3.12"
22
22
  Requires-Dist: numpy (>=1.26.0,<2.0.0) ; python_version >= "3.12"
23
23
  Requires-Dist: pydantic (>=2.7.4,<3.0.0)
24
24
  Requires-Dist: requests (>=2,<3)
25
- Requires-Dist: tenacity (>=8.1.0,<9.0.0,!=8.4.0)
25
+ Requires-Dist: tenacity (>=8.1.0,!=8.4.0,<10)
26
26
  Project-URL: Repository, https://github.com/langchain-ai/langchain
27
27
  Project-URL: Release Notes, https://github.com/langchain-ai/langchain/releases?q=tag%3A%22langchain%3D%3D0%22&expanded=true
28
28
  Project-URL: Source Code, https://github.com/langchain-ai/langchain/tree/master/libs/langchain
@@ -360,7 +360,7 @@ langchain/chat_models/azure_openai.py,sha256=aRNol2PNC49PmvdZnwjhQeMFRDOOelPNAXz
360
360
  langchain/chat_models/azureml_endpoint.py,sha256=6mxXm8UFXataLp0NYRGA88V3DpiNKPo095u_JGj7XGE,863
361
361
  langchain/chat_models/baichuan.py,sha256=3-GveFoF5ZNyLdRNK6V4i3EDDjdseOTFWbCMhDbtO9w,643
362
362
  langchain/chat_models/baidu_qianfan_endpoint.py,sha256=CZrX2SMpbE9H7wBXNC6rGvw-YqQl9zjuJrClYQxEzuI,715
363
- langchain/chat_models/base.py,sha256=UauvE8dAtTz_ZSrF7BDNOuP7vvcGsEXeRnq2floq8G0,31312
363
+ langchain/chat_models/base.py,sha256=MMbMY5lCypPjIhVKy_wjifXbzb2TvaTKTfgpn3HbWcs,31336
364
364
  langchain/chat_models/bedrock.py,sha256=HRV3T_0mEnZ8LvJJqAA_UVpt-_03G715oIgomRJw55M,757
365
365
  langchain/chat_models/cohere.py,sha256=EYOECHX-nKRhZVfCfmFGZ2lr51PzaB5OvOEqmBCu1fI,633
366
366
  langchain/chat_models/databricks.py,sha256=5_QkC5lG4OldaHC2FS0XylirJouyZx1YT95SKwc12M0,653
@@ -1335,8 +1335,8 @@ langchain/vectorstores/xata.py,sha256=HW_Oi5Hz8rH2JaUhRNWQ-3hLYmNzD8eAz6K5YqPArm
1335
1335
  langchain/vectorstores/yellowbrick.py,sha256=-lnjGcRE8Q1nEPOTdbKYTw5noS2cy2ce1ePOU804-_o,624
1336
1336
  langchain/vectorstores/zep.py,sha256=RJ2auxoA6uHHLEZknw3_jeFmYJYVt-PWKMBcNMGV6TM,798
1337
1337
  langchain/vectorstores/zilliz.py,sha256=XhPPIUfKPFJw0_svCoBgCnNkkBLoRVVcyuMfOnE5IxU,609
1338
- langchain-0.3.2.dist-info/LICENSE,sha256=TsZ-TKbmch26hJssqCJhWXyGph7iFLvyFBYAa3stBHg,1067
1339
- langchain-0.3.2.dist-info/METADATA,sha256=C7Uh5KgODQkWm2IoW_fVsOLK71cjo9pchT20cI2Kx7s,7078
1340
- langchain-0.3.2.dist-info/WHEEL,sha256=FMvqSimYX_P7y0a7UY-_Mc83r5zkBZsCYPm7Lr0Bsq4,88
1341
- langchain-0.3.2.dist-info/entry_points.txt,sha256=IgKjoXnkkVC8Nm7ggiFMCNAk01ua6RVTb9cmZTVNm5w,58
1342
- langchain-0.3.2.dist-info/RECORD,,
1338
+ langchain-0.3.4.dist-info/LICENSE,sha256=TsZ-TKbmch26hJssqCJhWXyGph7iFLvyFBYAa3stBHg,1067
1339
+ langchain-0.3.4.dist-info/METADATA,sha256=SkP4Y7TLZSN_Vi-KyV8_2rDyxHhIR-bjMr37Vc3EPIQ,7076
1340
+ langchain-0.3.4.dist-info/WHEEL,sha256=FMvqSimYX_P7y0a7UY-_Mc83r5zkBZsCYPm7Lr0Bsq4,88
1341
+ langchain-0.3.4.dist-info/entry_points.txt,sha256=IgKjoXnkkVC8Nm7ggiFMCNAk01ua6RVTb9cmZTVNm5w,58
1342
+ langchain-0.3.4.dist-info/RECORD,,