langroid 0.41.1__py3-none-any.whl → 0.41.2__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.
- langroid/parsing/url_loader.py +5 -1
- {langroid-0.41.1.dist-info → langroid-0.41.2.dist-info}/METADATA +3 -3
- {langroid-0.41.1.dist-info → langroid-0.41.2.dist-info}/RECORD +5 -5
- {langroid-0.41.1.dist-info → langroid-0.41.2.dist-info}/WHEEL +0 -0
- {langroid-0.41.1.dist-info → langroid-0.41.2.dist-info}/licenses/LICENSE +0 -0
langroid/parsing/url_loader.py
CHANGED
@@ -68,7 +68,11 @@ class URLLoader:
|
|
68
68
|
docs.extend(new_chunks)
|
69
69
|
else:
|
70
70
|
# Try to detect content type and handle accordingly
|
71
|
-
|
71
|
+
try:
|
72
|
+
headers = requests.head(url).headers
|
73
|
+
except Exception as e:
|
74
|
+
logging.warning(f"Error getting headers for {url}: {e}")
|
75
|
+
headers = {}
|
72
76
|
content_type = headers.get("Content-Type", "").lower()
|
73
77
|
temp_file_suffix = None
|
74
78
|
if "application/pdf" in content_type:
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: langroid
|
3
|
-
Version: 0.41.
|
3
|
+
Version: 0.41.2
|
4
4
|
Summary: Harness LLMs with Multi-Agent Programming
|
5
5
|
Author-email: Prasad Chalasani <pchalasani@gmail.com>
|
6
6
|
License: MIT
|
@@ -12,7 +12,7 @@ Requires-Dist: async-generator<2.0,>=1.10
|
|
12
12
|
Requires-Dist: bs4<1.0.0,>=0.0.1
|
13
13
|
Requires-Dist: cerebras-cloud-sdk<2.0.0,>=1.1.0
|
14
14
|
Requires-Dist: colorlog<7.0.0,>=6.7.0
|
15
|
-
Requires-Dist: docling<3.0.0,>=2.
|
15
|
+
Requires-Dist: docling<3.0.0,>=2.20.0
|
16
16
|
Requires-Dist: docstring-parser<1.0,>=0.16
|
17
17
|
Requires-Dist: duckduckgo-search<7.0.0,>=6.0.0
|
18
18
|
Requires-Dist: exa-py>=1.8.7
|
@@ -96,7 +96,7 @@ Requires-Dist: psycopg2<3.0.0,>=2.9.7; extra == 'db'
|
|
96
96
|
Requires-Dist: pymysql<2.0.0,>=1.1.0; extra == 'db'
|
97
97
|
Requires-Dist: sqlalchemy<3.0.0,>=2.0.19; extra == 'db'
|
98
98
|
Provides-Extra: doc-chat
|
99
|
-
Requires-Dist: docling<3.0.0,>=2.
|
99
|
+
Requires-Dist: docling<3.0.0,>=2.20.0; extra == 'doc-chat'
|
100
100
|
Requires-Dist: pdf2image<2.0.0,>=1.17.0; extra == 'doc-chat'
|
101
101
|
Requires-Dist: pymupdf4llm<0.1.0,>=0.0.17; extra == 'doc-chat'
|
102
102
|
Requires-Dist: pymupdf<2.0.0,>=1.23.3; extra == 'doc-chat'
|
@@ -91,7 +91,7 @@ langroid/parsing/routing.py,sha256=-FcnlqldzL4ZoxuDwXjQPNHgBe9F9-F4R6q7b_z9CvI,1
|
|
91
91
|
langroid/parsing/search.py,sha256=YPCwezM0c4PWbNUMEmQ5RrJBtvX4aWZ1CMCJFs4sqFo,9806
|
92
92
|
langroid/parsing/spider.py,sha256=hAVM6wxh1pQ0EN4tI5wMBtAjIk0T-xnpi-ZUzWybhos,3258
|
93
93
|
langroid/parsing/table_loader.py,sha256=qNM4obT_0Y4tjrxNBCNUYjKQ9oETCZ7FbolKBTcz-GM,3410
|
94
|
-
langroid/parsing/url_loader.py,sha256=
|
94
|
+
langroid/parsing/url_loader.py,sha256=MPJFhAdMl4LYVtL9f8r1BOtTkDOg2-hKkANUBUoXCG0,4846
|
95
95
|
langroid/parsing/urls.py,sha256=86omykgxo4hg2jyF10Ef-FJa9n6MgXdSXy2mImqgo5c,8076
|
96
96
|
langroid/parsing/utils.py,sha256=ZWMS7oG04GUY9EAIwnFN6KKo_ePCKhqk_H8jW6TDT0s,12805
|
97
97
|
langroid/parsing/web_search.py,sha256=wWSmV0METFTGPhHJIs-M4tog2Aur_75Pxr4a49cKDkU,7042
|
@@ -128,7 +128,7 @@ langroid/vector_store/pineconedb.py,sha256=otxXZNaBKb9f_H75HTaU3lMHiaR2NUp5MqwLZ
|
|
128
128
|
langroid/vector_store/postgres.py,sha256=DQHd6dt-OcV_QVNm-ymn28rlTfhI6hqgcpLTPCsm0jI,15990
|
129
129
|
langroid/vector_store/qdrantdb.py,sha256=v7TAsIoj_vxeKDYS9tpwJLBZA8fuTweTYxHo0X_uawM,17949
|
130
130
|
langroid/vector_store/weaviatedb.py,sha256=ONEr2iGS0Ii73oMe7tRk6bB-BEXQUa70fYSrdI8d3yo,11481
|
131
|
-
langroid-0.41.
|
132
|
-
langroid-0.41.
|
133
|
-
langroid-0.41.
|
134
|
-
langroid-0.41.
|
131
|
+
langroid-0.41.2.dist-info/METADATA,sha256=FWd7a2bi9c79wldH9KrVvq2U7Jtu_XeEWI9XcF17FpE,61259
|
132
|
+
langroid-0.41.2.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
133
|
+
langroid-0.41.2.dist-info/licenses/LICENSE,sha256=EgVbvA6VSYgUlvC3RvPKehSg7MFaxWDsFuzLOsPPfJg,1065
|
134
|
+
langroid-0.41.2.dist-info/RECORD,,
|
File without changes
|
File without changes
|