webscout 5.8__py3-none-any.whl → 5.9__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/Provider/Amigo.py +265 -0
- webscout/Provider/TTI/WebSimAI.py +142 -0
- webscout/Provider/TTI/__init__.py +3 -1
- webscout/Provider/TTI/amigo.py +148 -0
- webscout/Provider/TTS/__init__.py +2 -1
- webscout/Provider/TTS/parler.py +108 -0
- webscout/Provider/__init__.py +5 -0
- webscout/Provider/learnfastai.py +253 -0
- webscout/Provider/prefind.py +232 -0
- webscout/version.py +1 -1
- {webscout-5.8.dist-info → webscout-5.9.dist-info}/METADATA +183 -89
- {webscout-5.8.dist-info → webscout-5.9.dist-info}/RECORD +16 -10
- {webscout-5.8.dist-info → webscout-5.9.dist-info}/LICENSE.md +0 -0
- {webscout-5.8.dist-info → webscout-5.9.dist-info}/WHEEL +0 -0
- {webscout-5.8.dist-info → webscout-5.9.dist-info}/entry_points.txt +0 -0
- {webscout-5.8.dist-info → webscout-5.9.dist-info}/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: webscout
|
|
3
|
-
Version: 5.
|
|
3
|
+
Version: 5.9
|
|
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 and more
|
|
5
5
|
Author: OEvortex
|
|
6
6
|
Author-email: helpingai5@gmail.com
|
|
@@ -75,32 +75,53 @@ Requires-Dist: huggingface-hub[cli] ; extra == 'local'
|
|
|
75
75
|
|
|
76
76
|
<div align="center">
|
|
77
77
|
<!-- Replace `#` with your actual links -->
|
|
78
|
-
<a href="https://youtube.com/@OEvortex"
|
|
79
|
-
|
|
78
|
+
<a href="https://youtube.com/@OEvortex">▶️ Vortex's YouTube Channel</a>
|
|
79
|
+
</div>
|
|
80
|
+
<div align="center">
|
|
81
|
+
<a href="https://youtube.com/@devsdocode">▶️ Devs Do Code's YouTube Channel</a>
|
|
82
|
+
</div>
|
|
80
83
|
<div align="center">
|
|
81
|
-
<a href="https://
|
|
84
|
+
<a href="https://t.me/ANONYMOUS_56788">📢 Anonymous Coder's Telegram</a>
|
|
82
85
|
</div>
|
|
83
86
|
|
|
84
87
|
|
|
85
88
|
|
|
86
89
|
|
|
87
|
-
# WEBSCOUT
|
|
90
|
+
# WEBSCOUT 🕵️️
|
|
88
91
|
</div>
|
|
92
|
+
|
|
89
93
|
<p align="center">
|
|
94
|
+
Search for anything using Google, DuckDuckGo, Phind.com, access AI models, transcribe YouTube videos, generate temporary emails and phone numbers, utilize text-to-speech, leverage WebAI (terminal GPT and open interpreter), and explore offline LLMs, and much more!
|
|
95
|
+
</p>
|
|
96
|
+
|
|
90
97
|
<div align="center">
|
|
91
98
|
<img src="https://img.shields.io/badge/WebScout-API-blue?style=for-the-badge&logo=WebScout" alt="WebScout API Badge">
|
|
99
|
+
<a href="#"><img alt="Python version" src="https://img.shields.io/pypi/pyversions/webscout"/></a>
|
|
100
|
+
<a href="https://pepy.tech/project/webscout"><img alt="Downloads" src="https://static.pepy.tech/badge/webscout"></a>
|
|
92
101
|
</div>
|
|
93
|
-
<a href="#"><img alt="Python version" src="https://img.shields.io/pypi/pyversions/webscout"/></a>
|
|
94
|
-
<a href="https://pepy.tech/project/webscout"><img alt="Downloads" src="https://static.pepy.tech/badge/webscout"></a>
|
|
95
102
|
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
103
|
+
## 🚀 Features
|
|
104
|
+
* **Comprehensive Search:** Leverage Google, DuckDuckGo, and Phind.com for diverse search results.
|
|
105
|
+
* **AI Powerhouse:** Access and interact with various AI models, including OpenAI, Cohere, and more.
|
|
106
|
+
* **YouTube Toolkit:** Transcribe YouTube videos effortlessly and download audio/video content.
|
|
107
|
+
* **Tempmail & Temp Number:** Generate temporary email addresses and phone numbers for enhanced privacy.
|
|
108
|
+
* **Text-to-Speech (TTS):** Convert text into natural-sounding speech using various TTS providers.
|
|
109
|
+
* **WebAI:** Experience the power of terminal-based GPT and an open interpreter for code execution and more.
|
|
110
|
+
* **Offline LLMs:** Utilize powerful language models offline with GGUF support.
|
|
111
|
+
* **Extensive Provider Ecosystem:** Explore a vast collection of providers, including Poe, BasedGPT, DeepSeek, and many others.
|
|
112
|
+
* **Local LLM Execution:** Run GGUF models locally with minimal configuration.
|
|
113
|
+
* **Rawdog Scripting:** Execute Python scripts directly within your terminal using the `rawdog` feature.
|
|
114
|
+
* **GGUF Conversion & Quantization:** Convert and quantize Hugging Face models to GGUF format.
|
|
115
|
+
* **Autollama:** Download Hugging Face models and automatically convert them for Ollama compatibility.
|
|
116
|
+
* **Function Calling (Beta):** Experiment with function calling capabilities for enhanced AI interactions.
|
|
117
|
+
|
|
118
|
+
|
|
119
|
+
## ⚙️ Installation
|
|
100
120
|
```python
|
|
101
121
|
pip install -U webscout
|
|
102
122
|
```
|
|
103
|
-
|
|
123
|
+
|
|
124
|
+
## 🖥️ CLI Usage
|
|
104
125
|
|
|
105
126
|
```python3
|
|
106
127
|
python -m webscout --help
|
|
@@ -118,13 +139,11 @@ python -m webscout --help
|
|
|
118
139
|
| python -m webscout version | A command-line interface command that prints and returns the version of the program. |
|
|
119
140
|
| python -m webscout videos -k Text | CLI function to perform a videos search using DuckDuckGo API. |
|
|
120
141
|
|
|
142
|
+
[Go To TOP](#webscout-️)
|
|
121
143
|
|
|
122
|
-
|
|
123
|
-
[Go To TOP](#TOP)
|
|
124
|
-
|
|
125
|
-
## Regions
|
|
144
|
+
## 🌍 Regions
|
|
126
145
|
<details>
|
|
127
|
-
<summary>
|
|
146
|
+
<summary>Expand</summary>
|
|
128
147
|
|
|
129
148
|
xa-ar for Arabia
|
|
130
149
|
xa-en for Arabia (en)
|
|
@@ -199,8 +218,9 @@ python -m webscout --help
|
|
|
199
218
|
</details>
|
|
200
219
|
|
|
201
220
|
|
|
202
|
-
[Go To TOP](#
|
|
203
|
-
|
|
221
|
+
[Go To TOP](#webscout-️)
|
|
222
|
+
|
|
223
|
+
## ⬇️ YTdownloader
|
|
204
224
|
|
|
205
225
|
```python
|
|
206
226
|
from os import rename, getcwd
|
|
@@ -224,23 +244,25 @@ if __name__ == "__main__":
|
|
|
224
244
|
download_video("https://www.youtube.com/watch?v=c0tMvzB0OKw")
|
|
225
245
|
```
|
|
226
246
|
|
|
227
|
-
## Weather
|
|
228
|
-
|
|
247
|
+
## ☀️ Weather
|
|
248
|
+
|
|
249
|
+
### 1. Weather
|
|
229
250
|
```python
|
|
230
251
|
from webscout import weather as w
|
|
231
252
|
weather = w.get("Qazigund")
|
|
232
253
|
w.print_weather(weather)
|
|
233
254
|
```
|
|
234
|
-
|
|
255
|
+
|
|
256
|
+
### 2. Weather ASCII
|
|
235
257
|
```python
|
|
236
258
|
from webscout import weather_ascii as w
|
|
237
259
|
weather = w.get("Qazigund")
|
|
238
260
|
print(weather)
|
|
239
261
|
```
|
|
240
262
|
|
|
241
|
-
## Tempmail and Temp
|
|
263
|
+
## ✉️ Tempmail and 📞 Temp Number
|
|
242
264
|
|
|
243
|
-
### Temp
|
|
265
|
+
### Temp Number
|
|
244
266
|
```python
|
|
245
267
|
from rich.console import Console
|
|
246
268
|
from webscout import tempid
|
|
@@ -275,6 +297,7 @@ if __name__ == "__main__":
|
|
|
275
297
|
main()
|
|
276
298
|
|
|
277
299
|
```
|
|
300
|
+
|
|
278
301
|
### Tempmail
|
|
279
302
|
```python
|
|
280
303
|
import asyncio
|
|
@@ -324,8 +347,12 @@ if __name__ == '__main__':
|
|
|
324
347
|
asyncio.run(main())
|
|
325
348
|
```
|
|
326
349
|
|
|
327
|
-
## Transcriber
|
|
328
|
-
|
|
350
|
+
## 📝 Transcriber
|
|
351
|
+
|
|
352
|
+
The `transcriber` function in Webscout is a handy tool that transcribes YouTube videos.
|
|
353
|
+
|
|
354
|
+
**Example:**
|
|
355
|
+
|
|
329
356
|
```python
|
|
330
357
|
from webscout import YTTranscriber
|
|
331
358
|
yt = YTTranscriber()
|
|
@@ -335,7 +362,8 @@ transcript = yt.get_transcript(video_url, languages=None)
|
|
|
335
362
|
print(transcript)
|
|
336
363
|
```
|
|
337
364
|
|
|
338
|
-
## GoogleS
|
|
365
|
+
## 🔍 GoogleS (formerly DWEBS)
|
|
366
|
+
|
|
339
367
|
```python
|
|
340
368
|
from webscout import GoogleS
|
|
341
369
|
from rich import print
|
|
@@ -344,7 +372,9 @@ results = searcher.search("HelpingAI-9B", max_results=20, extract_text=False, ma
|
|
|
344
372
|
for result in results:
|
|
345
373
|
print(result)
|
|
346
374
|
```
|
|
375
|
+
|
|
347
376
|
### BingS
|
|
377
|
+
|
|
348
378
|
```python
|
|
349
379
|
from webscout import BingS
|
|
350
380
|
from rich import print
|
|
@@ -354,19 +384,25 @@ for result in results:
|
|
|
354
384
|
print(result)
|
|
355
385
|
```
|
|
356
386
|
|
|
387
|
+
## 🦆 WEBS and AsyncWEBS
|
|
388
|
+
|
|
389
|
+
The `WEBS` and `AsyncWEBS` classes are used to retrieve search results from DuckDuckGo.com.
|
|
390
|
+
|
|
391
|
+
To use the `AsyncWEBS` class, you can perform asynchronous operations using Python's `asyncio` library.
|
|
392
|
+
|
|
393
|
+
To initialize an instance of the `WEBS` or `AsyncWEBS` classes, you can provide the following optional arguments:
|
|
357
394
|
|
|
358
|
-
|
|
359
|
-
To use the AsyncWEBS class, you can perform asynchronous operations using Python's asyncio library.
|
|
360
|
-
To initialize an instance of the WEBS or AsyncWEBS classes, you can provide the following optional arguments:
|
|
395
|
+
**Example - WEBS:**
|
|
361
396
|
|
|
362
|
-
Here is an example of initializing the WEBS class:
|
|
363
397
|
```python
|
|
364
398
|
from webscout import WEBS
|
|
365
399
|
|
|
366
400
|
R = WEBS().text("python programming", max_results=5)
|
|
367
401
|
print(R)
|
|
368
402
|
```
|
|
369
|
-
|
|
403
|
+
|
|
404
|
+
**Example - AsyncWEBS:**
|
|
405
|
+
|
|
370
406
|
```python
|
|
371
407
|
import asyncio
|
|
372
408
|
import logging
|
|
@@ -406,17 +442,18 @@ logging.basicConfig(level=logging.DEBUG)
|
|
|
406
442
|
|
|
407
443
|
await main()
|
|
408
444
|
```
|
|
409
|
-
It is important to note that the WEBS and AsyncWEBS classes should always be used as a context manager (with statement).
|
|
410
|
-
This ensures proper resource management and cleanup, as the context manager will automatically handle opening and closing the HTTP client connection.
|
|
411
445
|
|
|
412
|
-
|
|
446
|
+
**Important Note:** The `WEBS` and `AsyncWEBS` classes should always be used as a context manager (with statement). This ensures proper resource management and cleanup, as the context manager will automatically handle opening and closing the HTTP client connection.
|
|
447
|
+
|
|
448
|
+
## ⚠️ Exceptions
|
|
413
449
|
|
|
414
|
-
Exceptions
|
|
415
|
-
- `WebscoutE`: Raised when there is a generic exception during the API request.
|
|
450
|
+
**Exceptions:**
|
|
416
451
|
|
|
417
|
-
|
|
452
|
+
* `WebscoutE`: Raised when there is a generic exception during the API request.
|
|
418
453
|
|
|
419
|
-
|
|
454
|
+
## 💻 Usage of WEBS
|
|
455
|
+
|
|
456
|
+
### 1. `text()` - Text Search by DuckDuckGo.com
|
|
420
457
|
|
|
421
458
|
```python
|
|
422
459
|
from webscout import WEBS
|
|
@@ -430,7 +467,7 @@ with WEBS() as WEBS:
|
|
|
430
467
|
print(r)
|
|
431
468
|
```
|
|
432
469
|
|
|
433
|
-
### 2. `answers()` -
|
|
470
|
+
### 2. `answers()` - Instant Answers by DuckDuckGo.com
|
|
434
471
|
|
|
435
472
|
```python
|
|
436
473
|
from webscout import WEBS
|
|
@@ -441,7 +478,7 @@ with WEBS() as WEBS:
|
|
|
441
478
|
print(r)
|
|
442
479
|
```
|
|
443
480
|
|
|
444
|
-
### 3. `images()` -
|
|
481
|
+
### 3. `images()` - Image Search by DuckDuckGo.com
|
|
445
482
|
|
|
446
483
|
```python
|
|
447
484
|
from webscout import WEBS
|
|
@@ -463,7 +500,7 @@ with WEBS() as WEBS:
|
|
|
463
500
|
print(r)
|
|
464
501
|
```
|
|
465
502
|
|
|
466
|
-
### 4. `videos()` -
|
|
503
|
+
### 4. `videos()` - Video Search by DuckDuckGo.com
|
|
467
504
|
|
|
468
505
|
```python
|
|
469
506
|
from webscout import WEBS
|
|
@@ -484,7 +521,7 @@ with WEBS() as WEBS:
|
|
|
484
521
|
print(r)
|
|
485
522
|
```
|
|
486
523
|
|
|
487
|
-
### 5. `news()` -
|
|
524
|
+
### 5. `news()` - News Search by DuckDuckGo.com
|
|
488
525
|
|
|
489
526
|
```python
|
|
490
527
|
from webscout import WEBS
|
|
@@ -531,7 +568,7 @@ print(formatted_headlines)
|
|
|
531
568
|
|
|
532
569
|
```
|
|
533
570
|
|
|
534
|
-
### 6. `maps()` -
|
|
571
|
+
### 6. `maps()` - Map Search by DuckDuckGo.com
|
|
535
572
|
|
|
536
573
|
```python
|
|
537
574
|
from webscout import WEBS
|
|
@@ -542,7 +579,7 @@ with WEBS() as WEBS:
|
|
|
542
579
|
print(r)
|
|
543
580
|
```
|
|
544
581
|
|
|
545
|
-
### 7. `translate()` -
|
|
582
|
+
### 7. `translate()` - Translation by DuckDuckGo.com
|
|
546
583
|
|
|
547
584
|
```python
|
|
548
585
|
from webscout import WEBS
|
|
@@ -554,7 +591,7 @@ with WEBS() as WEBS:
|
|
|
554
591
|
print(r)
|
|
555
592
|
```
|
|
556
593
|
|
|
557
|
-
### 8. `suggestions()` -
|
|
594
|
+
### 8. `suggestions()` - Suggestions by DuckDuckGo.com
|
|
558
595
|
|
|
559
596
|
```python
|
|
560
597
|
from webscout import WEBS
|
|
@@ -565,8 +602,8 @@ with WEBS() as WEBS:
|
|
|
565
602
|
print(r)
|
|
566
603
|
```
|
|
567
604
|
|
|
605
|
+
## 🌐 WEBSX - Another Web Search Tool
|
|
568
606
|
|
|
569
|
-
## usage of WEBSX -- Another Websearch thing
|
|
570
607
|
```python
|
|
571
608
|
from webscout import WEBSX
|
|
572
609
|
s = "Python development tools"
|
|
@@ -575,16 +612,18 @@ result = WEBSX(s)
|
|
|
575
612
|
|
|
576
613
|
print(result)
|
|
577
614
|
```
|
|
578
|
-
|
|
615
|
+
|
|
616
|
+
## 🎭 ALL Acts
|
|
617
|
+
|
|
579
618
|
<details>
|
|
580
|
-
<summary>
|
|
619
|
+
<summary>Expand</summary>
|
|
581
620
|
|
|
582
621
|
## Webscout Supported Acts:
|
|
583
622
|
|
|
584
623
|
1. Free-mode
|
|
585
624
|
2. Linux Terminal
|
|
586
625
|
3. English Translator and Improver
|
|
587
|
-
4. `position` Interviewer
|
|
626
|
+
4. `position` Interviewer
|
|
588
627
|
5. JavaScript Console
|
|
589
628
|
6. Excel Sheet
|
|
590
629
|
7. English Pronunciation Helper
|
|
@@ -742,7 +781,7 @@ print(result)
|
|
|
742
781
|
159. Wikipedia page
|
|
743
782
|
160. Japanese Kanji quiz machine
|
|
744
783
|
161. note-taking assistant
|
|
745
|
-
162. `language` Literary Critic
|
|
784
|
+
162. `language` Literary Critic
|
|
746
785
|
163. Cheap Travel Ticket Advisor
|
|
747
786
|
164. DALL-E
|
|
748
787
|
165. MathBot
|
|
@@ -832,8 +871,10 @@ print(result)
|
|
|
832
871
|
___
|
|
833
872
|
</details>
|
|
834
873
|
|
|
835
|
-
###
|
|
836
|
-
|
|
874
|
+
### 🖼️ Text to Images - DeepInfraImager, PollinationsAI, BlackboxAIImager, AiForceimagger, NexraImager, HFimager, ArtbitImager
|
|
875
|
+
|
|
876
|
+
**Every TTI provider has the same usage code, you just need to change the import.**
|
|
877
|
+
|
|
837
878
|
```python
|
|
838
879
|
from webscout import DeepInfraImager
|
|
839
880
|
bot = DeepInfraImager()
|
|
@@ -841,7 +882,8 @@ resp = bot.generate("AI-generated image - webscout", 1)
|
|
|
841
882
|
print(bot.save(resp))
|
|
842
883
|
```
|
|
843
884
|
|
|
844
|
-
### Text to
|
|
885
|
+
### 🗣️ Text to Speech - Voicepods, StreamElements
|
|
886
|
+
|
|
845
887
|
```python
|
|
846
888
|
from webscout import Voicepods
|
|
847
889
|
voicepods = Voicepods()
|
|
@@ -854,13 +896,15 @@ print("Playing audio...")
|
|
|
854
896
|
voicepods.play_audio(audio_file)
|
|
855
897
|
```
|
|
856
898
|
|
|
857
|
-
###
|
|
899
|
+
### 💬 `Duckchat` - Chat with LLM
|
|
900
|
+
|
|
858
901
|
```python
|
|
859
902
|
from webscout import WEBS as w
|
|
860
903
|
R = w().chat("Who are you", model='gpt-4o-mini') # GPT-3.5 Turbo, mixtral-8x7b, llama-3-70b, claude-3-haiku, gpt-4o-mini
|
|
861
904
|
print(R)
|
|
862
905
|
```
|
|
863
|
-
|
|
906
|
+
|
|
907
|
+
### 🔎 `PhindSearch` - Search using Phind.com
|
|
864
908
|
|
|
865
909
|
```python
|
|
866
910
|
from webscout import PhindSearch
|
|
@@ -878,7 +922,9 @@ response = ph.ask(prompt)
|
|
|
878
922
|
message = ph.get_message(response)
|
|
879
923
|
print(message)
|
|
880
924
|
```
|
|
881
|
-
|
|
925
|
+
|
|
926
|
+
**Using phindv2:**
|
|
927
|
+
|
|
882
928
|
```python
|
|
883
929
|
from webscout import Phindv2
|
|
884
930
|
|
|
@@ -896,7 +942,7 @@ message = ph.get_message(response)
|
|
|
896
942
|
print(message)
|
|
897
943
|
```
|
|
898
944
|
|
|
899
|
-
### `Gemini` -
|
|
945
|
+
### ♊ `Gemini` - Search with Google Gemini
|
|
900
946
|
|
|
901
947
|
```python
|
|
902
948
|
import webscout
|
|
@@ -914,7 +960,9 @@ gemini = GEMINI(cookie_file=COOKIE_FILE, proxy=PROXIES)
|
|
|
914
960
|
response = gemini.chat("websearch about HelpingAI and who is its developer")
|
|
915
961
|
print(response)
|
|
916
962
|
```
|
|
917
|
-
|
|
963
|
+
|
|
964
|
+
### 💬 `YEPCHAT`
|
|
965
|
+
|
|
918
966
|
```python
|
|
919
967
|
from webscout import YEPCHAT
|
|
920
968
|
ai = YEPCHAT(Tools=False)
|
|
@@ -952,7 +1000,9 @@ response = ai.chat(input(">>> "))
|
|
|
952
1000
|
for chunk in response:
|
|
953
1001
|
print(chunk, end="", flush=True)
|
|
954
1002
|
```
|
|
955
|
-
|
|
1003
|
+
|
|
1004
|
+
### ⬛ `BlackBox` - Search/Chat with BlackBox
|
|
1005
|
+
|
|
956
1006
|
```python
|
|
957
1007
|
from webscout import BLACKBOXAI
|
|
958
1008
|
from rich import print
|
|
@@ -983,7 +1033,9 @@ while True:
|
|
|
983
1033
|
r = ai.chat(prompt)
|
|
984
1034
|
print(r)
|
|
985
1035
|
```
|
|
986
|
-
|
|
1036
|
+
|
|
1037
|
+
### ❓ `PERPLEXITY` - Search with PERPLEXITY
|
|
1038
|
+
|
|
987
1039
|
```python
|
|
988
1040
|
from webscout import Perplexity
|
|
989
1041
|
from rich import print
|
|
@@ -996,7 +1048,9 @@ for chunk in response:
|
|
|
996
1048
|
|
|
997
1049
|
perplexity.close()
|
|
998
1050
|
```
|
|
999
|
-
|
|
1051
|
+
|
|
1052
|
+
### 🤖 `Meta AI` - Chat with Meta AI
|
|
1053
|
+
|
|
1000
1054
|
```python
|
|
1001
1055
|
from webscout import Meta
|
|
1002
1056
|
from rich import print
|
|
@@ -1019,7 +1073,8 @@ meta_ai = Meta(fb_email=fb_email, fb_password=fb_password)
|
|
|
1019
1073
|
# Text prompt with web search
|
|
1020
1074
|
response = meta_ai.ask("what is currently happning in bangladesh in aug 2024")
|
|
1021
1075
|
print(response["message"]) # Access the text message
|
|
1022
|
-
print("Sources:", response["sources"]) # Access sources (if
|
|
1076
|
+
print("Sources:", response["sources"]) # Access sources (if ```python
|
|
1077
|
+
any)
|
|
1023
1078
|
|
|
1024
1079
|
# Image generation
|
|
1025
1080
|
response = meta_ai.ask("Create an image of a cat wearing a hat.")
|
|
@@ -1028,7 +1083,9 @@ for media in response["media"]:
|
|
|
1028
1083
|
print(media["url"]) # Access image URLs
|
|
1029
1084
|
|
|
1030
1085
|
```
|
|
1031
|
-
|
|
1086
|
+
|
|
1087
|
+
### `KOBOLDAI`
|
|
1088
|
+
|
|
1032
1089
|
```python
|
|
1033
1090
|
from webscout import KOBOLDAI
|
|
1034
1091
|
|
|
@@ -1047,7 +1104,8 @@ print(message)
|
|
|
1047
1104
|
|
|
1048
1105
|
```
|
|
1049
1106
|
|
|
1050
|
-
### `Reka` -
|
|
1107
|
+
### `Reka` - Chat with Reka
|
|
1108
|
+
|
|
1051
1109
|
```python
|
|
1052
1110
|
from webscout import REKA
|
|
1053
1111
|
|
|
@@ -1058,7 +1116,8 @@ response_str = a.chat(prompt)
|
|
|
1058
1116
|
print(response_str)
|
|
1059
1117
|
```
|
|
1060
1118
|
|
|
1061
|
-
### `Cohere` -
|
|
1119
|
+
### `Cohere` - Chat with Cohere
|
|
1120
|
+
|
|
1062
1121
|
```python
|
|
1063
1122
|
from webscout import Cohere
|
|
1064
1123
|
|
|
@@ -1069,12 +1128,13 @@ response_str = a.chat(prompt)
|
|
|
1069
1128
|
print(response_str)
|
|
1070
1129
|
```
|
|
1071
1130
|
|
|
1131
|
+
### `Poe` - Chat with Poe
|
|
1132
|
+
|
|
1133
|
+
Usage code is similar to other providers.
|
|
1072
1134
|
|
|
1073
|
-
### `
|
|
1074
|
-
Usage code similar to other proviers
|
|
1135
|
+
### `BasedGPT` - Chat with GPT
|
|
1075
1136
|
|
|
1076
|
-
|
|
1077
|
-
```py
|
|
1137
|
+
```python
|
|
1078
1138
|
from webscout import BasedGPT
|
|
1079
1139
|
|
|
1080
1140
|
# Initialize the BasedGPT provider
|
|
@@ -1094,14 +1154,16 @@ response = basedgpt.chat(prompt)
|
|
|
1094
1154
|
# Print the AI's response
|
|
1095
1155
|
print(response)
|
|
1096
1156
|
```
|
|
1097
|
-
|
|
1157
|
+
|
|
1158
|
+
### `DeepSeek` - Chat with DeepSeek
|
|
1159
|
+
|
|
1098
1160
|
```python
|
|
1099
1161
|
from webscout import DeepSeek
|
|
1100
1162
|
from rich import print
|
|
1101
1163
|
|
|
1102
1164
|
ai = DeepSeek(
|
|
1103
1165
|
is_conversation=True,
|
|
1104
|
-
api_key='cookie,
|
|
1166
|
+
api_key='cookie',
|
|
1105
1167
|
max_tokens=800,
|
|
1106
1168
|
timeout=30,
|
|
1107
1169
|
intro=None,
|
|
@@ -1120,7 +1182,9 @@ prompt = "Tell me about india"
|
|
|
1120
1182
|
r = ai.chat(prompt)
|
|
1121
1183
|
print(r)
|
|
1122
1184
|
```
|
|
1185
|
+
|
|
1123
1186
|
### `Deepinfra`
|
|
1187
|
+
|
|
1124
1188
|
```python
|
|
1125
1189
|
from webscout import DeepInfra
|
|
1126
1190
|
|
|
@@ -1147,6 +1211,7 @@ print(message)
|
|
|
1147
1211
|
```
|
|
1148
1212
|
|
|
1149
1213
|
### `Deepinfra` - VLM
|
|
1214
|
+
|
|
1150
1215
|
```python
|
|
1151
1216
|
from webscout.Provider import VLM
|
|
1152
1217
|
|
|
@@ -1167,8 +1232,8 @@ print(response)
|
|
|
1167
1232
|
|
|
1168
1233
|
```
|
|
1169
1234
|
|
|
1235
|
+
### `GROQ`
|
|
1170
1236
|
|
|
1171
|
-
### GROQ
|
|
1172
1237
|
```python
|
|
1173
1238
|
from webscout import GROQ
|
|
1174
1239
|
ai = GROQ(api_key="")
|
|
@@ -1254,7 +1319,8 @@ print(response_search)
|
|
|
1254
1319
|
|
|
1255
1320
|
```
|
|
1256
1321
|
|
|
1257
|
-
### LLama 70b -
|
|
1322
|
+
### `LLama 70b` - Chat with Meta's Llama 3 70b
|
|
1323
|
+
|
|
1258
1324
|
```python
|
|
1259
1325
|
|
|
1260
1326
|
from webscout import LLAMA
|
|
@@ -1264,13 +1330,17 @@ llama = LLAMA()
|
|
|
1264
1330
|
r = llama.chat("What is the meaning of life?")
|
|
1265
1331
|
print(r)
|
|
1266
1332
|
```
|
|
1267
|
-
|
|
1333
|
+
|
|
1334
|
+
### `AndiSearch`
|
|
1335
|
+
|
|
1268
1336
|
```python
|
|
1269
1337
|
from webscout import AndiSearch
|
|
1270
1338
|
a = AndiSearch()
|
|
1271
1339
|
print(a.chat("HelpingAI-9B"))
|
|
1272
1340
|
```
|
|
1273
|
-
|
|
1341
|
+
|
|
1342
|
+
### 📞 Function Calling (Beta)
|
|
1343
|
+
|
|
1274
1344
|
```python
|
|
1275
1345
|
import json
|
|
1276
1346
|
import logging
|
|
@@ -1383,9 +1453,13 @@ if "error" not in function_call_data:
|
|
|
1383
1453
|
else:
|
|
1384
1454
|
print(f"Error: {function_call_data['error']}")
|
|
1385
1455
|
```
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
|
|
1456
|
+
|
|
1457
|
+
### LLAMA3, pizzagpt, RUBIKSAI, Koala, Darkai, AI4Chat, Farfalle, PIAI, Felo, XDASH, Julius, YouChat, YEPCHAT, Cloudflare, TurboSeek, Editee, AI21, Chatify, Cerebras, X0GPT, Lepton, GEMINIAPI, Cleeai, Elmo, Genspark, Upstage, Free2GPT, Bing, DiscordRocks, GPTWeb, AIGameIO, LlamaTutor, PromptRefine, AIUncensored, TutorAI, Bixin, ChatGPTES
|
|
1458
|
+
|
|
1459
|
+
Code is similar to other providers.
|
|
1460
|
+
|
|
1461
|
+
### `LLM`
|
|
1462
|
+
|
|
1389
1463
|
```python
|
|
1390
1464
|
from webscout.LLM import LLM
|
|
1391
1465
|
|
|
@@ -1412,7 +1486,7 @@ while True:
|
|
|
1412
1486
|
print("AI: ", response)
|
|
1413
1487
|
```
|
|
1414
1488
|
|
|
1415
|
-
## Local-LLM
|
|
1489
|
+
## 💻 Local-LLM
|
|
1416
1490
|
|
|
1417
1491
|
Webscout can now run GGUF models locally. You can download and run your favorite models with minimal configuration.
|
|
1418
1492
|
|
|
@@ -1439,7 +1513,8 @@ thread = Thread(model, formats.phi3)
|
|
|
1439
1513
|
thread.interact()
|
|
1440
1514
|
```
|
|
1441
1515
|
|
|
1442
|
-
## Local-rawdog
|
|
1516
|
+
## 🐶 Local-rawdog
|
|
1517
|
+
|
|
1443
1518
|
Webscout's local raw-dog feature allows you to run Python scripts within your terminal prompt.
|
|
1444
1519
|
|
|
1445
1520
|
**Example:**
|
|
@@ -1554,9 +1629,9 @@ gguf.convert(
|
|
|
1554
1629
|
)
|
|
1555
1630
|
```
|
|
1556
1631
|
|
|
1557
|
-
## Autollama
|
|
1632
|
+
## 🤖 Autollama
|
|
1558
1633
|
|
|
1559
|
-
Webscout's `autollama` utility
|
|
1634
|
+
Webscout's `autollama` utility downloads a model from Hugging Face and then automatically makes it Ollama-ready.
|
|
1560
1635
|
|
|
1561
1636
|
```python
|
|
1562
1637
|
from webscout import autollama
|
|
@@ -1585,10 +1660,9 @@ autollama.main(model_path, gguf_file)
|
|
|
1585
1660
|
* The `model_path` in `autollama` is the Hugging Face model ID, and `gguf_file` is the GGUF file ID.
|
|
1586
1661
|
|
|
1587
1662
|
|
|
1663
|
+
## 🌐 `Webai` - Terminal GPT and an Open Interpreter
|
|
1588
1664
|
|
|
1589
|
-
|
|
1590
|
-
```
|
|
1591
|
-
```shell
|
|
1665
|
+
```bash
|
|
1592
1666
|
python -m webscout.webai webai --provider "phind" --rawdog
|
|
1593
1667
|
```
|
|
1594
1668
|
|
|
@@ -1602,10 +1676,30 @@ python -m webscout.webai webai --provider "phind" --rawdog
|
|
|
1602
1676
|
|
|
1603
1677
|
<div align="center">
|
|
1604
1678
|
<!-- Replace `#` with your actual links -->
|
|
1605
|
-
<a href="https://youtube.com/@OEvortex"
|
|
1606
|
-
|
|
1679
|
+
<a href="https://youtube.com/@OEvortex">▶️ Vortex's YouTube Channel</a>
|
|
1680
|
+
</div>
|
|
1607
1681
|
<div align="center">
|
|
1608
|
-
<a href="https://youtube.com/@devsdocode"
|
|
1682
|
+
<a href="https://youtube.com/@devsdocode">▶️ Devs Do Code's YouTube Channel</a>
|
|
1609
1683
|
</div>
|
|
1684
|
+
<div align="center">
|
|
1685
|
+
<a href="https://t.me/ANONYMOUS_56788">📢 Anonymous Coder's Telegram</a>
|
|
1686
|
+
</div>
|
|
1687
|
+
|
|
1688
|
+
## 🤝 Contributing
|
|
1689
|
+
|
|
1690
|
+
Contributions are welcome! If you'd like to contribute to Webscout, please follow these steps:
|
|
1691
|
+
|
|
1692
|
+
1. Fork the repository.
|
|
1693
|
+
2. Create a new branch for your feature or bug fix.
|
|
1694
|
+
3. Make your changes and commit them with descriptive messages.
|
|
1695
|
+
4. Push your branch to your forked repository.
|
|
1696
|
+
5. Submit a pull request to the main repository.
|
|
1697
|
+
|
|
1698
|
+
## 📜 License
|
|
1699
|
+
|
|
1700
|
+
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.
|
|
1610
1701
|
|
|
1702
|
+
## 🙏 Acknowledgments
|
|
1611
1703
|
|
|
1704
|
+
* All the amazing developers who have contributed to the project!
|
|
1705
|
+
* The open-source community for their support and inspiration.
|