langchain 0.3.21__py3-none-any.whl → 0.3.23__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.

@@ -108,7 +108,7 @@ def init_chat_model(
108
108
  - 'openai' -> langchain-openai
109
109
  - 'anthropic' -> langchain-anthropic
110
110
  - 'azure_openai' -> langchain-openai
111
- - 'azure_ai -> langchain-ai
111
+ - 'azure_ai' -> langchain-azure-ai
112
112
  - 'google_vertexai' -> langchain-google-vertexai
113
113
  - 'google_genai' -> langchain-google-genai
114
114
  - 'bedrock' -> langchain-aws
@@ -125,6 +125,7 @@ def init_chat_model(
125
125
  - 'ibm' -> langchain-ibm
126
126
  - 'nvidia' -> langchain-nvidia-ai-endpoints
127
127
  - 'xai' -> langchain-xai
128
+ - 'perplexity' -> langchain-perplexity
128
129
 
129
130
  Will attempt to infer model_provider from model if not specified. The
130
131
  following providers will be inferred based on these model prefixes:
@@ -359,7 +360,7 @@ def _init_chat_model_helper(
359
360
  return AzureChatOpenAI(model=model, **kwargs)
360
361
  elif model_provider == "azure_ai":
361
362
  _check_pkg("langchain_azure_ai")
362
- from langchain_azure_ai import AzureAIChatCompletionsModel
363
+ from langchain_azure_ai.chat_models import AzureAIChatCompletionsModel
363
364
 
364
365
  return AzureAIChatCompletionsModel(model=model, **kwargs)
365
366
  elif model_provider == "cohere":
@@ -453,6 +454,11 @@ def _init_chat_model_helper(
453
454
  from langchain_xai import ChatXAI
454
455
 
455
456
  return ChatXAI(model=model, **kwargs)
457
+ elif model_provider == "perplexity":
458
+ _check_pkg("langchain_perplexity")
459
+ from langchain_perplexity import ChatPerplexity
460
+
461
+ return ChatPerplexity(model=model, **kwargs)
456
462
  else:
457
463
  supported = ", ".join(_SUPPORTED_PROVIDERS)
458
464
  raise ValueError(
@@ -481,6 +487,7 @@ _SUPPORTED_PROVIDERS = {
481
487
  "deepseek",
482
488
  "ibm",
483
489
  "xai",
490
+ "perplexity",
484
491
  }
485
492
 
486
493
 
@@ -1,14 +1,14 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: langchain
3
- Version: 0.3.21
3
+ Version: 0.3.23
4
4
  Summary: Building applications with LLMs through composability
5
5
  License: MIT
6
6
  Project-URL: Source Code, https://github.com/langchain-ai/langchain/tree/master/libs/langchain
7
7
  Project-URL: Release Notes, https://github.com/langchain-ai/langchain/releases?q=tag%3A%22langchain%3D%3D0%22&expanded=true
8
8
  Project-URL: repository, https://github.com/langchain-ai/langchain
9
9
  Requires-Python: <4.0,>=3.9
10
- Requires-Dist: langchain-core<1.0.0,>=0.3.45
11
- Requires-Dist: langchain-text-splitters<1.0.0,>=0.3.7
10
+ Requires-Dist: langchain-core<1.0.0,>=0.3.51
11
+ Requires-Dist: langchain-text-splitters<1.0.0,>=0.3.8
12
12
  Requires-Dist: langsmith<0.4,>=0.1.17
13
13
  Requires-Dist: pydantic<3.0.0,>=2.7.4
14
14
  Requires-Dist: SQLAlchemy<3,>=1.4
@@ -47,6 +47,8 @@ Provides-Extra: deepseek
47
47
  Requires-Dist: langchain-deepseek; extra == "deepseek"
48
48
  Provides-Extra: xai
49
49
  Requires-Dist: langchain-xai; extra == "xai"
50
+ Provides-Extra: perplexity
51
+ Requires-Dist: langchain-perplexity; extra == "perplexity"
50
52
  Description-Content-Type: text/markdown
51
53
 
52
54
  # 🦜️🔗 LangChain
@@ -1,7 +1,7 @@
1
- langchain-0.3.21.dist-info/METADATA,sha256=lvJQJ8u2VCTFRKuBHgCRMcg7qg0BCqNiVaSnR8T1DdQ,7760
2
- langchain-0.3.21.dist-info/WHEEL,sha256=thaaA2w1JzcGC48WYufAs8nrYZjJm8LqNfnXFOFyCC4,90
3
- langchain-0.3.21.dist-info/entry_points.txt,sha256=hLMwTN6pPNCY0cYtYmCYgY-piFzDb17o6ZrDC6IpdQU,75
4
- langchain-0.3.21.dist-info/licenses/LICENSE,sha256=TsZ-TKbmch26hJssqCJhWXyGph7iFLvyFBYAa3stBHg,1067
1
+ langchain-0.3.23.dist-info/METADATA,sha256=ca7sap7Hwg-aGRweTuaS3XBQ7-xr0KCGcIfoZHrkJXc,7846
2
+ langchain-0.3.23.dist-info/WHEEL,sha256=thaaA2w1JzcGC48WYufAs8nrYZjJm8LqNfnXFOFyCC4,90
3
+ langchain-0.3.23.dist-info/entry_points.txt,sha256=hLMwTN6pPNCY0cYtYmCYgY-piFzDb17o6ZrDC6IpdQU,75
4
+ langchain-0.3.23.dist-info/licenses/LICENSE,sha256=TsZ-TKbmch26hJssqCJhWXyGph7iFLvyFBYAa3stBHg,1067
5
5
  langchain/__init__.py,sha256=4cqV-N_QJnfjk52DqtR2e72vsmJC1R6PkflvRdLjZQI,13709
6
6
  langchain/_api/__init__.py,sha256=0FuHuMNUBMrst1Y1nm5yZzQr2xbLmb7rxMsimqKBXhs,733
7
7
  langchain/_api/deprecation.py,sha256=K9VCkmMs_ebfd_wCJppKq4Ahw-mlXkukbsQ69iQVxT0,1246
@@ -364,7 +364,7 @@ langchain/chat_models/azure_openai.py,sha256=aRNol2PNC49PmvdZnwjhQeMFRDOOelPNAXz
364
364
  langchain/chat_models/azureml_endpoint.py,sha256=6mxXm8UFXataLp0NYRGA88V3DpiNKPo095u_JGj7XGE,863
365
365
  langchain/chat_models/baichuan.py,sha256=3-GveFoF5ZNyLdRNK6V4i3EDDjdseOTFWbCMhDbtO9w,643
366
366
  langchain/chat_models/baidu_qianfan_endpoint.py,sha256=CZrX2SMpbE9H7wBXNC6rGvw-YqQl9zjuJrClYQxEzuI,715
367
- langchain/chat_models/base.py,sha256=59N9cThpqZExemmLY25EAaDDrqX_F_EdRQCTusK28cE,34850
367
+ langchain/chat_models/base.py,sha256=masDR8CHH_rc7JGvniWhlxrax_f2E2z30H2dc5CoVpI,35140
368
368
  langchain/chat_models/bedrock.py,sha256=HRV3T_0mEnZ8LvJJqAA_UVpt-_03G715oIgomRJw55M,757
369
369
  langchain/chat_models/cohere.py,sha256=EYOECHX-nKRhZVfCfmFGZ2lr51PzaB5OvOEqmBCu1fI,633
370
370
  langchain/chat_models/databricks.py,sha256=5_QkC5lG4OldaHC2FS0XylirJouyZx1YT95SKwc12M0,653
@@ -1339,4 +1339,4 @@ langchain/vectorstores/xata.py,sha256=HW_Oi5Hz8rH2JaUhRNWQ-3hLYmNzD8eAz6K5YqPArm
1339
1339
  langchain/vectorstores/yellowbrick.py,sha256=-lnjGcRE8Q1nEPOTdbKYTw5noS2cy2ce1ePOU804-_o,624
1340
1340
  langchain/vectorstores/zep.py,sha256=RJ2auxoA6uHHLEZknw3_jeFmYJYVt-PWKMBcNMGV6TM,798
1341
1341
  langchain/vectorstores/zilliz.py,sha256=XhPPIUfKPFJw0_svCoBgCnNkkBLoRVVcyuMfOnE5IxU,609
1342
- langchain-0.3.21.dist-info/RECORD,,
1342
+ langchain-0.3.23.dist-info/RECORD,,