webscout 2.5__tar.gz → 2.7__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 (73) hide show
  1. {webscout-2.5 → webscout-2.7}/PKG-INFO +56 -21
  2. {webscout-2.5 → webscout-2.7}/README.md +55 -20
  3. {webscout-2.5 → webscout-2.7}/setup.py +1 -1
  4. {webscout-2.5 → webscout-2.7}/webscout/AIutel.py +20 -20
  5. {webscout-2.5 → webscout-2.7}/webscout/Local/_version.py +1 -1
  6. {webscout-2.5 → webscout-2.7}/webscout/Local/formats.py +141 -88
  7. {webscout-2.5 → webscout-2.7}/webscout/Local/model.py +4 -4
  8. {webscout-2.5 → webscout-2.7}/webscout/Local/thread.py +165 -155
  9. webscout-2.7/webscout/Provider/BasedGPT.py +226 -0
  10. webscout-2.7/webscout/Provider/Poe.py +208 -0
  11. {webscout-2.5 → webscout-2.7}/webscout/Provider/__init__.py +3 -1
  12. {webscout-2.5 → webscout-2.7}/webscout/__init__.py +5 -31
  13. {webscout-2.5 → webscout-2.7}/webscout/cli.py +39 -3
  14. webscout-2.7/webscout/version.py +2 -0
  15. {webscout-2.5 → webscout-2.7}/webscout/webai.py +16 -0
  16. webscout-2.5/webscout/webscout_search_async.py → webscout-2.7/webscout/webscout_search.py +261 -254
  17. webscout-2.7/webscout/webscout_search_async.py +361 -0
  18. {webscout-2.5 → webscout-2.7}/webscout.egg-info/PKG-INFO +56 -21
  19. {webscout-2.5 → webscout-2.7}/webscout.egg-info/SOURCES.txt +2 -0
  20. webscout-2.5/webscout/version.py +0 -2
  21. webscout-2.5/webscout/webscout_search.py +0 -78
  22. {webscout-2.5 → webscout-2.7}/DeepWEBS/__init__.py +0 -0
  23. {webscout-2.5 → webscout-2.7}/DeepWEBS/documents/__init__.py +0 -0
  24. {webscout-2.5 → webscout-2.7}/DeepWEBS/documents/query_results_extractor.py +0 -0
  25. {webscout-2.5 → webscout-2.7}/DeepWEBS/documents/webpage_content_extractor.py +0 -0
  26. {webscout-2.5 → webscout-2.7}/DeepWEBS/networks/__init__.py +0 -0
  27. {webscout-2.5 → webscout-2.7}/DeepWEBS/networks/filepath_converter.py +0 -0
  28. {webscout-2.5 → webscout-2.7}/DeepWEBS/networks/google_searcher.py +0 -0
  29. {webscout-2.5 → webscout-2.7}/DeepWEBS/networks/network_configs.py +0 -0
  30. {webscout-2.5 → webscout-2.7}/DeepWEBS/networks/webpage_fetcher.py +0 -0
  31. {webscout-2.5 → webscout-2.7}/DeepWEBS/utilsdw/__init__.py +0 -0
  32. {webscout-2.5 → webscout-2.7}/DeepWEBS/utilsdw/enver.py +0 -0
  33. {webscout-2.5 → webscout-2.7}/DeepWEBS/utilsdw/logger.py +0 -0
  34. {webscout-2.5 → webscout-2.7}/LICENSE.md +0 -0
  35. {webscout-2.5 → webscout-2.7}/setup.cfg +0 -0
  36. {webscout-2.5 → webscout-2.7}/webscout/AIauto.py +0 -0
  37. {webscout-2.5 → webscout-2.7}/webscout/AIbase.py +0 -0
  38. {webscout-2.5 → webscout-2.7}/webscout/DWEBS.py +0 -0
  39. {webscout-2.5 → webscout-2.7}/webscout/LLM.py +0 -0
  40. {webscout-2.5 → webscout-2.7}/webscout/Local/__init__.py +0 -0
  41. {webscout-2.5 → webscout-2.7}/webscout/Local/samplers.py +0 -0
  42. {webscout-2.5 → webscout-2.7}/webscout/Local/utils.py +0 -0
  43. {webscout-2.5 → webscout-2.7}/webscout/Provider/Berlin4h.py +0 -0
  44. {webscout-2.5 → webscout-2.7}/webscout/Provider/Blackboxai.py +0 -0
  45. {webscout-2.5 → webscout-2.7}/webscout/Provider/ChatGPTUK.py +0 -0
  46. {webscout-2.5 → webscout-2.7}/webscout/Provider/Cohere.py +0 -0
  47. {webscout-2.5 → webscout-2.7}/webscout/Provider/Gemini.py +0 -0
  48. {webscout-2.5 → webscout-2.7}/webscout/Provider/Groq.py +0 -0
  49. {webscout-2.5 → webscout-2.7}/webscout/Provider/Koboldai.py +0 -0
  50. {webscout-2.5 → webscout-2.7}/webscout/Provider/Leo.py +0 -0
  51. {webscout-2.5 → webscout-2.7}/webscout/Provider/Llama2.py +0 -0
  52. {webscout-2.5 → webscout-2.7}/webscout/Provider/OpenGPT.py +0 -0
  53. {webscout-2.5 → webscout-2.7}/webscout/Provider/Openai.py +0 -0
  54. {webscout-2.5 → webscout-2.7}/webscout/Provider/Perplexity.py +0 -0
  55. {webscout-2.5 → webscout-2.7}/webscout/Provider/Phind.py +0 -0
  56. {webscout-2.5 → webscout-2.7}/webscout/Provider/Reka.py +0 -0
  57. {webscout-2.5 → webscout-2.7}/webscout/Provider/ThinkAnyAI.py +0 -0
  58. {webscout-2.5 → webscout-2.7}/webscout/Provider/Xjai.py +0 -0
  59. {webscout-2.5 → webscout-2.7}/webscout/Provider/Yepchat.py +0 -0
  60. {webscout-2.5 → webscout-2.7}/webscout/Provider/Youchat.py +0 -0
  61. {webscout-2.5 → webscout-2.7}/webscout/__main__.py +0 -0
  62. {webscout-2.5 → webscout-2.7}/webscout/async_providers.py +0 -0
  63. {webscout-2.5 → webscout-2.7}/webscout/exceptions.py +0 -0
  64. {webscout-2.5 → webscout-2.7}/webscout/g4f.py +0 -0
  65. {webscout-2.5 → webscout-2.7}/webscout/models.py +0 -0
  66. {webscout-2.5 → webscout-2.7}/webscout/tempid.py +0 -0
  67. {webscout-2.5 → webscout-2.7}/webscout/transcriber.py +0 -0
  68. {webscout-2.5 → webscout-2.7}/webscout/utils.py +0 -0
  69. {webscout-2.5 → webscout-2.7}/webscout/voice.py +0 -0
  70. {webscout-2.5 → webscout-2.7}/webscout.egg-info/dependency_links.txt +0 -0
  71. {webscout-2.5 → webscout-2.7}/webscout.egg-info/entry_points.txt +0 -0
  72. {webscout-2.5 → webscout-2.7}/webscout.egg-info/requires.txt +0 -0
  73. {webscout-2.5 → webscout-2.7}/webscout.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: webscout
