webscout 3.5__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 +10 -7
- webscout/Local/rawdog.py +945 -945
- webscout/Provider/Deepinfra.py +478 -478
- 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 +9 -1
- webscout/__init__.py +37 -28
- webscout/websx_search.py +370 -370
- {webscout-3.5.dist-info → webscout-3.6.dist-info}/METADATA +124 -30
- {webscout-3.5.dist-info → webscout-3.6.dist-info}/RECORD +16 -15
- {webscout-3.5.dist-info → webscout-3.6.dist-info}/WHEEL +1 -1
- {webscout-3.5.dist-info → webscout-3.6.dist-info}/LICENSE.md +0 -0
- {webscout-3.5.dist-info → webscout-3.6.dist-info}/entry_points.txt +0 -0
- {webscout-3.5.dist-info → webscout-3.6.dist-info}/top_level.txt +0 -0
webscout/AIutel.py
CHANGED
|
@@ -648,14 +648,14 @@ Current Datetime : {datetime.datetime.now()}
|
|
|
648
648
|
else:
|
|
649
649
|
logging.info(message)
|
|
650
650
|
|
|
651
|
-
def main(self, response: str)
|
|
651
|
+
def main(self, response: str):
|
|
652
652
|
"""Exec code in response accordingly
|
|
653
653
|
|
|
654
654
|
Args:
|
|
655
|
-
response
|
|
655
|
+
response: AI response
|
|
656
656
|
|
|
657
657
|
Returns:
|
|
658
|
-
|
|
658
|
+
Optional[str]: None if script executed successfully else stdout data
|
|
659
659
|
"""
|
|
660
660
|
code_blocks = re.findall(r"```python.*?```", response, re.DOTALL)
|
|
661
661
|
if len(code_blocks) != 1:
|
|
@@ -691,6 +691,7 @@ Current Datetime : {datetime.datetime.now()}
|
|
|
691
691
|
self.log("Returning success feedback")
|
|
692
692
|
return f"LAST SCRIPT OUTPUT:\n{proc.stdout}"
|
|
693
693
|
else:
|
|
694
|
+
|
|
694
695
|
self.log("Returning error feedback", "error")
|
|
695
696
|
return f"PREVIOUS SCRIPT EXCEPTION:\n{proc.stderr}"
|
|
696
697
|
else:
|
|
@@ -701,12 +702,14 @@ Current Datetime : {datetime.datetime.now()}
|
|
|
701
702
|
self.log("Executing script internally")
|
|
702
703
|
exec(raw_code_plus)
|
|
703
704
|
except Exception as e:
|
|
705
|
+
error_message = str(e)
|
|
704
706
|
self.log(
|
|
705
|
-
"Exception occurred while executing script. Responding with error: "
|
|
706
|
-
|
|
707
|
-
"error",
|
|
707
|
+
f"Exception occurred while executing script. Responding with error: {error_message}",
|
|
708
|
+
"error"
|
|
708
709
|
)
|
|
709
|
-
|
|
710
|
+
# Return the exact error message
|
|
711
|
+
return f"PREVIOUS SCRIPT EXCEPTION:\n{error_message}"
|
|
712
|
+
|
|
710
713
|
class Audio:
|
|
711
714
|
# Request headers
|
|
712
715
|
headers: dict[str, str] = {
|