webscout 1.1.2__tar.gz → 1.1.4__tar.gz

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.

Files changed (24) hide show
  1. {webscout-1.1.2/webscout.egg-info → webscout-1.1.4}/PKG-INFO +2 -2
  2. {webscout-1.1.2 → webscout-1.1.4}/README.md +1 -1
  3. {webscout-1.1.2 → webscout-1.1.4}/setup.py +1 -1
  4. {webscout-1.1.2 → webscout-1.1.4}/webscout/HelpingAI.py +3 -3
  5. {webscout-1.1.2 → webscout-1.1.4}/webscout/LLM.py +4 -3
  6. webscout-1.1.4/webscout/version.py +2 -0
  7. {webscout-1.1.2 → webscout-1.1.4/webscout.egg-info}/PKG-INFO +2 -2
  8. webscout-1.1.2/webscout/version.py +0 -2
  9. {webscout-1.1.2 → webscout-1.1.4}/LICENSE.md +0 -0
  10. {webscout-1.1.2 → webscout-1.1.4}/setup.cfg +0 -0
  11. {webscout-1.1.2 → webscout-1.1.4}/webscout/AI.py +0 -0
  12. {webscout-1.1.2 → webscout-1.1.4}/webscout/__init__.py +0 -0
  13. {webscout-1.1.2 → webscout-1.1.4}/webscout/__main__.py +0 -0
  14. {webscout-1.1.2 → webscout-1.1.4}/webscout/cli.py +0 -0
  15. {webscout-1.1.2 → webscout-1.1.4}/webscout/exceptions.py +0 -0
  16. {webscout-1.1.2 → webscout-1.1.4}/webscout/models.py +0 -0
  17. {webscout-1.1.2 → webscout-1.1.4}/webscout/utils.py +0 -0
  18. {webscout-1.1.2 → webscout-1.1.4}/webscout/webscout_search.py +0 -0
  19. {webscout-1.1.2 → webscout-1.1.4}/webscout/webscout_search_async.py +0 -0
  20. {webscout-1.1.2 → webscout-1.1.4}/webscout.egg-info/SOURCES.txt +0 -0
  21. {webscout-1.1.2 → webscout-1.1.4}/webscout.egg-info/dependency_links.txt +0 -0
  22. {webscout-1.1.2 → webscout-1.1.4}/webscout.egg-info/entry_points.txt +0 -0
  23. {webscout-1.1.2 → webscout-1.1.4}/webscout.egg-info/requires.txt +0 -0
  24. {webscout-1.1.2 → webscout-1.1.4}/webscout.egg-info/top_level.txt +0 -0
@@ -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
 
@@ -74,7 +74,7 @@ python -m webscout --help
74
74
 
75
75
  ## CLI to use LLM
76
76
  ```python
77
- python -m webscout.LLM model_name
77
+ python -m webscout.LLM model_name
78
78
  ```
79
79
  [Go To TOP](#TOP)
80
80
 
@@ -10,7 +10,7 @@ with open("README.md", encoding="utf-8") as f:
10
10
 
11
11
  setup(
12
12
  name="webscout",
13
- version="1.1.2", # Use the version variable from the version.py file
13
+ version="1.1.4", # Use the version variable from the version.py file
14
14
  description="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",
15
15
  long_description=README,
16
16
  long_description_content_type="text/markdown",
@@ -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
 
@@ -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()
@@ -0,0 +1,2 @@
1
+ __version__ = "1.1.4"
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,2 +0,0 @@
1
- __version__ = "1.1.2"
2
-
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes