webscout 1.3.8__tar.gz → 1.4.0__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.
- {webscout-1.3.8 → webscout-1.4.0}/PKG-INFO +65 -58
- {webscout-1.3.8 → webscout-1.4.0}/README.md +62 -57
- {webscout-1.3.8 → webscout-1.4.0}/setup.py +3 -2
- webscout-1.4.0/webscout/AI.py +5173 -0
- webscout-1.4.0/webscout/AIbase.py +138 -0
- {webscout-1.3.8 → webscout-1.4.0}/webscout/AIutel.py +19 -2
- {webscout-1.3.8 → webscout-1.4.0}/webscout/__init__.py +2 -2
- webscout-1.4.0/webscout/async_providers.py +33 -0
- {webscout-1.3.8 → webscout-1.4.0}/webscout/exceptions.py +4 -1
- {webscout-1.3.8 → webscout-1.4.0}/webscout/g4f.py +193 -1
- webscout-1.4.0/webscout/version.py +2 -0
- {webscout-1.3.8 → webscout-1.4.0}/webscout/webai.py +20 -2
- {webscout-1.3.8 → webscout-1.4.0}/webscout.egg-info/PKG-INFO +65 -58
- {webscout-1.3.8 → webscout-1.4.0}/webscout.egg-info/SOURCES.txt +1 -0
- {webscout-1.3.8 → webscout-1.4.0}/webscout.egg-info/requires.txt +2 -0
- webscout-1.3.8/webscout/AI.py +0 -2710
- webscout-1.3.8/webscout/AIbase.py +0 -70
- webscout-1.3.8/webscout/version.py +0 -2
- {webscout-1.3.8 → webscout-1.4.0}/DeepWEBS/__init__.py +0 -0
- {webscout-1.3.8 → webscout-1.4.0}/DeepWEBS/documents/__init__.py +0 -0
- {webscout-1.3.8 → webscout-1.4.0}/DeepWEBS/documents/query_results_extractor.py +0 -0
- {webscout-1.3.8 → webscout-1.4.0}/DeepWEBS/documents/webpage_content_extractor.py +0 -0
- {webscout-1.3.8 → webscout-1.4.0}/DeepWEBS/networks/__init__.py +0 -0
- {webscout-1.3.8 → webscout-1.4.0}/DeepWEBS/networks/filepath_converter.py +0 -0
- {webscout-1.3.8 → webscout-1.4.0}/DeepWEBS/networks/google_searcher.py +0 -0
- {webscout-1.3.8 → webscout-1.4.0}/DeepWEBS/networks/network_configs.py +0 -0
- {webscout-1.3.8 → webscout-1.4.0}/DeepWEBS/networks/webpage_fetcher.py +0 -0
- {webscout-1.3.8 → webscout-1.4.0}/DeepWEBS/utilsdw/__init__.py +0 -0
- {webscout-1.3.8 → webscout-1.4.0}/DeepWEBS/utilsdw/enver.py +0 -0
- {webscout-1.3.8 → webscout-1.4.0}/DeepWEBS/utilsdw/logger.py +0 -0
- {webscout-1.3.8 → webscout-1.4.0}/LICENSE.md +0 -0
- {webscout-1.3.8 → webscout-1.4.0}/setup.cfg +0 -0
- {webscout-1.3.8 → webscout-1.4.0}/webscout/DWEBS.py +0 -0
- {webscout-1.3.8 → webscout-1.4.0}/webscout/LLM.py +0 -0
- {webscout-1.3.8 → webscout-1.4.0}/webscout/__main__.py +0 -0
- {webscout-1.3.8 → webscout-1.4.0}/webscout/cli.py +0 -0
- {webscout-1.3.8 → webscout-1.4.0}/webscout/models.py +0 -0
- {webscout-1.3.8 → webscout-1.4.0}/webscout/transcriber.py +0 -0
- {webscout-1.3.8 → webscout-1.4.0}/webscout/utils.py +0 -0
- {webscout-1.3.8 → webscout-1.4.0}/webscout/voice.py +0 -0
- {webscout-1.3.8 → webscout-1.4.0}/webscout/webscout_search.py +0 -0
- {webscout-1.3.8 → webscout-1.4.0}/webscout/webscout_search_async.py +0 -0
- {webscout-1.3.8 → webscout-1.4.0}/webscout.egg-info/dependency_links.txt +0 -0
- {webscout-1.3.8 → webscout-1.4.0}/webscout.egg-info/entry_points.txt +0 -0
- {webscout-1.3.8 → webscout-1.4.0}/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.
|
|
3
|
+
Version: 1.4.0
|
|
4
4
|
Summary: Search for anything using the Google, DuckDuckGo.com, yep.com, phind.com, you.com, etc Also containes AI models, can transcribe yt videos, have TTS support and now has webai(terminal gpt and open interpeter) support
|
|
5
5
|
Author: OEvortex
|
|
6
6
|
Author-email: helpingai5@gmail.com
|
|
@@ -47,6 +47,8 @@ Requires-Dist: tiktoken
|
|
|
47
47
|
Requires-Dist: tldextract
|
|
48
48
|
Requires-Dist: orjson
|
|
49
49
|
Requires-Dist: PyYAML
|
|
50
|
+
Requires-Dist: appdirs
|
|
51
|
+
Requires-Dist: GoogleBard1>=2.1.4
|
|
50
52
|
Provides-Extra: dev
|
|
51
53
|
Requires-Dist: ruff>=0.1.6; extra == "dev"
|
|
52
54
|
Requires-Dist: pytest>=7.4.2; extra == "dev"
|
|
@@ -89,7 +91,7 @@ Search for anything using the Google, DuckDuckGo.com, yep.com, phind.com, you.co
|
|
|
89
91
|
- [usage of webscout.AI](#usage-of-webscoutai)
|
|
90
92
|
- [1. `PhindSearch` - Search using Phind.com](#1-phindsearch---search-using-phindcom)
|
|
91
93
|
- [2. `YepChat` - Chat with mistral 8x7b powered by yepchat](#2-yepchat---chat-with-mistral-8x7b-powered-by-yepchat)
|
|
92
|
-
- [3. `You.com` - search with you.com](#3-youcom---search-with-youcom)
|
|
94
|
+
- [3. `You.com` - search with you.com -NOT WORKING](#3-youcom---search-with-youcom--not-working)
|
|
93
95
|
- [4. `Gemini` - search with google gemini](#4-gemini---search-with-google-gemini)
|
|
94
96
|
- [usage of image generator from Webscout.AI](#usage-of-image-generator-from-webscoutai)
|
|
95
97
|
- [5. `Prodia` - make image using prodia](#5-prodia---make-image-using-prodia)
|
|
@@ -97,11 +99,9 @@ Search for anything using the Google, DuckDuckGo.com, yep.com, phind.com, you.co
|
|
|
97
99
|
- [7. `PERPLEXITY` - Search With PERPLEXITY](#7-perplexity---search-with-perplexity)
|
|
98
100
|
- [8. `OpenGPT` - chat With OPENGPT](#8-opengpt---chat-with-opengpt)
|
|
99
101
|
- [9. `KOBOLDIA` -](#9-koboldia--)
|
|
100
|
-
- [10. `
|
|
101
|
-
- [11. `
|
|
102
|
-
- [
|
|
103
|
-
- [usage of special .LLM file from webscout (webscout.LLM)](#usage-of-special-llm-file-from-webscout-webscoutllm)
|
|
104
|
-
- [`LLM`](#llm)
|
|
102
|
+
- [10. `Reka` - chat with reka](#10-reka---chat-with-reka)
|
|
103
|
+
- [11. `Cohere` - chat with cohere](#11-cohere---chat-with-cohere)
|
|
104
|
+
- [`LLM` --not working](#llm---not-working)
|
|
105
105
|
- [`LLM` with internet](#llm-with-internet)
|
|
106
106
|
- [`Webai` - terminal gpt and a open interpeter](#webai---terminal-gpt-and-a-open-interpeter)
|
|
107
107
|
|
|
@@ -553,26 +553,22 @@ message = ph.get_message(response)
|
|
|
553
553
|
print(message)
|
|
554
554
|
```
|
|
555
555
|
### 2. `YepChat` - Chat with mistral 8x7b powered by yepchat
|
|
556
|
-
Thanks To Divyansh Shukla for This code
|
|
557
556
|
```python
|
|
558
|
-
from webscout.AI import
|
|
557
|
+
from webscout.AI import YEPCHAT
|
|
559
558
|
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
print(processed_response)
|
|
559
|
+
# Instantiate the YEPCHAT class with default parameters
|
|
560
|
+
YEPCHAT = YEPCHAT()
|
|
561
|
+
|
|
562
|
+
# Define a prompt to send to the AI
|
|
563
|
+
prompt = "What is the capital of France?"
|
|
564
|
+
|
|
565
|
+
# Use the 'cha' method to get a response from the AI
|
|
566
|
+
r = YEPCHAT.chat(prompt)
|
|
567
|
+
print(r)
|
|
570
568
|
|
|
571
|
-
if __name__ == "__main__":
|
|
572
|
-
main()
|
|
573
569
|
```
|
|
574
570
|
|
|
575
|
-
### 3. `You.com` - search with you.com
|
|
571
|
+
### 3. `You.com` - search with you.com -NOT WORKING
|
|
576
572
|
```python
|
|
577
573
|
from webscout.AI import youChat
|
|
578
574
|
|
|
@@ -598,15 +594,34 @@ while True:
|
|
|
598
594
|
### 4. `Gemini` - search with google gemini
|
|
599
595
|
|
|
600
596
|
```python
|
|
601
|
-
|
|
597
|
+
import webscout
|
|
598
|
+
from webscout.AI import GEMINI
|
|
602
599
|
|
|
603
|
-
#
|
|
604
|
-
|
|
600
|
+
# Replace with the path to your bard.google.com.cookies.json file
|
|
601
|
+
COOKIE_FILE = "path/to/bard.google.com.cookies.json"
|
|
605
602
|
|
|
606
|
-
#
|
|
607
|
-
|
|
603
|
+
# Optional: Provide proxy details if needed
|
|
604
|
+
PROXIES = {
|
|
605
|
+
"http": "http://proxy_server:port",
|
|
606
|
+
"https": "https://proxy_server:port",
|
|
607
|
+
}
|
|
608
608
|
|
|
609
|
-
#
|
|
609
|
+
# Initialize GEMINI with cookie file and optional proxies
|
|
610
|
+
gemini = GEMINI(cookie_file=COOKIE_FILE, proxy=PROXIES)
|
|
611
|
+
|
|
612
|
+
# Ask a question and print the response
|
|
613
|
+
response = gemini.chat("What is the meaning of life?")
|
|
614
|
+
print(response)
|
|
615
|
+
|
|
616
|
+
# Ask another question, this time streaming the response
|
|
617
|
+
for chunk in gemini.chat("Tell me a story", stream=True):
|
|
618
|
+
print(chunk, end="")
|
|
619
|
+
|
|
620
|
+
# Reset the conversation to start a new interaction
|
|
621
|
+
gemini.reset()
|
|
622
|
+
|
|
623
|
+
# Ask a question with the code optimizer
|
|
624
|
+
response = gemini.chat("Write Python code to print 'Hello, world!'", optimizer="code")
|
|
610
625
|
print(response)
|
|
611
626
|
```
|
|
612
627
|
## usage of image generator from Webscout.AI
|
|
@@ -638,17 +653,18 @@ ai = BLACKBOXAI(
|
|
|
638
653
|
model=None # You can specify a model if needed
|
|
639
654
|
)
|
|
640
655
|
|
|
641
|
-
#
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
#
|
|
651
|
-
|
|
656
|
+
# Start an infinite loop for continuous interaction
|
|
657
|
+
while True:
|
|
658
|
+
# Define a prompt to send to the AI
|
|
659
|
+
prompt = input("Enter your prompt: ")
|
|
660
|
+
|
|
661
|
+
# Check if the user wants to exit the loop
|
|
662
|
+
if prompt.lower() == "exit":
|
|
663
|
+
break
|
|
664
|
+
|
|
665
|
+
# Use the 'chat' method to send the prompt and receive a response
|
|
666
|
+
r = ai.chat(prompt)
|
|
667
|
+
print(r)
|
|
652
668
|
```
|
|
653
669
|
### 7. `PERPLEXITY` - Search With PERPLEXITY
|
|
654
670
|
```python
|
|
@@ -666,10 +682,12 @@ print(response)
|
|
|
666
682
|
from webscout.AI import OPENGPT
|
|
667
683
|
|
|
668
684
|
opengpt = OPENGPT(is_conversation=True, max_tokens=8000, timeout=30)
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
print
|
|
685
|
+
while True:
|
|
686
|
+
# Prompt the user for input
|
|
687
|
+
prompt = input("Enter your prompt: ")
|
|
688
|
+
# Send the prompt to the OPENGPT model and print the response
|
|
689
|
+
response_str = opengpt.chat(prompt)
|
|
690
|
+
print(response_str)
|
|
673
691
|
```
|
|
674
692
|
### 9. `KOBOLDIA` -
|
|
675
693
|
```python
|
|
@@ -688,19 +706,9 @@ response = koboldai.ask(prompt)
|
|
|
688
706
|
message = koboldai.get_message(response)
|
|
689
707
|
print(message)
|
|
690
708
|
|
|
691
|
-
```
|
|
692
|
-
### 10. `Sean` - chat With Sean
|
|
693
|
-
```python
|
|
694
|
-
from webscout.AI import Sean
|
|
695
|
-
|
|
696
|
-
a = Sean(is_conversation=True, max_tokens=8000, timeout=30)
|
|
697
|
-
# This example sends a simple greeting and prints the response
|
|
698
|
-
prompt = "tell me about india"
|
|
699
|
-
response_str = a.chat(prompt)
|
|
700
|
-
print(response_str)
|
|
701
709
|
```
|
|
702
710
|
|
|
703
|
-
###
|
|
711
|
+
### 10. `Reka` - chat with reka
|
|
704
712
|
```python
|
|
705
713
|
from webscout.AI import REKA
|
|
706
714
|
|
|
@@ -711,7 +719,7 @@ response_str = a.chat(prompt)
|
|
|
711
719
|
print(response_str)
|
|
712
720
|
```
|
|
713
721
|
|
|
714
|
-
###
|
|
722
|
+
### 11. `Cohere` - chat with cohere
|
|
715
723
|
```python
|
|
716
724
|
from webscout.AI import Cohere
|
|
717
725
|
|
|
@@ -721,9 +729,8 @@ prompt = "tell me about india"
|
|
|
721
729
|
response_str = a.chat(prompt)
|
|
722
730
|
print(response_str)
|
|
723
731
|
```
|
|
724
|
-
## usage of special .LLM file from webscout (webscout.LLM)
|
|
725
732
|
|
|
726
|
-
### `LLM`
|
|
733
|
+
### `LLM` --not working
|
|
727
734
|
```python
|
|
728
735
|
from webscout.LLM import LLM
|
|
729
736
|
|
|
@@ -844,7 +851,7 @@ def use_rawdog_with_webai(prompt):
|
|
|
844
851
|
top_k=40,
|
|
845
852
|
top_p=0.95,
|
|
846
853
|
model="command-r-plus", # Replace with your desired model
|
|
847
|
-
auth=
|
|
854
|
+
auth=None, # Replace with your auth key/value (if needed)
|
|
848
855
|
timeout=30,
|
|
849
856
|
disable_conversation=True,
|
|
850
857
|
filepath=None,
|
|
@@ -36,7 +36,7 @@ Search for anything using the Google, DuckDuckGo.com, yep.com, phind.com, you.co
|
|
|
36
36
|
- [usage of webscout.AI](#usage-of-webscoutai)
|
|
37
37
|
- [1. `PhindSearch` - Search using Phind.com](#1-phindsearch---search-using-phindcom)
|
|
38
38
|
- [2. `YepChat` - Chat with mistral 8x7b powered by yepchat](#2-yepchat---chat-with-mistral-8x7b-powered-by-yepchat)
|
|
39
|
-
- [3. `You.com` - search with you.com](#3-youcom---search-with-youcom)
|
|
39
|
+
- [3. `You.com` - search with you.com -NOT WORKING](#3-youcom---search-with-youcom--not-working)
|
|
40
40
|
- [4. `Gemini` - search with google gemini](#4-gemini---search-with-google-gemini)
|
|
41
41
|
- [usage of image generator from Webscout.AI](#usage-of-image-generator-from-webscoutai)
|
|
42
42
|
- [5. `Prodia` - make image using prodia](#5-prodia---make-image-using-prodia)
|
|
@@ -44,11 +44,9 @@ Search for anything using the Google, DuckDuckGo.com, yep.com, phind.com, you.co
|
|
|
44
44
|
- [7. `PERPLEXITY` - Search With PERPLEXITY](#7-perplexity---search-with-perplexity)
|
|
45
45
|
- [8. `OpenGPT` - chat With OPENGPT](#8-opengpt---chat-with-opengpt)
|
|
46
46
|
- [9. `KOBOLDIA` -](#9-koboldia--)
|
|
47
|
-
- [10. `
|
|
48
|
-
- [11. `
|
|
49
|
-
- [
|
|
50
|
-
- [usage of special .LLM file from webscout (webscout.LLM)](#usage-of-special-llm-file-from-webscout-webscoutllm)
|
|
51
|
-
- [`LLM`](#llm)
|
|
47
|
+
- [10. `Reka` - chat with reka](#10-reka---chat-with-reka)
|
|
48
|
+
- [11. `Cohere` - chat with cohere](#11-cohere---chat-with-cohere)
|
|
49
|
+
- [`LLM` --not working](#llm---not-working)
|
|
52
50
|
- [`LLM` with internet](#llm-with-internet)
|
|
53
51
|
- [`Webai` - terminal gpt and a open interpeter](#webai---terminal-gpt-and-a-open-interpeter)
|
|
54
52
|
|
|
@@ -500,26 +498,22 @@ message = ph.get_message(response)
|
|
|
500
498
|
print(message)
|
|
501
499
|
```
|
|
502
500
|
### 2. `YepChat` - Chat with mistral 8x7b powered by yepchat
|
|
503
|
-
Thanks To Divyansh Shukla for This code
|
|
504
501
|
```python
|
|
505
|
-
from webscout.AI import
|
|
502
|
+
from webscout.AI import YEPCHAT
|
|
506
503
|
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
print(processed_response)
|
|
504
|
+
# Instantiate the YEPCHAT class with default parameters
|
|
505
|
+
YEPCHAT = YEPCHAT()
|
|
506
|
+
|
|
507
|
+
# Define a prompt to send to the AI
|
|
508
|
+
prompt = "What is the capital of France?"
|
|
509
|
+
|
|
510
|
+
# Use the 'cha' method to get a response from the AI
|
|
511
|
+
r = YEPCHAT.chat(prompt)
|
|
512
|
+
print(r)
|
|
517
513
|
|
|
518
|
-
if __name__ == "__main__":
|
|
519
|
-
main()
|
|
520
514
|
```
|
|
521
515
|
|
|
522
|
-
### 3. `You.com` - search with you.com
|
|
516
|
+
### 3. `You.com` - search with you.com -NOT WORKING
|
|
523
517
|
```python
|
|
524
518
|
from webscout.AI import youChat
|
|
525
519
|
|
|
@@ -545,15 +539,34 @@ while True:
|
|
|
545
539
|
### 4. `Gemini` - search with google gemini
|
|
546
540
|
|
|
547
541
|
```python
|
|
548
|
-
|
|
542
|
+
import webscout
|
|
543
|
+
from webscout.AI import GEMINI
|
|
549
544
|
|
|
550
|
-
#
|
|
551
|
-
|
|
545
|
+
# Replace with the path to your bard.google.com.cookies.json file
|
|
546
|
+
COOKIE_FILE = "path/to/bard.google.com.cookies.json"
|
|
552
547
|
|
|
553
|
-
#
|
|
554
|
-
|
|
548
|
+
# Optional: Provide proxy details if needed
|
|
549
|
+
PROXIES = {
|
|
550
|
+
"http": "http://proxy_server:port",
|
|
551
|
+
"https": "https://proxy_server:port",
|
|
552
|
+
}
|
|
555
553
|
|
|
556
|
-
#
|
|
554
|
+
# Initialize GEMINI with cookie file and optional proxies
|
|
555
|
+
gemini = GEMINI(cookie_file=COOKIE_FILE, proxy=PROXIES)
|
|
556
|
+
|
|
557
|
+
# Ask a question and print the response
|
|
558
|
+
response = gemini.chat("What is the meaning of life?")
|
|
559
|
+
print(response)
|
|
560
|
+
|
|
561
|
+
# Ask another question, this time streaming the response
|
|
562
|
+
for chunk in gemini.chat("Tell me a story", stream=True):
|
|
563
|
+
print(chunk, end="")
|
|
564
|
+
|
|
565
|
+
# Reset the conversation to start a new interaction
|
|
566
|
+
gemini.reset()
|
|
567
|
+
|
|
568
|
+
# Ask a question with the code optimizer
|
|
569
|
+
response = gemini.chat("Write Python code to print 'Hello, world!'", optimizer="code")
|
|
557
570
|
print(response)
|
|
558
571
|
```
|
|
559
572
|
## usage of image generator from Webscout.AI
|
|
@@ -585,17 +598,18 @@ ai = BLACKBOXAI(
|
|
|
585
598
|
model=None # You can specify a model if needed
|
|
586
599
|
)
|
|
587
600
|
|
|
588
|
-
#
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
#
|
|
598
|
-
|
|
601
|
+
# Start an infinite loop for continuous interaction
|
|
602
|
+
while True:
|
|
603
|
+
# Define a prompt to send to the AI
|
|
604
|
+
prompt = input("Enter your prompt: ")
|
|
605
|
+
|
|
606
|
+
# Check if the user wants to exit the loop
|
|
607
|
+
if prompt.lower() == "exit":
|
|
608
|
+
break
|
|
609
|
+
|
|
610
|
+
# Use the 'chat' method to send the prompt and receive a response
|
|
611
|
+
r = ai.chat(prompt)
|
|
612
|
+
print(r)
|
|
599
613
|
```
|
|
600
614
|
### 7. `PERPLEXITY` - Search With PERPLEXITY
|
|
601
615
|
```python
|
|
@@ -613,10 +627,12 @@ print(response)
|
|
|
613
627
|
from webscout.AI import OPENGPT
|
|
614
628
|
|
|
615
629
|
opengpt = OPENGPT(is_conversation=True, max_tokens=8000, timeout=30)
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
print
|
|
630
|
+
while True:
|
|
631
|
+
# Prompt the user for input
|
|
632
|
+
prompt = input("Enter your prompt: ")
|
|
633
|
+
# Send the prompt to the OPENGPT model and print the response
|
|
634
|
+
response_str = opengpt.chat(prompt)
|
|
635
|
+
print(response_str)
|
|
620
636
|
```
|
|
621
637
|
### 9. `KOBOLDIA` -
|
|
622
638
|
```python
|
|
@@ -635,19 +651,9 @@ response = koboldai.ask(prompt)
|
|
|
635
651
|
message = koboldai.get_message(response)
|
|
636
652
|
print(message)
|
|
637
653
|
|
|
638
|
-
```
|
|
639
|
-
### 10. `Sean` - chat With Sean
|
|
640
|
-
```python
|
|
641
|
-
from webscout.AI import Sean
|
|
642
|
-
|
|
643
|
-
a = Sean(is_conversation=True, max_tokens=8000, timeout=30)
|
|
644
|
-
# This example sends a simple greeting and prints the response
|
|
645
|
-
prompt = "tell me about india"
|
|
646
|
-
response_str = a.chat(prompt)
|
|
647
|
-
print(response_str)
|
|
648
654
|
```
|
|
649
655
|
|
|
650
|
-
###
|
|
656
|
+
### 10. `Reka` - chat with reka
|
|
651
657
|
```python
|
|
652
658
|
from webscout.AI import REKA
|
|
653
659
|
|
|
@@ -658,7 +664,7 @@ response_str = a.chat(prompt)
|
|
|
658
664
|
print(response_str)
|
|
659
665
|
```
|
|
660
666
|
|
|
661
|
-
###
|
|
667
|
+
### 11. `Cohere` - chat with cohere
|
|
662
668
|
```python
|
|
663
669
|
from webscout.AI import Cohere
|
|
664
670
|
|
|
@@ -668,9 +674,8 @@ prompt = "tell me about india"
|
|
|
668
674
|
response_str = a.chat(prompt)
|
|
669
675
|
print(response_str)
|
|
670
676
|
```
|
|
671
|
-
## usage of special .LLM file from webscout (webscout.LLM)
|
|
672
677
|
|
|
673
|
-
### `LLM`
|
|
678
|
+
### `LLM` --not working
|
|
674
679
|
```python
|
|
675
680
|
from webscout.LLM import LLM
|
|
676
681
|
|
|
@@ -791,7 +796,7 @@ def use_rawdog_with_webai(prompt):
|
|
|
791
796
|
top_k=40,
|
|
792
797
|
top_p=0.95,
|
|
793
798
|
model="command-r-plus", # Replace with your desired model
|
|
794
|
-
auth=
|
|
799
|
+
auth=None, # Replace with your auth key/value (if needed)
|
|
795
800
|
timeout=30,
|
|
796
801
|
disable_conversation=True,
|
|
797
802
|
filepath=None,
|
|
@@ -5,7 +5,7 @@ with open("README.md", encoding="utf-8") as f:
|
|
|
5
5
|
|
|
6
6
|
setup(
|
|
7
7
|
name="webscout",
|
|
8
|
-
version="1.
|
|
8
|
+
version="1.4.0",
|
|
9
9
|
description="Search for anything using the Google, DuckDuckGo.com, yep.com, phind.com, you.com, etc Also containes AI models, can transcribe yt videos, have TTS support and now has webai(terminal gpt and open interpeter) support",
|
|
10
10
|
long_description=README,
|
|
11
11
|
long_description_content_type="text/markdown",
|
|
@@ -51,7 +51,8 @@ setup(
|
|
|
51
51
|
"tldextract",
|
|
52
52
|
"orjson",
|
|
53
53
|
"PyYAML",
|
|
54
|
-
|
|
54
|
+
"appdirs",
|
|
55
|
+
"GoogleBard1>=2.1.4"
|
|
55
56
|
],
|
|
56
57
|
entry_points={
|
|
57
58
|
"console_scripts": [
|