webscout 6.3__tar.gz → 6.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.
- {webscout-6.3/webscout.egg-info → webscout-6.4}/PKG-INFO +26 -45
- {webscout-6.3 → webscout-6.4}/README.md +1507 -1523
- {webscout-6.3 → webscout-6.4}/setup.py +93 -95
- {webscout-6.3 → webscout-6.4}/webscout/AIauto.py +191 -176
- webscout-6.4/webscout/AIbase.py +113 -0
- webscout-6.4/webscout/AIutel.py +488 -0
- {webscout-6.3 → webscout-6.4}/webscout/Bing_search.py +250 -153
- {webscout-6.3 → webscout-6.4}/webscout/DWEBS.py +151 -19
- {webscout-6.3 → webscout-6.4}/webscout/Extra/__init__.py +2 -1
- webscout-6.4/webscout/Extra/autocoder/__init__.py +9 -0
- webscout-6.4/webscout/Extra/autocoder/autocoder_utiles.py +121 -0
- webscout-6.4/webscout/Extra/autocoder/rawdog.py +681 -0
- {webscout-6.3 → webscout-6.4}/webscout/Extra/autollama.py +246 -195
- {webscout-6.3 → webscout-6.4}/webscout/Extra/gguf.py +441 -416
- {webscout-6.3 → webscout-6.4}/webscout/LLM.py +206 -43
- webscout-6.4/webscout/Litlogger/__init__.py +681 -0
- {webscout-6.3 → webscout-6.4}/webscout/Provider/DARKAI.py +1 -1
- {webscout-6.3 → webscout-6.4}/webscout/Provider/EDITEE.py +1 -1
- {webscout-6.3 → webscout-6.4}/webscout/Provider/NinjaChat.py +1 -1
- {webscout-6.3 → webscout-6.4}/webscout/Provider/PI.py +221 -207
- {webscout-6.3 → webscout-6.4}/webscout/Provider/Perplexity.py +598 -598
- webscout-6.4/webscout/Provider/RoboCoders.py +206 -0
- webscout-6.4/webscout/Provider/TTI/AiForce/__init__.py +22 -0
- webscout-6.4/webscout/Provider/TTI/AiForce/async_aiforce.py +257 -0
- webscout-6.4/webscout/Provider/TTI/AiForce/sync_aiforce.py +242 -0
- webscout-6.4/webscout/Provider/TTI/Nexra/__init__.py +22 -0
- webscout-6.4/webscout/Provider/TTI/Nexra/async_nexra.py +286 -0
- webscout-6.4/webscout/Provider/TTI/Nexra/sync_nexra.py +258 -0
- webscout-6.4/webscout/Provider/TTI/PollinationsAI/__init__.py +23 -0
- webscout-6.4/webscout/Provider/TTI/PollinationsAI/async_pollinations.py +330 -0
- webscout-6.4/webscout/Provider/TTI/PollinationsAI/sync_pollinations.py +285 -0
- {webscout-6.3 → webscout-6.4}/webscout/Provider/TTI/__init__.py +2 -4
- webscout-6.4/webscout/Provider/TTI/artbit/__init__.py +22 -0
- webscout-6.4/webscout/Provider/TTI/artbit/async_artbit.py +184 -0
- webscout-6.4/webscout/Provider/TTI/artbit/sync_artbit.py +176 -0
- webscout-6.4/webscout/Provider/TTI/blackbox/__init__.py +4 -0
- webscout-6.4/webscout/Provider/TTI/blackbox/async_blackbox.py +212 -0
- webscout-6.3/webscout/Provider/TTI/blackboximage.py → webscout-6.4/webscout/Provider/TTI/blackbox/sync_blackbox.py +199 -153
- webscout-6.4/webscout/Provider/TTI/deepinfra/__init__.py +4 -0
- webscout-6.4/webscout/Provider/TTI/deepinfra/async_deepinfra.py +227 -0
- webscout-6.4/webscout/Provider/TTI/deepinfra/sync_deepinfra.py +199 -0
- webscout-6.4/webscout/Provider/TTI/huggingface/__init__.py +22 -0
- webscout-6.4/webscout/Provider/TTI/huggingface/async_huggingface.py +199 -0
- webscout-6.4/webscout/Provider/TTI/huggingface/sync_huggingface.py +195 -0
- webscout-6.4/webscout/Provider/TTI/imgninza/__init__.py +4 -0
- webscout-6.4/webscout/Provider/TTI/imgninza/async_ninza.py +214 -0
- webscout-6.3/webscout/Provider/TTI/imgninza.py → webscout-6.4/webscout/Provider/TTI/imgninza/sync_ninza.py +209 -136
- webscout-6.4/webscout/Provider/TTI/talkai/__init__.py +4 -0
- webscout-6.4/webscout/Provider/TTI/talkai/async_talkai.py +229 -0
- webscout-6.4/webscout/Provider/TTI/talkai/sync_talkai.py +207 -0
- {webscout-6.3 → webscout-6.4}/webscout/Provider/__init__.py +146 -139
- {webscout-6.3 → webscout-6.4}/webscout/Provider/askmyai.py +2 -2
- {webscout-6.3 → webscout-6.4}/webscout/Provider/cerebras.py +227 -219
- {webscout-6.3 → webscout-6.4}/webscout/Provider/llama3mitril.py +0 -1
- webscout-6.4/webscout/Provider/mhystical.py +176 -0
- webscout-6.4/webscout/Provider/perplexitylabs.py +265 -0
- {webscout-6.3 → webscout-6.4}/webscout/Provider/twitterclone.py +251 -245
- webscout-6.4/webscout/Provider/typegpt.py +359 -0
- {webscout-6.3 → webscout-6.4}/webscout/__init__.py +28 -23
- {webscout-6.3 → webscout-6.4}/webscout/__main__.py +5 -5
- webscout-6.4/webscout/cli.py +327 -0
- webscout-6.4/webscout/conversation.py +227 -0
- webscout-6.4/webscout/exceptions.py +161 -0
- webscout-6.4/webscout/litagent/__init__.py +172 -0
- webscout-6.4/webscout/litprinter/__init__.py +831 -0
- webscout-6.4/webscout/optimizers.py +270 -0
- webscout-6.4/webscout/prompt_manager.py +279 -0
- webscout-6.4/webscout/swiftcli/__init__.py +810 -0
- {webscout-6.3 → webscout-6.4}/webscout/transcriber.py +479 -551
- webscout-6.4/webscout/update_checker.py +125 -0
- {webscout-6.3 → webscout-6.4}/webscout/version.py +1 -1
- {webscout-6.3 → webscout-6.4/webscout.egg-info}/PKG-INFO +26 -45
- {webscout-6.3 → webscout-6.4}/webscout.egg-info/SOURCES.txt +44 -14
- {webscout-6.3 → webscout-6.4}/webscout.egg-info/requires.txt +2 -5
- webscout-6.3/webscout/AIbase.py +0 -310
- webscout-6.3/webscout/AIutel.py +0 -1130
- webscout-6.3/webscout/Provider/TTI/AIuncensoredimage.py +0 -103
- webscout-6.3/webscout/Provider/TTI/Nexra.py +0 -120
- webscout-6.3/webscout/Provider/TTI/PollinationsAI.py +0 -138
- webscout-6.3/webscout/Provider/TTI/WebSimAI.py +0 -142
- webscout-6.3/webscout/Provider/TTI/aiforce.py +0 -160
- webscout-6.3/webscout/Provider/TTI/artbit.py +0 -141
- webscout-6.3/webscout/Provider/TTI/deepinfra.py +0 -148
- webscout-6.3/webscout/Provider/TTI/huggingface.py +0 -155
- webscout-6.3/webscout/Provider/TTI/talkai.py +0 -116
- webscout-6.3/webscout/cli.py +0 -355
- webscout-6.3/webscout/exceptions.py +0 -29
- webscout-6.3/webscout/models.py +0 -23
- {webscout-6.3 → webscout-6.4}/LICENSE.md +0 -0
- {webscout-6.3 → webscout-6.4}/setup.cfg +0 -0
- {webscout-6.3 → webscout-6.4}/webscout/Agents/Onlinesearcher.py +0 -0
- {webscout-6.3 → webscout-6.4}/webscout/Agents/__init__.py +0 -0
- {webscout-6.3 → webscout-6.4}/webscout/Agents/functioncall.py +0 -0
- {webscout-6.3 → webscout-6.4}/webscout/Bard.py +0 -0
- {webscout-6.3 → webscout-6.4}/webscout/Extra/weather.py +0 -0
- {webscout-6.3 → webscout-6.4}/webscout/Extra/weather_ascii.py +0 -0
- {webscout-6.3 → webscout-6.4}/webscout/Local/__init__.py +0 -0
- {webscout-6.3 → webscout-6.4}/webscout/Local/_version.py +0 -0
- {webscout-6.3 → webscout-6.4}/webscout/Local/formats.py +0 -0
- {webscout-6.3 → webscout-6.4}/webscout/Local/model.py +0 -0
- {webscout-6.3 → webscout-6.4}/webscout/Local/samplers.py +0 -0
- {webscout-6.3 → webscout-6.4}/webscout/Local/thread.py +0 -0
- {webscout-6.3 → webscout-6.4}/webscout/Local/ui.py +0 -0
- {webscout-6.3 → webscout-6.4}/webscout/Local/utils.py +0 -0
- {webscout-6.3 → webscout-6.4}/webscout/Provider/AI21.py +0 -0
- {webscout-6.3 → webscout-6.4}/webscout/Provider/Amigo.py +0 -0
- {webscout-6.3 → webscout-6.4}/webscout/Provider/Andi.py +0 -0
- {webscout-6.3 → webscout-6.4}/webscout/Provider/Bing.py +0 -0
- {webscout-6.3 → webscout-6.4}/webscout/Provider/Blackboxai.py +0 -0
- {webscout-6.3 → webscout-6.4}/webscout/Provider/ChatGPTES.py +0 -0
- {webscout-6.3 → webscout-6.4}/webscout/Provider/Chatify.py +0 -0
- {webscout-6.3 → webscout-6.4}/webscout/Provider/Cloudflare.py +0 -0
- {webscout-6.3 → webscout-6.4}/webscout/Provider/Cohere.py +0 -0
- {webscout-6.3 → webscout-6.4}/webscout/Provider/Deepinfra.py +0 -0
- {webscout-6.3 → webscout-6.4}/webscout/Provider/Deepseek.py +0 -0
- {webscout-6.3 → webscout-6.4}/webscout/Provider/DiscordRocks.py +0 -0
- {webscout-6.3 → webscout-6.4}/webscout/Provider/Farfalle.py +0 -0
- {webscout-6.3 → webscout-6.4}/webscout/Provider/Free2GPT.py +0 -0
- {webscout-6.3 → webscout-6.4}/webscout/Provider/GPTWeb.py +0 -0
- {webscout-6.3 → webscout-6.4}/webscout/Provider/Gemini.py +0 -0
- {webscout-6.3 → webscout-6.4}/webscout/Provider/Groq.py +0 -0
- {webscout-6.3 → webscout-6.4}/webscout/Provider/Koboldai.py +0 -0
- {webscout-6.3 → webscout-6.4}/webscout/Provider/Llama.py +0 -0
- {webscout-6.3 → webscout-6.4}/webscout/Provider/Llama3.py +0 -0
- {webscout-6.3 → webscout-6.4}/webscout/Provider/Marcus.py +0 -0
- {webscout-6.3 → webscout-6.4}/webscout/Provider/OLLAMA.py +0 -0
- {webscout-6.3 → webscout-6.4}/webscout/Provider/Openai.py +0 -0
- {webscout-6.3 → webscout-6.4}/webscout/Provider/Phind.py +0 -0
- {webscout-6.3 → webscout-6.4}/webscout/Provider/PizzaGPT.py +0 -0
- {webscout-6.3 → webscout-6.4}/webscout/Provider/RUBIKSAI.py +0 -0
- {webscout-6.3 → webscout-6.4}/webscout/Provider/Reka.py +0 -0
- {webscout-6.3 → webscout-6.4}/webscout/Provider/TTS/__init__.py +0 -0
- {webscout-6.3 → webscout-6.4}/webscout/Provider/TTS/parler.py +0 -0
- {webscout-6.3 → webscout-6.4}/webscout/Provider/TTS/streamElements.py +0 -0
- {webscout-6.3 → webscout-6.4}/webscout/Provider/TTS/voicepod.py +0 -0
- {webscout-6.3 → webscout-6.4}/webscout/Provider/TeachAnything.py +0 -0
- {webscout-6.3 → webscout-6.4}/webscout/Provider/Youchat.py +0 -0
- {webscout-6.3 → webscout-6.4}/webscout/Provider/ai4chat.py +0 -0
- {webscout-6.3 → webscout-6.4}/webscout/Provider/aimathgpt.py +0 -0
- {webscout-6.3 → webscout-6.4}/webscout/Provider/bagoodex.py +0 -0
- {webscout-6.3 → webscout-6.4}/webscout/Provider/cleeai.py +0 -0
- {webscout-6.3 → webscout-6.4}/webscout/Provider/elmo.py +0 -0
- {webscout-6.3 → webscout-6.4}/webscout/Provider/felo_search.py +0 -0
- {webscout-6.3 → webscout-6.4}/webscout/Provider/gaurish.py +0 -0
- {webscout-6.3 → webscout-6.4}/webscout/Provider/geminiapi.py +0 -0
- {webscout-6.3 → webscout-6.4}/webscout/Provider/geminiprorealtime.py +0 -0
- {webscout-6.3 → webscout-6.4}/webscout/Provider/genspark.py +0 -0
- {webscout-6.3 → webscout-6.4}/webscout/Provider/julius.py +0 -0
- {webscout-6.3 → webscout-6.4}/webscout/Provider/koala.py +0 -0
- {webscout-6.3 → webscout-6.4}/webscout/Provider/learnfastai.py +0 -0
- {webscout-6.3 → webscout-6.4}/webscout/Provider/lepton.py +0 -0
- {webscout-6.3 → webscout-6.4}/webscout/Provider/llamatutor.py +0 -0
- {webscout-6.3 → webscout-6.4}/webscout/Provider/llmchat.py +0 -0
- {webscout-6.3 → webscout-6.4}/webscout/Provider/meta.py +0 -0
- {webscout-6.3 → webscout-6.4}/webscout/Provider/prefind.py +0 -0
- {webscout-6.3 → webscout-6.4}/webscout/Provider/promptrefine.py +0 -0
- {webscout-6.3 → webscout-6.4}/webscout/Provider/talkai.py +0 -0
- {webscout-6.3 → webscout-6.4}/webscout/Provider/turboseek.py +0 -0
- {webscout-6.3 → webscout-6.4}/webscout/Provider/tutorai.py +0 -0
- {webscout-6.3 → webscout-6.4}/webscout/Provider/upstage.py +0 -0
- {webscout-6.3 → webscout-6.4}/webscout/Provider/x0gpt.py +0 -0
- {webscout-6.3 → webscout-6.4}/webscout/Provider/yep.py +0 -0
- {webscout-6.3 → webscout-6.4}/webscout/YTdownloader.py +0 -0
- /webscout-6.3/webscout/g4f.py → /webscout-6.4/webscout/gpt4free.py +0 -0
- {webscout-6.3 → webscout-6.4}/webscout/requestsHTMLfix.py +0 -0
- {webscout-6.3 → webscout-6.4}/webscout/tempid.py +0 -0
- {webscout-6.3 → webscout-6.4}/webscout/utils.py +0 -0
- {webscout-6.3 → webscout-6.4}/webscout/webai.py +0 -0
- {webscout-6.3 → webscout-6.4}/webscout/webscout_search.py +0 -0
- {webscout-6.3 → webscout-6.4}/webscout/webscout_search_async.py +0 -0
- {webscout-6.3 → webscout-6.4}/webscout.egg-info/dependency_links.txt +0 -0
- {webscout-6.3 → webscout-6.4}/webscout.egg-info/entry_points.txt +0 -0
- {webscout-6.3 → webscout-6.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: 6.
|
|
3
|
+
Version: 6.4
|
|
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
|
|
@@ -24,7 +24,8 @@ Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
|
24
24
|
Requires-Python: >=3.7
|
|
25
25
|
Description-Content-Type: text/markdown
|
|
26
26
|
License-File: LICENSE.md
|
|
27
|
-
Requires-Dist:
|
|
27
|
+
Requires-Dist: mistune
|
|
28
|
+
Requires-Dist: tenacity
|
|
28
29
|
Requires-Dist: curl_cffi
|
|
29
30
|
Requires-Dist: nest-asyncio
|
|
30
31
|
Requires-Dist: g4f>=0.2.2.3
|
|
@@ -45,21 +46,17 @@ Requires-Dist: playsound
|
|
|
45
46
|
Requires-Dist: ollama
|
|
46
47
|
Requires-Dist: pyfiglet
|
|
47
48
|
Requires-Dist: pillow
|
|
48
|
-
Requires-Dist: requests_html
|
|
49
49
|
Requires-Dist: bson
|
|
50
50
|
Requires-Dist: cloudscraper
|
|
51
51
|
Requires-Dist: emoji
|
|
52
52
|
Requires-Dist: openai
|
|
53
53
|
Requires-Dist: prompt-toolkit
|
|
54
|
-
Requires-Dist: fake_useragent
|
|
55
54
|
Requires-Dist: primp
|
|
56
55
|
Requires-Dist: pyreqwest_impersonate
|
|
57
56
|
Requires-Dist: lxml_html_clean
|
|
58
57
|
Requires-Dist: gradio_client
|
|
59
58
|
Requires-Dist: psutil
|
|
60
|
-
Requires-Dist: colorlog
|
|
61
59
|
Requires-Dist: yaspin
|
|
62
|
-
Requires-Dist: cerebras-cloud-sdk
|
|
63
60
|
Provides-Extra: dev
|
|
64
61
|
Requires-Dist: ruff>=0.1.6; extra == "dev"
|
|
65
62
|
Requires-Dist: pytest>=7.4.2; extra == "dev"
|
|
@@ -119,7 +116,11 @@ Requires-Dist: unicorn; extra == "local"
|
|
|
119
116
|
* **GGUF Conversion & Quantization:** Convert and quantize Hugging Face models to GGUF format.
|
|
120
117
|
* **Autollama:** Download Hugging Face models and automatically convert them for Ollama compatibility.
|
|
121
118
|
* **Function Calling (Beta):** Experiment with function calling capabilities for enhanced AI interactions.
|
|
122
|
-
|
|
119
|
+
* **[SwiftCLI](webscout/swiftcli/Readme.md):** A powerful and elegant CLI framework that makes it easy to create beautiful command-line interfaces.
|
|
120
|
+
* **[LitPrinter](webscout/litprinter/Readme.md):** Provides beautiful, styled console output with rich formatting and colors
|
|
121
|
+
* **[LitLogger](webscout/litlogger/Readme.md):** Simplifies logging with customizable formats and color schemes
|
|
122
|
+
* **[LitAgent](webscout/litagent/Readme.md):** Powerful and modern user agent generator that keeps your requests fresh and undetectable
|
|
123
|
+
* **[Text-to-Image](webscout/Provider/TTI/README.md):** Generate high-quality images using a wide range of AI art providers
|
|
123
124
|
|
|
124
125
|
## ⚙️ Installation
|
|
125
126
|
```python
|
|
@@ -817,17 +818,6 @@ with WEBS() as WEBS:
|
|
|
817
818
|
___
|
|
818
819
|
</details>
|
|
819
820
|
|
|
820
|
-
### 🖼️ Text to Images - DeepInfraImager, PollinationsAI, BlackboxAIImager, AiForceimager, NexraImager, HFimager, ArtbitImager, NinjaImager, WebSimAI, AIUncensoredImager, TalkaiImager
|
|
821
|
-
|
|
822
|
-
**Every TTI provider has the same usage code, you just need to change the import.**
|
|
823
|
-
|
|
824
|
-
```python
|
|
825
|
-
from webscout import DeepInfraImager
|
|
826
|
-
bot = DeepInfraImager()
|
|
827
|
-
resp = bot.generate("AI-generated image - webscout", 1)
|
|
828
|
-
print(bot.save(resp))
|
|
829
|
-
```
|
|
830
|
-
|
|
831
821
|
### 🗣️ Text to Speech - Voicepods, StreamElements
|
|
832
822
|
|
|
833
823
|
```python
|
|
@@ -936,9 +926,9 @@ ai.tool_registry.register_tool(
|
|
|
936
926
|
parameters={
|
|
937
927
|
"type": "object",
|
|
938
928
|
"properties": {
|
|
939
|
-
"location": {"
|
|
929
|
+
"location": {"title": "Location", "type": "string"}
|
|
940
930
|
},
|
|
941
|
-
"required": ["location"]
|
|
931
|
+
"required": ["location"]
|
|
942
932
|
},
|
|
943
933
|
)
|
|
944
934
|
|
|
@@ -1019,8 +1009,7 @@ meta_ai = Meta(fb_email=fb_email, fb_password=fb_password)
|
|
|
1019
1009
|
# Text prompt with web search
|
|
1020
1010
|
response = meta_ai.ask("what is currently happning in bangladesh in aug 2024")
|
|
1021
1011
|
print(response["message"]) # Access the text message
|
|
1022
|
-
print("Sources:", response["sources"]) # Access sources (if
|
|
1023
|
-
any)
|
|
1012
|
+
print("Sources:", response["sources"]) # Access sources (if any)
|
|
1024
1013
|
|
|
1025
1014
|
# Image generation
|
|
1026
1015
|
response = meta_ai.ask("Create an image of a cat wearing a hat.")
|
|
@@ -1355,36 +1344,28 @@ if __name__ == "__main__":
|
|
|
1355
1344
|
main()
|
|
1356
1345
|
```
|
|
1357
1346
|
|
|
1358
|
-
### LLAMA3, pizzagpt, RUBIKSAI, Koala, Darkai, AI4Chat, Farfalle, PIAI, Felo, Julius, YouChat, YEPCHAT, Cloudflare, TurboSeek, Editee, AI21, Chatify, Cerebras, X0GPT, Lepton, GEMINIAPI, Cleeai, Elmo, Genspark, Upstage, Free2GPT, Bing, DiscordRocks, GPTWeb, LlamaTutor, PromptRefine, AIUncensored, TutorAI, ChatGPTES, Bagoodex, ChatHub, AmigoChat, AIMathGPT, GaurishCerebras, NinjaChat, GeminiPro, Talkai, LLMChat, AskMyAI, Llama3Mitril, Marcus
|
|
1347
|
+
### LLAMA3, pizzagpt, RUBIKSAI, Koala, Darkai, AI4Chat, Farfalle, PIAI, Felo, Julius, YouChat, YEPCHAT, Cloudflare, TurboSeek, Editee, AI21, Chatify, Cerebras, X0GPT, Lepton, GEMINIAPI, Cleeai, Elmo, Genspark, Upstage, Free2GPT, Bing, DiscordRocks, GPTWeb, LlamaTutor, PromptRefine, AIUncensored, TutorAI, ChatGPTES, Bagoodex, ChatHub, AmigoChat, AIMathGPT, GaurishCerebras, NinjaChat, GeminiPro, Talkai, LLMChat, AskMyAI, Llama3Mitril, Marcus, PerplexityLabs, TypeGPT, Mhystical
|
|
1359
1348
|
|
|
1360
1349
|
Code is similar to other providers.
|
|
1361
1350
|
|
|
1362
1351
|
### `LLM`
|
|
1363
1352
|
|
|
1364
1353
|
```python
|
|
1365
|
-
from webscout.LLM import LLM
|
|
1366
|
-
|
|
1367
|
-
#
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
#
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
# Define the messages to be sent
|
|
1379
|
-
messages = [
|
|
1380
|
-
{"role": "user", "content": user_input}
|
|
1354
|
+
from webscout.LLM import LLM, VLM
|
|
1355
|
+
|
|
1356
|
+
# Chat with text
|
|
1357
|
+
llm = LLM("meta-llama/Meta-Llama-3-70B-Instruct")
|
|
1358
|
+
response = llm.chat([{"role": "user", "content": "What's good?"}])
|
|
1359
|
+
|
|
1360
|
+
# Chat with images
|
|
1361
|
+
vlm = VLM("cogvlm-grounding-generalist")
|
|
1362
|
+
response = vlm.chat([{
|
|
1363
|
+
"role": "user",
|
|
1364
|
+
"content": [
|
|
1365
|
+
{"type": "image", "image_url": "cool_pic.jpg"},
|
|
1366
|
+
{"type": "text", "text": "What's in this image?"}
|
|
1381
1367
|
]
|
|
1382
|
-
|
|
1383
|
-
# Use the mistral_chat method to get the response
|
|
1384
|
-
response = llm.chat(messages)
|
|
1385
|
-
|
|
1386
|
-
# Print the response
|
|
1387
|
-
print("AI: ", response)
|
|
1368
|
+
}])
|
|
1388
1369
|
```
|
|
1389
1370
|
|
|
1390
1371
|
## 💻 Local-LLM
|