webscout 7.7__py3-none-any.whl → 7.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.

Files changed (134) hide show
  1. webscout/AIutel.py +2 -1
  2. webscout/Bard.py +12 -29
  3. webscout/DWEBS.py +477 -461
  4. webscout/Extra/__init__.py +2 -0
  5. webscout/Extra/autocoder/__init__.py +9 -9
  6. webscout/Extra/autocoder/{rawdog.py → autocoder.py} +849 -790
  7. webscout/Extra/autocoder/autocoder_utiles.py +332 -194
  8. webscout/Extra/gguf.py +682 -682
  9. webscout/Extra/tempmail/__init__.py +26 -0
  10. webscout/Extra/tempmail/async_utils.py +141 -0
  11. webscout/Extra/tempmail/base.py +156 -0
  12. webscout/Extra/tempmail/cli.py +187 -0
  13. webscout/Extra/tempmail/mail_tm.py +361 -0
  14. webscout/Extra/tempmail/temp_mail_io.py +292 -0
  15. webscout/Provider/AI21.py +1 -1
  16. webscout/Provider/AISEARCH/DeepFind.py +2 -2
  17. webscout/Provider/AISEARCH/ISou.py +2 -2
  18. webscout/Provider/AISEARCH/felo_search.py +6 -6
  19. webscout/Provider/AISEARCH/genspark_search.py +1 -1
  20. webscout/Provider/Aitopia.py +292 -0
  21. webscout/Provider/AllenAI.py +1 -1
  22. webscout/Provider/Andi.py +3 -3
  23. webscout/Provider/C4ai.py +1 -1
  24. webscout/Provider/ChatGPTES.py +3 -5
  25. webscout/Provider/ChatGPTGratis.py +4 -4
  26. webscout/Provider/Chatify.py +2 -2
  27. webscout/Provider/Cloudflare.py +3 -2
  28. webscout/Provider/DeepSeek.py +2 -2
  29. webscout/Provider/Deepinfra.py +288 -286
  30. webscout/Provider/ElectronHub.py +709 -634
  31. webscout/Provider/ExaChat.py +325 -0
  32. webscout/Provider/Free2GPT.py +2 -2
  33. webscout/Provider/Gemini.py +167 -179
  34. webscout/Provider/GithubChat.py +1 -1
  35. webscout/Provider/Glider.py +4 -4
  36. webscout/Provider/Groq.py +41 -27
  37. webscout/Provider/HF_space/qwen_qwen2.py +1 -1
  38. webscout/Provider/HeckAI.py +1 -1
  39. webscout/Provider/HuggingFaceChat.py +1 -1
  40. webscout/Provider/Hunyuan.py +1 -1
  41. webscout/Provider/Jadve.py +3 -3
  42. webscout/Provider/Koboldai.py +3 -3
  43. webscout/Provider/LambdaChat.py +3 -2
  44. webscout/Provider/Llama.py +3 -5
  45. webscout/Provider/Llama3.py +4 -12
  46. webscout/Provider/Marcus.py +3 -3
  47. webscout/Provider/OLLAMA.py +8 -8
  48. webscout/Provider/Openai.py +7 -3
  49. webscout/Provider/PI.py +1 -1
  50. webscout/Provider/Perplexitylabs.py +1 -1
  51. webscout/Provider/Phind.py +1 -1
  52. webscout/Provider/PizzaGPT.py +1 -1
  53. webscout/Provider/QwenLM.py +4 -7
  54. webscout/Provider/TTI/FreeAIPlayground/async_freeaiplayground.py +3 -1
  55. webscout/Provider/TTI/FreeAIPlayground/sync_freeaiplayground.py +3 -3
  56. webscout/Provider/TTI/ImgSys/__init__.py +23 -0
  57. webscout/Provider/TTI/ImgSys/async_imgsys.py +202 -0
  58. webscout/Provider/TTI/ImgSys/sync_imgsys.py +195 -0
  59. webscout/Provider/TTI/__init__.py +3 -1
  60. webscout/Provider/TTI/artbit/async_artbit.py +1 -1
  61. webscout/Provider/TTI/artbit/sync_artbit.py +1 -1
  62. webscout/Provider/TTI/huggingface/async_huggingface.py +1 -1
  63. webscout/Provider/TTI/huggingface/sync_huggingface.py +1 -1
  64. webscout/Provider/TTI/piclumen/__init__.py +22 -22
  65. webscout/Provider/TTI/piclumen/sync_piclumen.py +232 -232
  66. webscout/Provider/TTI/pixelmuse/__init__.py +4 -0
  67. webscout/Provider/TTI/pixelmuse/async_pixelmuse.py +249 -0
  68. webscout/Provider/TTI/pixelmuse/sync_pixelmuse.py +182 -0
  69. webscout/Provider/TTI/talkai/sync_talkai.py +1 -1
  70. webscout/Provider/TTS/utils.py +1 -1
  71. webscout/Provider/TeachAnything.py +1 -1
  72. webscout/Provider/TextPollinationsAI.py +232 -230
  73. webscout/Provider/TwoAI.py +1 -2
  74. webscout/Provider/Venice.py +4 -2
  75. webscout/Provider/VercelAI.py +234 -0
  76. webscout/Provider/WebSim.py +3 -2
  77. webscout/Provider/WiseCat.py +10 -12
  78. webscout/Provider/Youchat.py +1 -1
  79. webscout/Provider/__init__.py +10 -4
  80. webscout/Provider/ai4chat.py +1 -1
  81. webscout/Provider/aimathgpt.py +2 -6
  82. webscout/Provider/akashgpt.py +1 -1
  83. webscout/Provider/askmyai.py +4 -4
  84. webscout/Provider/{DARKAI.py → asksteve.py} +56 -77
  85. webscout/Provider/bagoodex.py +2 -2
  86. webscout/Provider/cerebras.py +1 -1
  87. webscout/Provider/chatglm.py +4 -4
  88. webscout/Provider/cleeai.py +1 -0
  89. webscout/Provider/copilot.py +21 -9
  90. webscout/Provider/elmo.py +1 -1
  91. webscout/Provider/flowith.py +1 -1
  92. webscout/Provider/freeaichat.py +64 -31
  93. webscout/Provider/gaurish.py +3 -5
  94. webscout/Provider/geminiprorealtime.py +1 -1
  95. webscout/Provider/granite.py +4 -4
  96. webscout/Provider/hermes.py +5 -5
  97. webscout/Provider/julius.py +1 -1
  98. webscout/Provider/koala.py +1 -1
  99. webscout/Provider/lepton.py +1 -1
  100. webscout/Provider/llama3mitril.py +4 -4
  101. webscout/Provider/llamatutor.py +1 -1
  102. webscout/Provider/llmchat.py +3 -3
  103. webscout/Provider/meta.py +1 -1
  104. webscout/Provider/multichat.py +10 -10
  105. webscout/Provider/promptrefine.py +1 -1
  106. webscout/Provider/searchchat.py +293 -0
  107. webscout/Provider/sonus.py +2 -2
  108. webscout/Provider/talkai.py +2 -2
  109. webscout/Provider/turboseek.py +1 -1
  110. webscout/Provider/tutorai.py +1 -1
  111. webscout/Provider/typegpt.py +5 -42
  112. webscout/Provider/uncovr.py +312 -297
  113. webscout/Provider/x0gpt.py +1 -1
  114. webscout/Provider/yep.py +64 -12
  115. webscout/__init__.py +3 -1
  116. webscout/cli.py +59 -98
  117. webscout/conversation.py +350 -17
  118. webscout/litprinter/__init__.py +59 -667
  119. webscout/optimizers.py +419 -419
  120. webscout/tempid.py +11 -11
  121. webscout/update_checker.py +14 -12
  122. webscout/utils.py +2 -2
  123. webscout/version.py +1 -1
  124. webscout/webscout_search.py +146 -87
  125. webscout/webscout_search_async.py +148 -27
  126. {webscout-7.7.dist-info → webscout-7.9.dist-info}/METADATA +92 -66
  127. webscout-7.9.dist-info/RECORD +248 -0
  128. webscout/Provider/EDITEE.py +0 -192
  129. webscout/litprinter/colors.py +0 -54
  130. webscout-7.7.dist-info/RECORD +0 -234
  131. {webscout-7.7.dist-info → webscout-7.9.dist-info}/LICENSE.md +0 -0
  132. {webscout-7.7.dist-info → webscout-7.9.dist-info}/WHEEL +0 -0
  133. {webscout-7.7.dist-info → webscout-7.9.dist-info}/entry_points.txt +0 -0
  134. {webscout-7.7.dist-info → webscout-7.9.dist-info}/top_level.txt +0 -0