3
- Version: 2.5
3
+ Version: 2.7
4
4
  Summary: Search for anything using Google, DuckDuckGo, phind.com, Contains AI models, can transcribe yt videos, temporary email and phone number generation, has TTS support, webai (terminal gpt and open interpreter) and offline LLMs
5
5
  Author: OEvortex
6
6
  Author-email: helpingai5@gmail.com
@@ -109,17 +109,18 @@ Search for anything using Google, DuckDuckGo, phind.com, Contains AI models, can
109
109
  - [Available TTS Voices:](#available-tts-voices)
110
110
  - [Exceptions](#exceptions)
111
111
  - [usage of webscout](#usage-of-webscout)
112
- - [1. `text()` - text search by DuckDuckGo.com and Yep.com](#1-text---text-search-by-duckduckgocom-and-yepcom)
113
- - [2. `answers()` - instant answers by DuckDuckGo.com and Yep.com](#2-answers---instant-answers-by-duckduckgocom-and-yepcom)
114
- - [3. `images()` - image search by DuckDuckGo.com and Yep.com](#3-images---image-search-by-duckduckgocom-and-yepcom)
112
+ - [1. `text()` - text search by DuckDuckGo.com](#1-text---text-search-by-duckduckgocom)
113
+ - [2. `answers()` - instant answers by DuckDuckGo.com](#2-answers---instant-answers-by-duckduckgocom)
114
+ - [3. `images()` - image search by DuckDuckGo.com](#3-images---image-search-by-duckduckgocom)
115
115
  - [4. `videos()` - video search by DuckDuckGo.com](#4-videos---video-search-by-duckduckgocom)
116
- - [5. `news()` - news search by DuckDuckGo.com and yep.com](#5-news---news-search-by-duckduckgocom-and-yepcom)
117
- - [6. `maps()` - map search by DuckDuckGo.com and](#6-maps---map-search-by-duckduckgocom-and)
118
- - [7. `translate()` - translation by DuckDuckGo.com and Yep.com](#7-translate---translation-by-duckduckgocom-and-yepcom)
119
- - [8. `suggestions()` - suggestions by DuckDuckGo.com and Yep.com](#8-suggestions---suggestions-by-duckduckgocom-and-yepcom)
116
+ - [5. `news()` - news search by DuckDuckGo.com](#5-news---news-search-by-duckduckgocom)
117
+ - [6. `maps()` - map search by DuckDuckGo.com](#6-maps---map-search-by-duckduckgocom)
118
+ - [7. `translate()` - translation by DuckDuckGo.com](#7-translate---translation-by-duckduckgocom)
119
+ - [8. `suggestions()` - suggestions by DuckDuckGo.com](#8-suggestions---suggestions-by-duckduckgocom)
120
120
  - [ALL acts](#all-acts)
121
121
  - [Webscout Supported Acts:](#webscout-supported-acts)
122
122
  - [usage of webscout AI](#usage-of-webscout-ai)
123
+ - [0. `Duckchat` - chat with LLM](#0-duckchat---chat-with-llm)
123
124
  - [1. `PhindSearch` - Search using Phind.com](#1-phindsearch---search-using-phindcom)
124
125
  - [2. `YepChat` - Chat with mistral 8x7b powered by yepchat](#2-yepchat---chat-with-mistral-8x7b-powered-by-yepchat)
125
126
  - [3. `You.com` - search/chat with you.com](#3-youcom---searchchat-with-youcom)
@@ -134,7 +135,10 @@ Search for anything using Google, DuckDuckGo, phind.com, Contains AI models, can
134
135
  - [12. `Xjai` - chat with free gpt 3.5](#12-xjai---chat-with-free-gpt-35)
135
136
  - [13. `ThinkAny` - AI search engine](#13-thinkany---ai-search-engine)
136
137
  - [14. `chatgptuk` - Chat with gemini-pro](#14-chatgptuk---chat-with-gemini-pro)
138
+ - [15. `poe`- chat with poe](#15-poe--chat-with-poe)
139
+ - [16. `BasedGPT` - chat with GPT](#16-basedgpt---chat-with-gpt)
137
140
  - [`LLM`](#llm)
141
+ - [`Local-LLM` webscout can now run GGUF models](#local-llm-webscout-can-now-run-gguf-models)
138
142
  - [`LLM` with internet](#llm-with-internet)
139
143
  - [LLM with deepwebs](#llm-with-deepwebs)
140
144
  - [`Webai` - terminal gpt and a open interpeter](#webai---terminal-gpt-and-a-open-interpeter)
@@ -524,12 +528,12 @@ Exceptions:
524
528
 
525
529
  ## usage of webscout
526
530
 
527
- ### 1. `text()` - text search by DuckDuckGo.com and Yep.com
531
+ ### 1. `text()` - text search by DuckDuckGo.com
528
532
 
529
533
  ```python
530
534
  from webscout import WEBS
531
535
 
532
- # Text search for 'live free or die' using DuckDuckGo.com and Yep.com
536
+ # Text search for 'live free or die' using DuckDuckGo.com
533
537
  with WEBS() as WEBS:
534
538
  for r in WEBS.text('live free or die', region='wt-wt', safesearch='off', timelimit='y', max_results=10):
535
539
  print(r)
@@ -538,23 +542,23 @@ with WEBS() as WEBS:
538
542
  print(r)
539
543
  ```
540
544
 
541
- ### 2. `answers()` - instant answers by DuckDuckGo.com and Yep.com
545
+ ### 2. `answers()` - instant answers by DuckDuckGo.com
542
546
 
543
547
  ```python
544
548
  from webscout import WEBS
545
549
 
546
- # Instant answers for the query "sun" using DuckDuckGo.com and Yep.com
550
+ # Instant answers for the query "sun" using DuckDuckGo.com
547
551
  with WEBS() as WEBS:
548
552
  for r in WEBS.answers("sun"):
549
553
  print(r)
550
554
  ```
551
555
 
552
- ### 3. `images()` - image search by DuckDuckGo.com and Yep.com
556
+ ### 3. `images()` - image search by DuckDuckGo.com
553
557
 
554
558
  ```python
555
559
  from webscout import WEBS
556
560
 
557
- # Image search for the keyword 'butterfly' using DuckDuckGo.com and Yep.com
561
+ # Image search for the keyword 'butterfly' using DuckDuckGo.com
558
562
  with WEBS() as WEBS:
559
563
  keywords = 'butterfly'
560
564
  WEBS_images_gen = WEBS.images(
@@ -592,7 +596,7 @@ with WEBS() as WEBS:
592
596
  print(r)
593
597
  ```
594
598
 
595
- ### 5. `news()` - news search by DuckDuckGo.com and yep.com
599
+ ### 5. `news()` - news search by DuckDuckGo.com
596
600
 
597
601
  ```python
598
602
  from webscout import WEBS
@@ -639,7 +643,7 @@ print(formatted_headlines)
639
643
 
640
644
  ```
641
645
 
642
- ### 6. `maps()` - map search by DuckDuckGo.com and
646
+ ### 6. `maps()` - map search by DuckDuckGo.com
643
647
 
644
648
  ```python
645
649
  from webscout import WEBS
@@ -650,24 +654,24 @@ with WEBS() as WEBS:
650
654
  print(r)
651
655
  ```
652
656
 
653
- ### 7. `translate()` - translation by DuckDuckGo.com and Yep.com
657
+ ### 7. `translate()` - translation by DuckDuckGo.com
654
658
 
655
659
  ```python
656
660
  from webscout import WEBS
657
661
 
658
- # Translation of the keyword 'school' to German ('hi') using DuckDuckGo.com and Yep.com
662
+ # Translation of the keyword 'school' to German ('hi') using DuckDuckGo.com
659
663
  with WEBS() as WEBS:
660
664
  keywords = 'school'
661
665
  r = WEBS.translate(keywords, to="hi")
662
666
  print(r)
663
667
  ```
664
668
 
665
- ### 8. `suggestions()` - suggestions by DuckDuckGo.com and Yep.com
669
+ ### 8. `suggestions()` - suggestions by DuckDuckGo.com
666
670
 
667
671
  ```python
668
672
  from webscout import WEBS
669
673
 
670
- # Suggestions for the keyword 'fly' using DuckDuckGo.com and Yep
674
+ # Suggestions for the keyword 'fly' using DuckDuckGo.com
671
675
  with WEBS() as WEBS:
672
676
  for r in WEBS.suggestions("fly"):
673
677
  print(r)
@@ -930,7 +934,12 @@ ___
930
934
  </details>
931
935
 
932
936
  ## usage of webscout AI
933
-
937
+ ### 0. `Duckchat` - chat with LLM
938
+ ```python
939
+ from webscout import WEBS as w
940
+ R = w().chat("hello", model='claude-3-haiku') # GPT-3.5 Turbo
941
+ print(R)
942
+ ```
934
943
  ### 1. `PhindSearch` - Search using Phind.com
935
944
 
936
945
  ```python
@@ -1198,7 +1207,13 @@ ai = ChatGPTUK(
1198
1207
  prompt = "Explain the concept of recursion in simple terms."
1199
1208
  response = ai.chat(prompt)
1200
1209
  print(response)
1210
+
1201
1211
  ```
1212
+ ### 15. `poe`- chat with poe
1213
+ Usage code similar to other proviers
1214
+
1215
+ ### 16. `BasedGPT` - chat with GPT
1216
+ Usage code similar to other providers
1202
1217
  ### `LLM`
1203
1218
  ```python
1204
1219
  from webscout.LLM import LLM
@@ -1225,6 +1240,26 @@ while True:
1225
1240
  # Print the response
1226
1241
  print("AI: ", response)
1227
1242
  ```
1243
+ ### `Local-LLM` webscout can now run GGUF models
1244
+ ```python
1245
+ from webscout.Local.utils import download_model
1246
+ from webscout.Local.model import Model
1247
+ from webscout.Local.thread import Thread
1248
+ from webscout.Local import formats
1249
+ # 1. Download the model
1250
+ repo_id = "microsoft/Phi-3-mini-4k-instruct-gguf" # Replace with the desired Hugging Face repo
1251
+ filename = "Phi-3-mini-4k-instruct-q4.gguf" # Replace with the correct filename
1252
+ model_path = download_model(repo_id, filename)
1253
+
1254
+ # 2. Load the model
1255
+ model = Model(model_path, n_gpu_layers=4)
1256
+
1257
+ # 3. Create a Thread for conversation
1258
+ thread = Thread(model, formats.phi3)
1259
+
1260
+ # 4. Start interacting with the model
1261
+ thread.interact()
1262
+ ```
1228
1263
  ### `LLM` with internet
1229
1264
  ```python
1230
1265
  from __future__ import annotations
@@ -47,17 +47,18 @@ Search for anything using Google, DuckDuckGo, phind.com, Contains AI models, can
47
47
  - [Available TTS Voices:](#available-tts-voices)
48
48
  - [Exceptions](#exceptions)
49
49
  - [usage of webscout](#usage-of-webscout)
50
- - [1. `text()` - text search by DuckDuckGo.com and Yep.com](#1-text---text-search-by-duckduckgocom-and-yepcom)
51
- - [2. `answers()` - instant answers by DuckDuckGo.com and Yep.com](#2-answers---instant-answers-by-duckduckgocom-and-yepcom)
52
- - [3. `images()` - image search by DuckDuckGo.com and Yep.com](#3-images---image-search-by-duckduckgocom-and-yepcom)
50
+ - [1. `text()` - text search by DuckDuckGo.com](#1-text---text-search-by-duckduckgocom)
51
+ - [2. `answers()` - instant answers by DuckDuckGo.com](#2-answers---instant-answers-by-duckduckgocom)
52
+ - [3. `images()` - image search by DuckDuckGo.com](#3-images---image-search-by-duckduckgocom)
53
53
  - [4. `videos()` - video search by DuckDuckGo.com](#4-videos---video-search-by-duckduckgocom)
54
- - [5. `news()` - news search by DuckDuckGo.com and yep.com](#5-news---news-search-by-duckduckgocom-and-yepcom)
55
- - [6. `maps()` - map search by DuckDuckGo.com and](#6-maps---map-search-by-duckduckgocom-and)
56
- - [7. `translate()` - translation by DuckDuckGo.com and Yep.com](#7-translate---translation-by-duckduckgocom-and-yepcom)
57
- - [8. `suggestions()` - suggestions by DuckDuckGo.com and Yep.com](#8-suggestions---suggestions-by-duckduckgocom-and-yepcom)
54
+ - [5. `news()` - news search by DuckDuckGo.com](#5-news---news-search-by-duckduckgocom)
55
+ - [6. `maps()` - map search by DuckDuckGo.com](#6-maps---map-search-by-duckduckgocom)
56
+ - [7. `translate()` - translation by DuckDuckGo.com](#7-translate---translation-by-duckduckgocom)
57
+ - [8. `suggestions()` - suggestions by DuckDuckGo.com](#8-suggestions---suggestions-by-duckduckgocom)
58
58
  - [ALL acts](#all-acts)
59
59
  - [Webscout Supported Acts:](#webscout-supported-acts)
60
60
  - [usage of webscout AI](#usage-of-webscout-ai)
61
+ - [0. `Duckchat` - chat with LLM](#0-duckchat---chat-with-llm)
61
62
  - [1. `PhindSearch` - Search using Phind.com](#1-phindsearch---search-using-phindcom)
62
63
  - [2. `YepChat` - Chat with mistral 8x7b powered by yepchat](#2-yepchat---chat-with-mistral-8x7b-powered-by-yepchat)
63
64
  - [3. `You.com` - search/chat with you.com](#3-youcom---searchchat-with-youcom)
@@ -72,7 +73,10 @@ Search for anything using Google, DuckDuckGo, phind.com, Contains AI models, can
72
73
  - [12. `Xjai` - chat with free gpt 3.5](#12-xjai---chat-with-free-gpt-35)
73
74
  - [13. `ThinkAny` - AI search engine](#13-thinkany---ai-search-engine)
74
75
  - [14. `chatgptuk` - Chat with gemini-pro](#14-chatgptuk---chat-with-gemini-pro)
76
+ - [15. `poe`- chat with poe](#15-poe--chat-with-poe)
77
+ - [16. `BasedGPT` - chat with GPT](#16-basedgpt---chat-with-gpt)
75
78
  - [`LLM`](#llm)
79
+ - [`Local-LLM` webscout can now run GGUF models](#local-llm-webscout-can-now-run-gguf-models)
76
80
  - [`LLM` with internet](#llm-with-internet)
77
81
  - [LLM with deepwebs](#llm-with-deepwebs)
78
82
  - [`Webai` - terminal gpt and a open interpeter](#webai---terminal-gpt-and-a-open-interpeter)
@@ -462,12 +466,12 @@ Exceptions:
462
466
 
463
467
  ## usage of webscout
464
468
 
465
- ### 1. `text()` - text search by DuckDuckGo.com and Yep.com
469
+ ### 1. `text()` - text search by DuckDuckGo.com
466
470
 
467
471
  ```python
468
472
  from webscout import WEBS
469
473
 
470
- # Text search for 'live free or die' using DuckDuckGo.com and Yep.com
474
+ # Text search for 'live free or die' using DuckDuckGo.com
471
475
  with WEBS() as WEBS:
472
476
  for r in WEBS.text('live free or die', region='wt-wt', safesearch='off', timelimit='y', max_results=10):
473
477
  print(r)
@@ -476,23 +480,23 @@ with WEBS() as WEBS:
476
480
  print(r)
477
481
  ```
478
482
 
479
- ### 2. `answers()` - instant answers by DuckDuckGo.com and Yep.com
483
+ ### 2. `answers()` - instant answers by DuckDuckGo.com
480
484
 
481
485
  ```python
482
486
  from webscout import WEBS
483
487
 
484
- # Instant answers for the query "sun" using DuckDuckGo.com and Yep.com
488
+ # Instant answers for the query "sun" using DuckDuckGo.com
485
489
  with WEBS() as WEBS:
486
490
  for r in WEBS.answers("sun"):
487
491
  print(r)
488
492
  ```
489
493
 
490
- ### 3. `images()` - image search by DuckDuckGo.com and Yep.com
494
+ ### 3. `images()` - image search by DuckDuckGo.com
491
495
 
492
496
  ```python
493
497
  from webscout import WEBS
494
498
 
495
- # Image search for the keyword 'butterfly' using DuckDuckGo.com and Yep.com
499
+ # Image search for the keyword 'butterfly' using DuckDuckGo.com
496
500
  with WEBS() as WEBS:
497
501
  keywords = 'butterfly'
498
502
  WEBS_images_gen = WEBS.images(
@@ -530,7 +534,7 @@ with WEBS() as WEBS:
530
534
  print(r)
531
535
  ```
532
536
 
533
- ### 5. `news()` - news search by DuckDuckGo.com and yep.com
537
+ ### 5. `news()` - news search by DuckDuckGo.com
534
538
 
535
539
  ```python
536
540
  from webscout import WEBS
@@ -577,7 +581,7 @@ print(formatted_headlines)
577
581
 
578
582
  ```
579
583
 
580
- ### 6. `maps()` - map search by DuckDuckGo.com and
584
+ ### 6. `maps()` - map search by DuckDuckGo.com
581
585
 
582
586
  ```python
583
587
  from webscout import WEBS
@@ -588,24 +592,24 @@ with WEBS() as WEBS:
588
592
  print(r)
589
593
  ```
590
594
 
591
- ### 7. `translate()` - translation by DuckDuckGo.com and Yep.com
595
+ ### 7. `translate()` - translation by DuckDuckGo.com
592
596
 
593
597
  ```python
594
598
  from webscout import WEBS
595
599
 
596
- # Translation of the keyword 'school' to German ('hi') using DuckDuckGo.com and Yep.com
600
+ # Translation of the keyword 'school' to German ('hi') using DuckDuckGo.com
597
601
  with WEBS() as WEBS:
598
602
  keywords = 'school'
599
603
  r = WEBS.translate(keywords, to="hi")
600
604
  print(r)
601
605
  ```
602
606
 
603
- ### 8. `suggestions()` - suggestions by DuckDuckGo.com and Yep.com
607
+ ### 8. `suggestions()` - suggestions by DuckDuckGo.com
604
608
 
605
609
  ```python
606
610
  from webscout import WEBS
607
611
 
608
- # Suggestions for the keyword 'fly' using DuckDuckGo.com and Yep
612
+ # Suggestions for the keyword 'fly' using DuckDuckGo.com
609
613
  with WEBS() as WEBS:
610
614
  for r in WEBS.suggestions("fly"):
611
615
  print(r)
@@ -868,7 +872,12 @@ ___
868
872
  </details>
869
873
 
870
874
  ## usage of webscout AI
871
-
875
+ ### 0. `Duckchat` - chat with LLM
876
+ ```python
877
+ from webscout import WEBS as w
878
+ R = w().chat("hello", model='claude-3-haiku') # GPT-3.5 Turbo
879
+ print(R)
880
+ ```
872
881
  ### 1. `PhindSearch` - Search using Phind.com
873
882
 
874
883
  ```python
@@ -1136,7 +1145,13 @@ ai = ChatGPTUK(
1136
1145
  prompt = "Explain the concept of recursion in simple terms."
1137
1146
  response = ai.chat(prompt)
1138
1147
  print(response)
1148
+
1139
1149
  ```
1150
+ ### 15. `poe`- chat with poe
1151
+ Usage code similar to other proviers
1152
+
1153
+ ### 16. `BasedGPT` - chat with GPT
1154
+ Usage code similar to other providers
1140
1155
  ### `LLM`
1141
1156
  ```python
1142
1157
  from webscout.LLM import LLM
@@ -1163,6 +1178,26 @@ while True:
1163
1178
  # Print the response
1164
1179
  print("AI: ", response)
1165
1180
  ```
1181
+ ### `Local-LLM` webscout can now run GGUF models
1182
+ ```python
1183
+ from webscout.Local.utils import download_model
1184
+ from webscout.Local.model import Model
1185
+ from webscout.Local.thread import Thread
1186
+ from webscout.Local import formats
1187
+ # 1. Download the model
1188
+ repo_id = "microsoft/Phi-3-mini-4k-instruct-gguf" # Replace with the desired Hugging Face repo
1189
+ filename = "Phi-3-mini-4k-instruct-q4.gguf" # Replace with the correct filename
1190
+ model_path = download_model(repo_id, filename)
1191
+
1192
+ # 2. Load the model
1193
+ model = Model(model_path, n_gpu_layers=4)
1194
+
1195
+ # 3. Create a Thread for conversation
1196
+ thread = Thread(model, formats.phi3)
1197
+
1198
+ # 4. Start interacting with the model
1199
+ thread.interact()
1200
+ ```
1166
1201
  ### `LLM` with internet
1167
1202
  ```python
1168
1203
  from __future__ import annotations
@@ -5,7 +5,7 @@ with open("README.md", encoding="utf-8") as f:
5
5
 
6
6
  setup(
7
7
  name="webscout",
8
- version="2.5",
8
+ version="2.7",
9
9
  description="Search for anything using Google, DuckDuckGo, phind.com, Contains AI models, can transcribe yt videos, temporary email and phone number generation, has TTS support, webai (terminal gpt and open interpreter) and offline LLMs",
10
10
  long_description=README,
11
11
  long_description_content_type="text/markdown",
@@ -26,27 +26,27 @@ default_path = appdir.user_cache_dir
26
26
  if not os.path.exists(default_path):
27
27
  os.makedirs(default_path)
28
28
  webai = [
29
- "leo",
30
- "openai",
31
- "opengpt",
32
- "koboldai",
33
- "gemini",
34
- "phind",
35
- "blackboxai",
36
- "g4fauto",
37
- "perplexity",
38
- "groq",
39
- "reka",
40
- "cohere",
41
- "yepchat",
42
- "you",
43
- "xjai",
44
- "thinkany",
45
- "berlin4h",
46
- "chatgptuk",
47
- "auto",
29
+ "leo",
30
+ "openai",
31
+ "opengpt",
32
+ "koboldai",
33
+ "gemini",
34
+ "phind",
35
+ "blackboxai",
36
+ "g4fauto",
37
+ "perplexity",
38
+ "groq",
39
+ "reka",
40
+ "cohere",
41
+ "yepchat",
42
+ "you",
43
+ "xjai",
44
+ "thinkany",
45
+ "berlin4h",
46
+ "chatgptuk",
47
+ "auto",
48
+ "poe",
48
49
  ]
49
-
50
50
  gpt4free_providers = [
51
51
  provider.__name__ for provider in g4f.Provider.__providers__ # if provider.working
52
52
  ]
@@ -1,3 +1,3 @@
1
1
  from llama_cpp import __version__ as __llama_cpp_version__
2
2
 
3
- __version__ = '2.3'
3
+ __version__ = '2.7'