webscout 1.1.2__py3-none-any.whl → 1.1.4__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 webscout might be problematic. Click here for more details.

webscout/HelpingAI.py CHANGED
@@ -41,7 +41,7 @@ class ChatBot:
41
41
  # Initialize WebDriver
42
42
  self.driver = webdriver.Chrome(options=options)
43
43
 
44
- self.HelpingAI = os.getenv('HELPING_AI_URL')
44
+ self.HelpingAI = "https://vortex.zapier.app/"
45
45
  # Navigate to the target URL
46
46
  self.driver.get(self.HelpingAI)
47
47
  time.sleep(7)
@@ -117,7 +117,7 @@ class WEBS:
117
117
  # Initialize WebDriver without specifying the path to the driver
118
118
  self.driver = webdriver.Chrome(options=options)
119
119
 
120
- self.HelpingAI = os.getenv('HELPING_AI_URL')
120
+ self.HelpingAI = "https://vortex.zapier.app/"
121
121
  # Navigate to the target URL
122
122
  self.driver.get(self.HelpingAI)
123
123
  time.sleep(7)
@@ -164,7 +164,7 @@ class WEBS:
164
164
 
165
165
  # Function to perform web search
166
166
  def web_search(self, query):
167
- url = os.getenv('WEB_SEARCH_URL')
167
+ url = "https://abhaykoul-webscout1.hf.space/mws"
168
168
  payload = {"query": query}
169
169
  response = requests.post(url, json=payload)
170
170
 
webscout/LLM.py CHANGED
@@ -4,9 +4,9 @@ import json
4
4
  from typing import List, Dict, Union
5
5
 
6
6
  class LLM:
7
- def __init__(self, model: str):
7
+ def __init__(self, model: str, system_message: str = "You are a Helpful AI."):
8
8
  self.model = model
9
- self.conversation_history = [{"role": "system", "content": "You are a Helpful AI."}]
9
+ self.conversation_history = [{"role": "system", "content": system_message}]
10
10
 
11
11
  def mistral_chat(self, messages: List[Dict[str, str]]) -> Union[str, None]:
12
12
  url = "https://api.deepinfra.com/v1/openai/chat/completions"
@@ -61,7 +61,8 @@ if __name__ == "__main__":
61
61
  'python -m webscout.LLM model_name\n'
62
62
  'Replace "model_name" with the name of the model you wish to use It supports ALL text generation models on deepinfra.com.')
63
63
  parser.add_argument('model', type=str, help='Model to use for text generation. Specify the full model name, e.g., "mistralai/Mistral-7B-Instruct-v0.1".')
64
+ parser.add_argument('--system-message', type=str, default="You are a Helpful AI.", help='Custom system message for the AI.')
64
65
  args = parser.parse_args()
65
66
 
66
- LLM = LLM(args.model)
67
+ LLM = LLM(args.model, args.system_message)
67
68
  LLM.chat()
webscout/version.py CHANGED
@@ -1,2 +1,2 @@
1
- __version__ = "1.1.2"
1
+ __version__ = "1.1.4"
2
2
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: webscout
3
- Version: 1.1.2
3
+ Version: 1.1.4
4
4
  Summary: Search for words, documents, images, videos, news, maps and text translation using the DuckDuckGo.com, yep.com, phind.com and you.com Also containes AI models
5
5
  Author: OEvortex
6
6
  Author-email: helpingai5@gmail.com
@@ -114,7 +114,7 @@ python -m webscout --help
114
114
 
115
115
  ## CLI to use LLM
116
116
  ```python
117
- python -m webscout.LLM model_name
117
+ python -m webscout.LLM model_name
118
118
  ```