@@ -1,230 +1,232 @@
1
- import requests
2
- import json
3
- from typing import Any, Dict, Generator
4
- from webscout.AIutel import Optimizers, Conversation, AwesomePrompts
5
- from webscout.AIbase import Provider
6
- from webscout import exceptions
7
- from webscout import LitAgent as Lit
8
-
9
- class TextPollinationsAI(Provider):
10
- """
11
- A class to interact with the Pollinations AI API.
12
- """
13
-
14
- AVAILABLE_MODELS = [
15
- "openai", # OpenAI GPT-4o-mini
16
- "openai-large", # OpenAI GPT-4o
17
- "openai-reasoning", # OpenAI o1-mini
18
- "qwen-coder", # Qwen 2.5 Coder 32B
19
- "llama", # Llama 3.3 70B
20
- "mistral", # Mistral Nemo
21
- "unity", # Unity with Mistral Large
22
- "midijourney", # Midijourney musical transformer
23
- "rtist", # Rtist image generator
24
- "searchgpt", # SearchGPT with realtime search
25
- "evil", # Evil Mode - Experimental
26
- # "deepseek", # DeepSeek-V3 >>>> NOT WORKING
27
- "claude-hybridspace", # Claude Hybridspace
28
- "deepseek-r1", # DeepSeek-R1 Distill Qwen 32B
29
- # "deepseek-reasoner", # DeepSeek R1 - Full >>>> NOT WORKING
30
- # "llamalight", # Llama 3.1 8B Instruct >>>> NOT WORKING
31
- # "llamaguard", # Llamaguard 7B AWQ >>>> NOT WORKING
32
- "gemini", # Gemini 2.0 Flash
33
- "gemini-thinking", # Gemini 2.0 Flash Thinking
34
- "hormoz", # Hormoz 8b
35
- "hypnosis-tracy", # Hypnosis Tracy
36
- "sur", # Sur AI Assistant
37
- "sur-mistral", # Sur AI Assistant (Mistral)
38
- # "llama-scaleway", # Llama (Scaleway) >>>> NOT WORKING
39
- "phi", # Phi model
40
- # "openai-audio" # OpenAI Audio model >>>> NOT WORKING
41
- ]
42
-
43
- def __init__(
44
- self,
45
- is_conversation: bool = True,
46
- max_tokens: int = 8096,
47
- timeout: int = 30,
48
- intro: str = None,
49
- filepath: str = None,
50
- update_file: bool = True,
51
- proxies: dict = {},
52
- history_offset: int = 10250,
53
- act: str = None,
54
- model: str = "openai-large",
55
- system_prompt: str = "You are a helpful AI assistant.",
56
- ):
57
- """Initializes the TextPollinationsAI API client."""
58
- if model not in self.AVAILABLE_MODELS:
59
- raise ValueError(f"Invalid model: {model}. Choose from: {self.AVAILABLE_MODELS}")
60
-
61
- self.session = requests.Session()
62
- self.is_conversation = is_conversation
63
- self.max_tokens_to_sample = max_tokens
64
- self.api_endpoint = "https://text.pollinations.ai/openai"
65
- self.stream_chunk_size = 64
66
- self.timeout = timeout
67
- self.last_response = {}
68
- self.model = model
69
- self.system_prompt = system_prompt
70
-
71
- self.headers = {
72
- 'Accept': '*/*',
73
- 'Accept-Language': 'en-US,en;q=0.9',
74
- 'User-Agent': Lit().random(),
75
- 'Content-Type': 'application/json',
76
- }
77
-
78
- self.session.headers.update(self.headers)
79
- self.session.proxies = proxies
80
-
81
- self.__available_optimizers = (
82
- method for method in dir(Optimizers)
83
- if callable(getattr(Optimizers, method)) and not method.startswith("__")
84
- )
85
-
86
- Conversation.intro = (
87
- AwesomePrompts().get_act(
88
- act, raise_not_found=True, default=None, case_insensitive=True
89
- )
90
- if act
91
- else intro or Conversation.intro
92
- )
93
-
94
- self.conversation = Conversation(
95
- is_conversation, self.max_tokens_to_sample, filepath, update_file
96
- )
97
- self.conversation.history_offset = history_offset
98
-
99
- def ask(
100
- self,
101
- prompt: str,
102
- stream: bool = False,
103
- raw: bool = False,
104
- optimizer: str = None,
105
- conversationally: bool = False,
106
- ) -> Dict[str, Any] | Generator[Dict[str, Any], None, None]:
107
- """Chat with AI"""
108
- conversation_prompt = self.conversation.gen_complete_prompt(prompt)
109
- if optimizer:
110
- if optimizer in self.__available_optimizers:
111
- conversation_prompt = getattr(Optimizers, optimizer)(
112
- conversation_prompt if conversationally else prompt
113
- )
114
- else:
115
- raise Exception(f"Optimizer is not one of {self.__available_optimizers}")
116
-
117
- payload = {
118
- "messages": [
119
- {"role": "system", "content": self.system_prompt},
120
- {"role": "user", "content": conversation_prompt}
121
- ],
122
- "model": self.model,
123
- "stream": stream,
124
- }
125
-
126
- def for_stream():
127
- response = self.session.post(
128
- self.api_endpoint,
129
- headers=self.headers,
130
- json=payload,
131
- stream=True,
132
- timeout=self.timeout
133
- )
134
-
135
- if not response.ok:
136
- raise exceptions.FailedToGenerateResponseError(
137
- f"Failed to generate response - ({response.status_code}, {response.reason}) - {response.text}"
138
- )
139
-
140
- full_response = ""
141
- for line in response.iter_lines():
142
- if line:
143
- line = line.decode('utf-8').strip()
144
- if line == "data: [DONE]":
145
- break
146
- if line.startswith('data: '):
147
- try:
148
- json_data = json.loads(line[6:])
149
- if 'choices' in json_data and len(json_data['choices']) > 0:
150
- choice = json_data['choices'][0]
151
- if 'delta' in choice and 'content' in choice['delta']:
152
- content = choice['delta']['content']
153
- else:
154
- content = ""
155
- full_response += content
156
- yield content if raw else dict(text=content)
157
- except json.JSONDecodeError:
158
- continue
159
-
160
- self.last_response.update(dict(text=full_response))
161
- self.conversation.update_chat_history(
162
- prompt, self.get_message(self.last_response)
163
- )
164
-
165
- def for_non_stream():
166
- for _ in for_stream():
167
- pass
168
- return self.last_response
169
-
170
- return for_stream() if stream else for_non_stream()
171
-
172
- def chat(
173
- self,
174
- prompt: str,
175
- stream: bool = False,
176
- optimizer: str = None,
177
- conversationally: bool = False,
178
- ) -> str | Generator[str, None, None]:
179
- """Generate response as a string"""
180
- def for_stream():
181
- for response in self.ask(
182
- prompt, True, optimizer=optimizer, conversationally=conversationally
183
- ):
184
- yield self.get_message(response)
185
-
186
- def for_non_stream():
187
- return self.get_message(
188
- self.ask(
189
- prompt,
190
- False,
191
- optimizer=optimizer,
192
- conversationally=conversationally,
193
- )
194
- )
195
-
196
- return for_stream() if stream else for_non_stream()
197
-
198
- def get_message(self, response: dict) -> str:
199
- """Retrieves message only from response"""
200
- assert isinstance(response, dict), "Response should be of dict data-type only"
201
- return response["text"]
202
-
203
- if __name__ == "__main__":
204
- print("-" * 80)
205
- print(f"{'Model':<50} {'Status':<10} {'Response'}")
206
- print("-" * 80)
207
-
208
- # Test all available models
209
- working = 0
210
- total = len(TextPollinationsAI.AVAILABLE_MODELS)
211
-
212
- for model in TextPollinationsAI.AVAILABLE_MODELS:
213
- try:
214
- test_ai = TextPollinationsAI(model=model, timeout=60)
215
- response = test_ai.chat("Say 'Hello' in one word", stream=True)
216
- response_text = ""
217
- for chunk in response:
218
- response_text += chunk
219
- print(f"\r{model:<50} {'Testing...':<10}", end="", flush=True)
220
-
221
- if response_text and len(response_text.strip()) > 0:
222
- status = "✓"
223
- # Truncate response if too long
224
- display_text = response_text.strip()[:50] + "..." if len(response_text.strip()) > 50 else response_text.strip()
225
- else:
226
- status = ""
227
- display_text = "Empty or invalid response"
228
- print(f"\r{model:<50} {status:<10} {display_text}")
229
- except Exception as e:
230
- print(f"\r{model:<50} {'✗':<10} {str(e)}")
1
+ import requests
2
+ import json
3
+ from typing import Union, Any, Dict, Generator
4
+ from webscout.AIutel import Optimizers, Conversation, AwesomePrompts
5
+ from webscout.AIbase import Provider
6
+ from webscout import exceptions
7
+ from webscout.litagent import LitAgent as Lit
8
+
9
+ class TextPollinationsAI(Provider):
10
+ """
11
+ A class to interact with the Pollinations AI API.
12
+ """
13
+
14
+ AVAILABLE_MODELS = [
15
+ "openai", # OpenAI GPT-4o-mini
16
+ "openai-large", # OpenAI GPT-4o
17
+ "openai-reasoning", # OpenAI o3-mini
18
+ "qwen-coder", # Qwen 2.5 Coder 32B
19
+ "llama", # Llama 3.3 70B
20
+ "mistral", # Mistral Small 3
21
+ "unity", # Unity Mistral Large
22
+ "midijourney", # Midijourney
23
+ "rtist", # Rtist
24
+ "searchgpt", # SearchGPT
25
+ "evil", # Evil
26
+ "deepseek-reasoning", # DeepSeek-R1 Distill Qwen 32B
27
+ "deepseek-reasoning-large",# DeepSeek R1 - Llama 70B
28
+ # "llamalight", # Llama 3.1 8B Instruct # >>> NOT WORKING
29
+ "phi", # Phi-4 Instruct
30
+ "llama-vision", # Llama 3.2 11B Vision
31
+ "pixtral", # Pixtral 12B
32
+ "gemini", # Gemini 2.0 Flash
33
+ "gemini-reasoning", # Gemini 2.0 Flash Thinking
34
+ "hormoz", # Hormoz 8b
35
+ "hypnosis-tracy", # Hypnosis Tracy 7B
36
+ "mistral-roblox", # Mistral Roblox on Scaleway
37
+ "roblox-rp", # Roblox Roleplay Assistant
38
+ "deepseek", # DeepSeek-V3
39
+ "qwen-reasoning", # Qwen QWQ 32B - Advanced Reasoning
40
+ "sur", # Sur AI Assistant (Mistral)
41
+ "llama-scaleway", # Llama (Scaleway)
42
+ "openai-audio", # OpenAI GPT-4o-audio-preview
43
+ ]
44
+
45
+ def __init__(
46
+ self,
47
+ is_conversation: bool = True,
48
+ max_tokens: int = 8096,
49
+ timeout: int = 30,
50
+ intro: str = None,
51
+ filepath: str = None,
52
+ update_file: bool = True,
53
+ proxies: dict = {},
54
+ history_offset: int = 10250,
55
+ act: str = None,
56
+ model: str = "openai-large",
57
+ system_prompt: str = "You are a helpful AI assistant.",
58
+ ):
59
+ """Initializes the TextPollinationsAI API client."""
60
+ if model not in self.AVAILABLE_MODELS:
61
+ raise ValueError(f"Invalid model: {model}. Choose from: {self.AVAILABLE_MODELS}")
62
+
63
+ self.session = requests.Session()
64
+ self.is_conversation = is_conversation
65
+ self.max_tokens_to_sample = max_tokens
66
+ self.api_endpoint = "https://text.pollinations.ai/openai"
67
+ self.stream_chunk_size = 64
68
+ self.timeout = timeout
69
+ self.last_response = {}
70
+ self.model = model
71
+ self.system_prompt = system_prompt
72
+
73
+ self.headers = {
74
+ 'Accept': '*/*',
75
+ 'Accept-Language': 'en-US,en;q=0.9',
76
+ 'User-Agent': Lit().random(),
77
+ 'Content-Type': 'application/json',
78
+ }
79
+
80
+ self.session.headers.update(self.headers)
81
+ self.session.proxies = proxies
82
+
83
+ self.__available_optimizers = (
84
+ method for method in dir(Optimizers)
85
+ if callable(getattr(Optimizers, method)) and not method.startswith("__")
86
+ )
87
+
88
+ Conversation.intro = (
89
+ AwesomePrompts().get_act(
90
+ act, raise_not_found=True, default=None, case_insensitive=True
91
+ )
92
+ if act
93
+ else intro or Conversation.intro
94
+ )
95
+
96
+ self.conversation = Conversation(
97
+ is_conversation, self.max_tokens_to_sample, filepath, update_file
98
+ )
99
+ self.conversation.history_offset = history_offset
100
+
101
+ def ask(
102
+ self,
103
+ prompt: str,
104
+ stream: bool = False,
105
+ raw: bool = False,
106
+ optimizer: str = None,
107
+ conversationally: bool = False,
108
+ ) -> Union[Dict[str, Any], Generator[Any, None, None]]:
109
+ """Chat with AI"""
110
+ conversation_prompt = self.conversation.gen_complete_prompt(prompt)
111
+ if optimizer:
112
+ if optimizer in self.__available_optimizers:
113
+ conversation_prompt = getattr(Optimizers, optimizer)(
114
+ conversation_prompt if conversationally else prompt
115
+ )
116
+ else:
117
+ raise Exception(f"Optimizer is not one of {self.__available_optimizers}")
118
+
119
+ payload = {
120
+ "messages": [
121
+ {"role": "system", "content": self.system_prompt},
122
+ {"role": "user", "content": conversation_prompt}
123
+ ],
124
+ "model": self.model,
125
+ "stream": stream,
126
+ }
127
+
128
+ def for_stream():
129
+ response = self.session.post(
130
+ self.api_endpoint,
131
+ headers=self.headers,
132
+ json=payload,
133
+ stream=True,
134
+ timeout=self.timeout
135
+ )
136
+
137
+ if not response.ok:
138
+ raise exceptions.FailedToGenerateResponseError(
139
+ f"Failed to generate response - ({response.status_code}, {response.reason}) - {response.text}"
140
+ )
141
+
142
+ full_response = ""
143
+ for line in response.iter_lines():
144
+ if line:
145
+ line = line.decode('utf-8').strip()
146
+ if line == "data: [DONE]":
147
+ break
148
+ if line.startswith('data: '):
149
+ try:
150
+ json_data = json.loads(line[6:])
151
+ if 'choices' in json_data and len(json_data['choices']) > 0:
152
+ choice = json_data['choices'][0]
153
+ if 'delta' in choice and 'content' in choice['delta']:
154
+ content = choice['delta']['content']
155
+ else:
156
+ content = ""
157
+ full_response += content
158
+ yield content if raw else dict(text=content)
159
+ except json.JSONDecodeError:
160
+ continue
161
+
162
+ self.last_response.update(dict(text=full_response))
163
+ self.conversation.update_chat_history(
164
+ prompt, self.get_message(self.last_response)
165
+ )
166
+
167
+ def for_non_stream():
168
+ for _ in for_stream():
169
+ pass
170
+ return self.last_response
171
+
172
+ return for_stream() if stream else for_non_stream()
173
+
174
+ def chat(
175
+ self,
176
+ prompt: str,
177
+ stream: bool = False,
178
+ optimizer: str = None,
179
+ conversationally: bool = False,
180
+ ) -> Union[str, Generator[str, None, None]]:
181
+ """Generate response as a string"""
182
+ def for_stream():
183
+ for response in self.ask(
184
+ prompt, True, optimizer=optimizer, conversationally=conversationally
185
+ ):
186
+ yield self.get_message(response)
187
+
188
+ def for_non_stream():
189
+ return self.get_message(
190
+ self.ask(
191
+ prompt,
192
+ False,
193
+ optimizer=optimizer,
194
+ conversationally=conversationally,
195
+ )
196
+ )
197
+
198
+ return for_stream() if stream else for_non_stream()
199
+
200
+ def get_message(self, response: dict) -> str:
201
+ """Retrieves message only from response"""
202
+ assert isinstance(response, dict), "Response should be of dict data-type only"
203
+ return response["text"]
204
+
205
+ if __name__ == "__main__":
206
+ print("-" * 80)
207
+ print(f"{'Model':<50} {'Status':<10} {'Response'}")
208
+ print("-" * 80)
209
+
210
+ # Test all available models
211
+ working = 0
212
+ total = len(TextPollinationsAI.AVAILABLE_MODELS)
213
+
214
+ for model in TextPollinationsAI.AVAILABLE_MODELS:
215
+ try:
216
+ test_ai = TextPollinationsAI(model=model, timeout=60)
217
+ response = test_ai.chat("Say 'Hello' in one word", stream=True)
218
+ response_text = ""
219
+ for chunk in response:
220
+ response_text += chunk
221
+ print(f"\r{model:<50} {'Testing...':<10}", end="", flush=True)
222
+
223
+ if response_text and len(response_text.strip()) > 0:
224
+ status = ""
225
+ # Truncate response if too long
226
+ display_text = response_text.strip()[:50] + "..." if len(response_text.strip()) > 50 else response_text.strip()
227
+ else:
228
+ status = "✗"
229
+ display_text = "Empty or invalid response"
230
+ print(f"\r{model:<50} {status:<10} {display_text}")
231
+ except Exception as e:
232
+ print(f"\r{model:<50} {'✗':<10} {str(e)}")
@@ -8,8 +8,7 @@ from webscout.AIutel import Conversation
8
8
  from webscout.AIutel import AwesomePrompts, sanitize_stream
9
9
  from webscout.AIbase import Provider, AsyncProvider
10
10
  from webscout import exceptions
11
- from webscout import LitAgent
12
-
11
+ from webscout.litagent import LitAgent
13
12
  class TwoAI(Provider):
14
13
  """
15
14
  A class to interact with the Two AI API with LitAgent user-agent.
@@ -8,7 +8,7 @@ from webscout.AIutel import Conversation
8
8
  from webscout.AIutel import AwesomePrompts, sanitize_stream
9
9
  from webscout.AIbase import Provider
10
10
  from webscout import exceptions
11
- from webscout import LitAgent
11
+ from webscout.litagent import LitAgent
12
12
 
13
13
  class Venice(Provider):
14
14
  """
@@ -18,7 +18,9 @@ class Venice(Provider):
18
18
  AVAILABLE_MODELS = [
19
19
  "llama-3.3-70b",
20
20
  "llama-3.2-3b-akash",
21
- "qwen2dot5-coder-32b"
21
+ "qwen2dot5-coder-32b",
22
+ "deepseek-coder-v2-lite",
23
+
22
24
  ]
23
25
 
24
26
  def __init__(