feat: add vllm and bingbot

pull/75/head
Zack 2 years ago
parent ed5c8eee37
commit e821ef7381

1
.gitignore vendored

@ -7,6 +7,7 @@ image/
audio/
video/
dataframe/
output/*
static/generated
swarms/__pycache__

@ -0,0 +1,183 @@
2023-10-23 17:42:54 ERROR  __main__ -> discord.py version 2.3.2 is installed but does not match the requirements
2023-10-23 18:56:31 ERROR  __main__ -> discord.py version 2.3.2 is installed but does not match the requirements
2023-10-23 18:59:10 ERROR  __main__ -> discord.py version 2.3.2 is installed but does not match the requirements
2023-10-23 18:59:32 ERROR  __main__ -> python-dotenv version 0.21.1 is installed but does not match the requirements
2023-10-23 18:59:54 ERROR  __main__ -> EdgeGPT version 0.13.2 is installed but does not match the requirements
2023-10-23 19:36:43 INFO  __main__ -> Spartan#5507 is now running!
2023-10-23 19:47:17 INFO  __main__ -> Spartan#5507 is now running!
2023-10-23 19:47:39 INFO  cogs.edgegpt -> zackbradshaw : 'generate swarms of robots harvesting resources from the galaxy' (BingChat-API) [BingImageCreator]
2023-10-23 19:57:20 INFO  __main__ -> Spartan#5507 is now running!
2023-10-23 20:08:01 INFO  __main__ -> Spartan#5507 is now running!
2023-10-23 20:08:12 INFO  cogs.edgegpt -> zackbradshaw : 'What are some ways swarms can be deployed to harvest resources from the galaxy' (BingChat-API) [Style: balanced]
2023-10-23 20:09:48 INFO  cogs.edgegpt -> zackbradshaw : 'Based on these suggestions create images demontrating the m' (BingChat-API) [Style: balanced]
2023-10-23 20:11:51 INFO  cogs.edgegpt -> zackbradshaw : 'create images of a dyson swarm' (BingChat-API) [BingImageCreator]
2023-10-23 20:12:12 ERROR  src.imageCreate -> Error while create image: object list can't be used in 'await' expression
Traceback (most recent call last):
File "/home/zack/code/swarms/apps/BingBot/src/imageCreate.py", line 20, in create_image
images = await image_generator.get_images(prompt)
TypeError: object list can't be used in 'await' expression
2023-10-23 20:12:52 INFO  __main__ -> Spartan#5507 is now running!
2023-10-23 20:12:57 INFO  cogs.edgegpt -> zackbradshaw : 'create images of a dyson swarm' (BingChat-API) [BingImageCreator]
2023-10-24 14:18:56 INFO  __main__ -> Spartan#5507 is now running!
2023-10-24 14:20:11 INFO  cogs.edgegpt -> zackbradshaw : 'what is this an image of' (Spartan) [Style: balanced]
2023-10-24 16:48:48 INFO  __main__ -> Spartan#5507 is now running!
2023-10-25 17:06:19 ERROR  __main__ -> bing-chat version 1.9.3 is installed but does not match the requirements
2023-10-25 17:18:50 INFO  __main__ -> Spartan#5507 is now running!
2023-10-25 17:21:08 INFO  cogs.edgegpt -> zackbradshaw : 'what is in this image' (BingChat-API) [Style: balanced]
2023-10-25 17:22:52 WARNING  cogs.edgegpt -> ishaanshri95 set Bing Cookies successful
2023-10-25 17:22:58 INFO  cogs.edgegpt -> ishaanshri95 : 'yo.' (Direct Message with ishaanshri95) [Style: balanced]
2023-10-25 17:24:20 WARNING  cogs.edgegpt -> ishaanshri95 delete Cookies
2023-10-25 17:24:41 WARNING  cogs.edgegpt -> Bing has been successfully reset
2023-10-25 17:25:07 ERROR  cogs.edgegpt -> Bing reset failed.
Traceback (most recent call last):
File "/home/zack/code/swarms/apps/BingBot/cogs/edgegpt.py", line 80, in reset
await users_chatbot[user_id].reset()
KeyError: 273204171002609664
2023-10-25 17:25:24 WARNING  cogs.edgegpt -> ishaanshri95 set Bing Cookies successful
2023-10-25 17:25:25 WARNING  cogs.edgegpt -> zackbradshaw delete Cookies
2023-10-25 17:25:32 INFO  cogs.edgegpt -> ishaanshri95 : 'how are you today?' (Direct Message with ishaanshri95) [Style: balanced]
2023-10-25 17:25:42 INFO  src.response -> ishaanshri95 : 'Can you tell me a joke?' (Direct Message with ishaanshri95) [Style: balanced] [button]
2023-10-25 17:26:36 WARNING  cogs.edgegpt -> Bing has been successfully reset
2023-10-25 17:43:30 INFO  __main__ -> Spartan#5507 is now running!
2023-10-25 18:02:42 INFO  __main__ -> Spartan#5507 is now running!
2023-10-25 18:08:50 INFO  __main__ -> Spartan#5507 is now running!
2023-10-25 18:52:23 INFO  __main__ -> Spartan#5507 is now running!
2023-10-25 19:08:52 WARNING  cogs.edgegpt -> ishaanshri95 set Bing Cookies successful
2023-10-25 19:27:15 INFO  __main__ -> Spartan#5507 is now running!
2023-10-25 20:13:15 ERROR  cogs.edgegpt -> Bing reset failed.
Traceback (most recent call last):
File "/home/zack/code/swarms/apps/BingBot/cogs/edgegpt.py", line 94, in reset
await users_chatbot[user_id].reset()
AttributeError: 'UserChatbot' object has no attribute 'reset'
2023-10-25 20:13:21 WARNING  cogs.edgegpt -> ishaanshri95 delete Cookies
2023-10-25 23:00:38 INFO  __main__ -> Spartan#5507 is now running!
2023-10-25 23:05:07 WARNING  cogs.edgegpt -> ishaanshri95 set Bing Cookies successful
2023-10-25 23:08:57 ERROR  __main__ -> python-dotenv version 1.0.0 is installed but does not match the requirements
2023-10-25 23:10:55 ERROR  __main__ -> PyYAML version 6.0.1 is installed but does not match the requirements
2023-10-25 23:11:03 ERROR  __main__ -> bing-chat version 1.9.2 is installed but does not match the requirements
2023-10-25 23:11:43 ERROR  __main__ -> bing-chat version 1.9.2 is installed but does not match the requirements
2023-10-25 23:12:20 ERROR  __main__ -> python-dotenv version 0.21.1 is installed but does not match the requirements
2023-10-25 23:12:51 ERROR  __main__ -> PyYAML version 6.0 is installed but does not match the requirements
2023-10-25 23:13:31 ERROR  __main__ -> bing-chat version 1.9.3 is installed but does not match the requirements
2023-10-25 23:13:43 INFO  __main__ -> Spartan#5507 is now running!
2023-10-26 12:04:05 ERROR  __main__ -> bing-chat version 1.9.2 is installed but does not match the requirements
2023-10-26 12:04:53 INFO  __main__ -> Spartan#5507 is now running!
2023-10-26 12:07:52 INFO  __main__ -> Spartan#5507 is now running!
2023-10-26 12:08:10 INFO  cogs.edgegpt -> zackbradshaw : 'what are the trending topics for health' (BingChat-API) [Style: balanced]
2023-10-26 12:09:19 INFO  cogs.edgegpt -> zackbradshaw : 'what are the trending topics for health using ai' (BingChat-API) [Style: balanced]
2023-10-26 12:12:04 INFO  cogs.edgegpt -> zackbradshaw : 'what are the trending topics for health focus on psychology sub topics' (BingChat-API) [Style: balanced]
2023-10-26 12:12:46 INFO  cogs.edgegpt -> zackbradshaw : 'Create images for theses topics' (BingChat-API) [BingImageCreator]
2023-10-26 12:14:42 ERROR  src.imageCreate -> Error while create image:
Traceback (most recent call last):
File "/home/zack/.local/lib/python3.10/site-packages/anyio/streams/tls.py", line 131, in _call_sslobject_method
result = func(*args)
File "/usr/lib/python3.10/ssl.py", line 917, in read
v = self._sslobj.read(len)
ssl.SSLWantReadError: The operation did not complete (read) (_ssl.c:2578)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/zack/.local/lib/python3.10/site-packages/httpcore/backends/asyncio.py", line 34, in read
return await self._stream.receive(max_bytes=max_bytes)
File "/home/zack/.local/lib/python3.10/site-packages/anyio/streams/tls.py", line 196, in receive
data = await self._call_sslobject_method(self._ssl_object.read, max_bytes)
File "/home/zack/.local/lib/python3.10/site-packages/anyio/streams/tls.py", line 138, in _call_sslobject_method
data = await self.transport_stream.receive()
File "/home/zack/.local/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 1203, in receive
await self._protocol.read_event.wait()
File "/usr/lib/python3.10/asyncio/locks.py", line 214, in wait
await fut
asyncio.exceptions.CancelledError
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/zack/.local/lib/python3.10/site-packages/httpcore/_exceptions.py", line 10, in map_exceptions
yield
File "/home/zack/.local/lib/python3.10/site-packages/httpcore/backends/asyncio.py", line 32, in read
with anyio.fail_after(timeout):
File "/home/zack/.local/lib/python3.10/site-packages/anyio/_core/_tasks.py", line 119, in __exit__
raise TimeoutError
TimeoutError
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/zack/.local/lib/python3.10/site-packages/httpx/_transports/default.py", line 60, in map_httpcore_exceptions
yield
File "/home/zack/.local/lib/python3.10/site-packages/httpx/_transports/default.py", line 353, in handle_async_request
resp = await self._pool.handle_async_request(req)
File "/home/zack/.local/lib/python3.10/site-packages/httpcore/_async/connection_pool.py", line 253, in handle_async_request
raise exc
File "/home/zack/.local/lib/python3.10/site-packages/httpcore/_async/connection_pool.py", line 237, in handle_async_request
response = await connection.handle_async_request(request)
File "/home/zack/.local/lib/python3.10/site-packages/httpcore/_async/connection.py", line 90, in handle_async_request
return await self._connection.handle_async_request(request)
File "/home/zack/.local/lib/python3.10/site-packages/httpcore/_async/http11.py", line 116, in handle_async_request
raise exc
File "/home/zack/.local/lib/python3.10/site-packages/httpcore/_async/http11.py", line 95, in handle_async_request
) = await self._receive_response_headers(**kwargs)
File "/home/zack/.local/lib/python3.10/site-packages/httpcore/_async/http11.py", line 159, in _receive_response_headers
event = await self._receive_event(timeout=timeout)
File "/home/zack/.local/lib/python3.10/site-packages/httpcore/_async/http11.py", line 195, in _receive_event
data = await self._network_stream.read(
File "/home/zack/.local/lib/python3.10/site-packages/httpcore/backends/asyncio.py", line 31, in read
with map_exceptions(exc_map):
File "/usr/lib/python3.10/contextlib.py", line 153, in __exit__
self.gen.throw(typ, value, traceback)
File "/home/zack/.local/lib/python3.10/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions
raise to_exc(exc)
httpcore.ReadTimeout
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home/zack/code/swarms/apps/BingBot/src/imageCreate.py", line 24, in create_image
images = await image_generator.get_images(prompt)
File "/home/zack/.local/lib/python3.10/site-packages/BingImageCreator.py", line 327, in get_images
response = await self.session.get(polling_url)
File "/home/zack/.local/lib/python3.10/site-packages/httpx/_client.py", line 1757, in get
return await self.request(
File "/home/zack/.local/lib/python3.10/site-packages/httpx/_client.py", line 1530, in request
return await self.send(request, auth=auth, follow_redirects=follow_redirects)
File "/home/zack/.local/lib/python3.10/site-packages/httpx/_client.py", line 1617, in send
response = await self._send_handling_auth(
File "/home/zack/.local/lib/python3.10/site-packages/httpx/_client.py", line 1645, in _send_handling_auth
response = await self._send_handling_redirects(
File "/home/zack/.local/lib/python3.10/site-packages/httpx/_client.py", line 1682, in _send_handling_redirects
response = await self._send_single_request(request)
File "/home/zack/.local/lib/python3.10/site-packages/httpx/_client.py", line 1719, in _send_single_request
response = await transport.handle_async_request(request)
File "/home/zack/.local/lib/python3.10/site-packages/httpx/_transports/default.py", line 352, in handle_async_request
with map_httpcore_exceptions():
File "/usr/lib/python3.10/contextlib.py", line 153, in __exit__
self.gen.throw(typ, value, traceback)
File "/home/zack/.local/lib/python3.10/site-packages/httpx/_transports/default.py", line 77, in map_httpcore_exceptions
raise mapped_exc(message) from exc
httpx.ReadTimeout
2023-10-26 12:49:14 INFO  cogs.edgegpt -> zackbradshaw : 'Based on analitics what are the most popular topics on health right now go into s much detail as possible refer to recent breakthroughs in this field' (BingChat-API) [Style: balanced]
2023-10-26 12:49:40 ERROR  src.response -> Error while sending message: embeds has a maximum of 10 elements.
Traceback (most recent call last):
File "/home/zack/code/swarms/apps/BingBot/src/response.py", line 156, in send_message
await interaction.followup.send(
File "/home/zack/.local/lib/python3.10/site-packages/discord/webhook/async_.py", line 1785, in send
with handle_message_parameters(
File "/home/zack/.local/lib/python3.10/site-packages/discord/http.py", line 171, in handle_message_parameters
raise ValueError('embeds has a maximum of 10 elements.')
ValueError: embeds has a maximum of 10 elements.
2023-10-26 13:08:10 INFO  __main__ -> Spartan#5507 is now running!
2023-10-26 13:27:35 INFO  __main__ -> Spartan#5507 is now running!
2023-10-26 13:29:46 INFO  cogs.edgegpt -> zackbradshaw : '/bin generate topics for PositiveMed.com, an LLM should: 1. **Monitor Health Trends**: Scan Google Alerts, authoritative health websites, and social media for emerging health, wellness, and medical discussions. 2. **Keyword Research**: Utilize tools like SEMrush to identify keywords with moderate to high search volume and low competition. Focus on long-tail, conversational keywords. 3. **Analyze Site Data**: Review PositiveMed's analytics to pinpoint popular articles and areas lacking recent content. 4. **Crowdsourcing**: Gather topic suggestions from the brand's audience and internal team, ensuring alignment with PositiveMed's mission. 5. **Topic Evaluation**: Assess topics for audience relevance, uniqueness, brand fit, current relevance, and SEO potential. 6. **Tone and Style**: Ensure topics can be approached with an educational, empowering, and ethical tone, in line with the brand's voice. Use this framework to generate a list of potential topics that cater to PositiveMed's audience while staying true to its brand ethos. Find trending topics for slowing and reversing aging think step by step and o into as much detail as possible' (BingChat-API) [Style: balanced]
2023-10-26 13:34:05 INFO  cogs.edgegpt -> zackbradshaw : 'Give me links to papers on the cutting edge of this research' (BingChat-API) [Style: balanced]
2023-10-26 13:35:13 INFO  src.response -> zackbradshaw : 'Can you recommend any books on anti-aging research?' (BingChat-API) [Style: balanced] [button]
2023-10-26 13:35:17 ERROR  src.response -> Error while sending message: 'adaptiveCards'
Traceback (most recent call last):
File "/home/zack/code/swarms/apps/BingBot/src/response.py", line 102, in send_message
reply = await chatbot.ask(
File "/home/zack/.local/lib/python3.10/site-packages/EdgeGPT/EdgeGPT.py", line 119, in ask
async for final, response in self.chat_hub.ask_stream(
File "/home/zack/.local/lib/python3.10/site-packages/EdgeGPT/chathub.py", line 187, in ask_stream
resp_txt = result_text + response["arguments"][0][
KeyError: 'adaptiveCards'
2023-10-26 14:53:27 INFO  __main__ -> Spartan#5507 is now running!

@ -0,0 +1,34 @@
Traceback (most recent call last):
File "/home/zack/code/swarms/bingchat.py", line 1, in <module>
from swarms.models.bing_chat import BingChat
File "/home/zack/code/swarms/swarms/__init__.py", line 12, in <module>
from swarms.workers import *
File "/home/zack/code/swarms/swarms/workers/__init__.py", line 1, in <module>
from swarms.workers.worker import Worker
File "/home/zack/code/swarms/swarms/workers/worker.py", line 6, in <module>
from langchain.chains.qa_with_sources.loading import (
File "/home/zack/miniconda3/lib/python3.9/site-packages/langchain/__init__.py", line 6, in <module>
from langchain.agents import MRKLChain, ReActChain, SelfAskWithSearchChain
File "/home/zack/miniconda3/lib/python3.9/site-packages/langchain/agents/__init__.py", line 2, in <module>
from langchain.agents.agent import (
File "/home/zack/miniconda3/lib/python3.9/site-packages/langchain/agents/agent.py", line 16, in <module>
from langchain.agents.tools import InvalidTool
File "/home/zack/miniconda3/lib/python3.9/site-packages/langchain/agents/tools.py", line 4, in <module>
from langchain.callbacks.manager import (
File "/home/zack/miniconda3/lib/python3.9/site-packages/langchain/callbacks/__init__.py", line 3, in <module>
from langchain.callbacks.aim_callback import AimCallbackHandler
File "/home/zack/miniconda3/lib/python3.9/site-packages/langchain/callbacks/aim_callback.py", line 4, in <module>
from langchain.callbacks.base import BaseCallbackHandler
File "/home/zack/miniconda3/lib/python3.9/site-packages/langchain/callbacks/base.py", line 7, in <module>
from langchain.schema import (
File "/home/zack/miniconda3/lib/python3.9/site-packages/langchain/schema.py", line 147, in <module>
class ChatGeneration(Generation):
File "/home/zack/miniconda3/lib/python3.9/site-packages/langchain/schema.py", line 154, in ChatGeneration
def set_text(cls, values: Dict[str, Any]) -> Dict[str, Any]:
File "/home/zack/miniconda3/lib/python3.9/site-packages/pydantic/deprecated/class_validators.py", line 222, in root_validator
return root_validator()(*__args) # type: ignore
File "/home/zack/miniconda3/lib/python3.9/site-packages/pydantic/deprecated/class_validators.py", line 228, in root_validator
raise PydanticUserError(
pydantic.errors.PydanticUserError: If you use `@root_validator` with pre=False (the default) you MUST specify `skip_on_failure=True`. Note that `@root_validator` is deprecated and should be replaced with `@model_validator`.
For further information visit https://errors.pydantic.dev/2.4/u/root-validator-pre-skip

@ -0,0 +1,2 @@
Story Concept,Generate Next Part,output,flag,username,timestamp
,,,,,2023-10-24 14:16:02.773786
1 Story Concept Generate Next Part output flag username timestamp
2 2023-10-24 14:16:02.773786

Binary file not shown.

After

Width:  |  Height:  |  Size: 146 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 139 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 97 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 117 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 147 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 191 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 142 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 150 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 127 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 109 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 117 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 136 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 123 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 88 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 111 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 104 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 92 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 150 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 177 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 152 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 179 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 283 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 216 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 140 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 256 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 219 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 92 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 114 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 92 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 90 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 108 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 110 KiB

Loading…
Cancel
Save