119
119
  [Go To TOP](#TOP)
120
120
 
@@ -1,18 +1,18 @@
1
1
  webscout/AI.py,sha256=rbfxwyJZvccGx21PohvBFHbDhYUmeynNdecBuTZdAuE,13930
2
- webscout/HelpingAI.py,sha256=6MBYY_nAUcJ_57yeACI9i0sfhj54K-6nEX1vz5LE5XQ,7894
3
- webscout/LLM.py,sha256=uyS8BmkFJcWEnfUzOgzcqIw96mF1p-oFqQjJntYn85U,3105
2
+ webscout/HelpingAI.py,sha256=vCMTqMXBgPf7zJmKMO2P8GXwBF1pS8aoJ0sdXAwdImo,7911
3
+ webscout/LLM.py,sha256=7aVUunQ_YUOfrzueYKILiYfuxXP1xfJ5ewOZ85lB9O0,3294
4
4
  webscout/__init__.py,sha256=vHJGZexYIaWDTHfMimqA7enct9b7zPDf6jLsS7NDBiA,536
5
5
  webscout/__main__.py,sha256=ZtTRgsRjUi2JOvYFLF1ZCh55Sdoz94I-BS-TlJC7WDU,126
6
6
  webscout/cli.py,sha256=9opO5KynQ3LA5gPW2czlmy7-ZdfUae6ccrny3vibqzQ,17757
7
7
  webscout/exceptions.py,sha256=7u52Mt5iyEUCZvaZuEYwQVV8HL8IdZBv1r5s5Ss_xU0,75
8
8
  webscout/models.py,sha256=5iQIdtedT18YuTZ3npoG7kLMwcrKwhQ7928dl_7qZW0,692
9
9
  webscout/utils.py,sha256=M2ocDpYOVd9lTZA3VGdK_p80Xsr-VPeAoUUCFaMWCqk,1610
10
- webscout/version.py,sha256=DDoupCFZ8GXkP38mqBluPLu8477e5ZANz0-tVSwdHVc,25
10
+ webscout/version.py,sha256=lGSlSE_OPJZF6IQA6S73gUQ2gp9EDP6D2DN257SLIeM,25
11
11
  webscout/webscout_search.py,sha256=_kuNpRhbgge6MubxlsRe9kzBKlHoPEH6-93ILMpycfg,2351
12
12
  webscout/webscout_search_async.py,sha256=lNdR18-y8O9HqFsHvlzBYg18qeI12uLEXIzFMP3D_XU,35070
13
- webscout-1.1.2.dist-info/LICENSE.md,sha256=mRVwJuT4SXC5O93BFdsfWBjlXjGn2Np90Zm5SocUzM0,3150
14
- webscout-1.1.2.dist-info/METADATA,sha256=0FOI3m4sUdkJTcOvfVBu3zercx4idM8n9GoLOhV2GJk,17544
15
- webscout-1.1.2.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
16
- webscout-1.1.2.dist-info/entry_points.txt,sha256=8-93eRslYrzTHs5E-6yFRJrve00C9q-SkXJD113jzRY,197
17
- webscout-1.1.2.dist-info/top_level.txt,sha256=nYIw7OKBQDr_Z33IzZUKidRD3zQEo8jOJYkMVMeN334,9
18
- webscout-1.1.2.dist-info/RECORD,,
13
+ webscout-1.1.4.dist-info/LICENSE.md,sha256=mRVwJuT4SXC5O93BFdsfWBjlXjGn2Np90Zm5SocUzM0,3150
14
+ webscout-1.1.4.dist-info/METADATA,sha256=JqJxqBzfQATwBLXaoiT9jkL1YbThQXC-P8UvzVMAMhA,17545
15
+ webscout-1.1.4.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
16
+ webscout-1.1.4.dist-info/entry_points.txt,sha256=8-93eRslYrzTHs5E-6yFRJrve00C9q-SkXJD113jzRY,197
17
+ webscout-1.1.4.dist-info/top_level.txt,sha256=nYIw7OKBQDr_Z33IzZUKidRD3zQEo8jOJYkMVMeN334,9
18
+ webscout-1.1.4.dist-info/RECORD,,