langchain 0.3.22__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.
- langchain/chat_models/base.py +7 -0
- {langchain-0.3.22.dist-info → langchain-0.3.23.dist-info}/METADATA +5 -3
- {langchain-0.3.22.dist-info → langchain-0.3.23.dist-info}/RECORD +6 -6
- {langchain-0.3.22.dist-info → langchain-0.3.23.dist-info}/WHEEL +0 -0
- {langchain-0.3.22.dist-info → langchain-0.3.23.dist-info}/entry_points.txt +0 -0
- {langchain-0.3.22.dist-info → langchain-0.3.23.dist-info}/licenses/LICENSE +0 -0
langchain/chat_models/base.py
CHANGED
|
@@ -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:
|
|
@@ -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.
|
|
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.
|
|
11
|
-
Requires-Dist: langchain-text-splitters<1.0.0,>=0.3.
|
|
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.
|
|
2
|
-
langchain-0.3.
|
|
3
|
-
langchain-0.3.
|
|
4
|
-
langchain-0.3.
|
|
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=
|
|
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.
|
|
1342
|
+
langchain-0.3.23.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|