unique-web-search 1.9.0__py3-none-any.whl → 1.9.1__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.
@@ -98,6 +98,11 @@ class CustomAPI(SearchEngine[CustomAPIConfig]):
98
98
  json=body,
99
99
  )
100
100
 
101
+ if not response.is_success:
102
+ raise ValueError(
103
+ f"Search engine request failed with status {response.status_code}: {response.text}"
104
+ )
105
+
101
106
  validated_response = WebSearchResults.model_validate(response.json())
102
107
  return validated_response.results
103
108
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: unique-web-search
3
- Version: 1.9.0
3
+ Version: 1.9.1
4
4
  Summary:
5
5
  Author: Andreas Hauri, Gustav Hartz, Rami Azouz
6
6
  Author-email: Andreas Hauri <andreas@unique.ch>, Gustav Hartz <gustav.hartz.ext@unique.ch>, Rami Azouz <rami.ext@unique.ch>
@@ -32,7 +32,7 @@ unique_web_search/services/search_engine/__init__.py,sha256=mtUGCE1E2WB7xuwq0YbV
32
32
  unique_web_search/services/search_engine/base.py,sha256=MBQWiozcIAnXvH7vuMpLo6EaWYlAgI30c-ROb91wZRU,2069
33
33
  unique_web_search/services/search_engine/bing.py,sha256=xlNb66W9plWGqDrrLoMLM61ThEvNkJ6y7uiGf-2l_dU,4412
34
34
  unique_web_search/services/search_engine/brave.py,sha256=qJg7efQCuIU1l1kyb_H_0AvA-zboOg2Ip0QnnMhCpN0,3764
35
- unique_web_search/services/search_engine/custom_api.py,sha256=nW4a1ruIBiMHaF4kjJuVNImBM8rklTjSWFhkIN1DX0E,4968
35
+ unique_web_search/services/search_engine/custom_api.py,sha256=-f6WTKifnDgTfzmoeOFoAU4v7ce7yDSdl1h8lnH4XQU,5149
36
36
  unique_web_search/services/search_engine/firecrawl.py,sha256=CEhnpyxYvr8LO10Xxl54hWpIElCLBRQBH-x8o_vMjPA,4611
37
37
  unique_web_search/services/search_engine/google.py,sha256=SKdj2uR6nwOT18ktCkAcOJLoQULq7GeHILDFFewG8dU,5423
38
38
  unique_web_search/services/search_engine/jina.py,sha256=1I4C18W-UnjoNe4NXK3K5jfeHe9-2u9RBMkWp9Rgo60,10009
@@ -52,6 +52,6 @@ unique_web_search/services/search_engine/utils/vertexai/response_handler.py,sha2
52
52
  unique_web_search/services/search_engine/vertexai.py,sha256=4AlNP7NHkSMD1lZROBFDcm61stjXDRTfzAkLBRfFy4A,4664
53
53
  unique_web_search/settings.py,sha256=EnMmQZGfn6S8_TFY6fCuz_DrL1dTabPuIOzRbQwAO-I,5901
54
54
  unique_web_search/utils.py,sha256=5yLyzKyqy1v-Ut_TEYb4fggpiUj-nPf84YsO7db75so,4069
55
- unique_web_search-1.9.0.dist-info/WHEEL,sha256=eh7sammvW2TypMMMGKgsM83HyA_3qQ5Lgg3ynoecH3M,79
56
- unique_web_search-1.9.0.dist-info/METADATA,sha256=-j7EbL5xFI-yEwdKFYx-E4KWpfgpTimDRfDdN_XGcpQ,5565
57
- unique_web_search-1.9.0.dist-info/RECORD,,
55
+ unique_web_search-1.9.1.dist-info/WHEEL,sha256=eh7sammvW2TypMMMGKgsM83HyA_3qQ5Lgg3ynoecH3M,79
56
+ unique_web_search-1.9.1.dist-info/METADATA,sha256=-nK6xJH2XcL1O01G4hd4B-2aW6kBdKhd3FFd0VzwOwM,5565
57
+ unique_web_search-1.9.1.dist-info/RECORD,,