webscout 3.4__py3-none-any.whl → 3.6__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.
- webscout/AIutel.py +11 -7
- webscout/DWEBS.py +772 -176
- webscout/Local/rawdog.py +945 -945
- webscout/Provider/Deepinfra.py +479 -0
- webscout/Provider/Deepseek.py +265 -265
- webscout/Provider/OpenGPT.py +381 -1
- webscout/Provider/Phind.py +489 -0
- webscout/Provider/VTLchat.py +252 -0
- webscout/Provider/__init__.py +13 -2
- webscout/__init__.py +41 -30
- webscout/webai.py +15 -0
- webscout/websx_search.py +370 -0
- {webscout-3.4.dist-info → webscout-3.6.dist-info}/METADATA +251 -225
- {webscout-3.4.dist-info → webscout-3.6.dist-info}/RECORD +18 -27
- {webscout-3.4.dist-info → webscout-3.6.dist-info}/WHEEL +1 -1
- {webscout-3.4.dist-info → webscout-3.6.dist-info}/top_level.txt +0 -1
- DeepWEBS/__init__.py +0 -0
- DeepWEBS/documents/__init__.py +0 -0
- DeepWEBS/documents/query_results_extractor.py +0 -99
- DeepWEBS/documents/webpage_content_extractor.py +0 -145
- DeepWEBS/networks/__init__.py +0 -0
- DeepWEBS/networks/filepath_converter.py +0 -109
- DeepWEBS/networks/google_searcher.py +0 -52
- DeepWEBS/networks/network_configs.py +0 -30
- DeepWEBS/networks/webpage_fetcher.py +0 -95
- DeepWEBS/utilsdw/__init__.py +0 -0
- DeepWEBS/utilsdw/enver.py +0 -78
- DeepWEBS/utilsdw/logger.py +0 -269
- {webscout-3.4.dist-info → webscout-3.6.dist-info}/LICENSE.md +0 -0
- {webscout-3.4.dist-info → webscout-3.6.dist-info}/entry_points.txt +0 -0
webscout/AIutel.py
CHANGED
|
@@ -48,6 +48,7 @@ webai = [
|
|
|
48
48
|
"poe",
|
|
49
49
|
"basedgpt",
|
|
50
50
|
"deepseek",
|
|
51
|
+
"deepinfra",
|
|
51
52
|
]
|
|
52
53
|
gpt4free_providers = [
|
|
53
54
|
provider.__name__ for provider in g4f.Provider.__providers__ # if provider.working
|
|
@@ -647,14 +648,14 @@ Current Datetime : {datetime.datetime.now()}
|
|
|
647
648
|
else:
|
|
648
649
|
logging.info(message)
|
|
649
650
|
|
|
650
|
-
def main(self, response: str)
|
|
651
|
+
def main(self, response: str):
|
|
651
652
|
"""Exec code in response accordingly
|
|
652
653
|
|
|
653
654
|
Args:
|
|
654
|
-
response
|
|
655
|
+
response: AI response
|
|
655
656
|
|
|
656
657
|
Returns:
|
|
657
|
-
|
|
658
|
+
Optional[str]: None if script executed successfully else stdout data
|
|
658
659
|
"""
|
|
659
660
|
code_blocks = re.findall(r"```python.*?```", response, re.DOTALL)
|
|
660
661
|
if len(code_blocks) != 1:
|
|
@@ -690,6 +691,7 @@ Current Datetime : {datetime.datetime.now()}
|
|
|
690
691
|
self.log("Returning success feedback")
|
|
691
692
|
return f"LAST SCRIPT OUTPUT:\n{proc.stdout}"
|
|
692
693
|
else:
|
|
694
|
+
|
|
693
695
|
self.log("Returning error feedback", "error")
|
|
694
696
|
return f"PREVIOUS SCRIPT EXCEPTION:\n{proc.stderr}"
|
|
695
697
|
else:
|
|
@@ -700,12 +702,14 @@ Current Datetime : {datetime.datetime.now()}
|
|
|
700
702
|
self.log("Executing script internally")
|
|
701
703
|
exec(raw_code_plus)
|
|
702
704
|
except Exception as e:
|
|
705
|
+
error_message = str(e)
|
|
703
706
|
self.log(
|
|
704
|
-
"Exception occurred while executing script. Responding with error: "
|
|
705
|
-
|
|
706
|
-
"error",
|
|
707
|
+
f"Exception occurred while executing script. Responding with error: {error_message}",
|
|
708
|
+
"error"
|
|
707
709
|
)
|
|
708
|
-
|
|
710
|
+
# Return the exact error message
|
|
711
|
+
return f"PREVIOUS SCRIPT EXCEPTION:\n{error_message}"
|
|
712
|
+
|
|
709
713
|
class Audio:
|
|
710
714
|
# Request headers
|
|
711
715
|
headers: dict[str, str] = {
|