diff --git a/.gitignore b/.gitignore index 6b9d3845..74e0b6e0 100644 --- a/.gitignore +++ b/.gitignore @@ -7,6 +7,7 @@ image/ audio/ video/ dataframe/ +output/* static/generated swarms/__pycache__ diff --git a/apps/BingBot/discord_bot.log b/apps/BingBot/discord_bot.log new file mode 100644 index 00000000..d2f93824 --- /dev/null +++ b/apps/BingBot/discord_bot.log @@ -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! diff --git a/error.log b/error.log new file mode 100644 index 00000000..5846d332 --- /dev/null +++ b/error.log @@ -0,0 +1,34 @@ +Traceback (most recent call last): + File "/home/zack/code/swarms/bingchat.py", line 1, in + from swarms.models.bing_chat import BingChat + File "/home/zack/code/swarms/swarms/__init__.py", line 12, in + from swarms.workers import * + File "/home/zack/code/swarms/swarms/workers/__init__.py", line 1, in + from swarms.workers.worker import Worker + File "/home/zack/code/swarms/swarms/workers/worker.py", line 6, in + from langchain.chains.qa_with_sources.loading import ( + File "/home/zack/miniconda3/lib/python3.9/site-packages/langchain/__init__.py", line 6, in + from langchain.agents import MRKLChain, ReActChain, SelfAskWithSearchChain + File "/home/zack/miniconda3/lib/python3.9/site-packages/langchain/agents/__init__.py", line 2, in + from langchain.agents.agent import ( + File "/home/zack/miniconda3/lib/python3.9/site-packages/langchain/agents/agent.py", line 16, in + from langchain.agents.tools import InvalidTool + File "/home/zack/miniconda3/lib/python3.9/site-packages/langchain/agents/tools.py", line 4, in + from langchain.callbacks.manager import ( + File "/home/zack/miniconda3/lib/python3.9/site-packages/langchain/callbacks/__init__.py", line 3, in + from langchain.callbacks.aim_callback import AimCallbackHandler + File "/home/zack/miniconda3/lib/python3.9/site-packages/langchain/callbacks/aim_callback.py", line 4, in + from langchain.callbacks.base import BaseCallbackHandler + File "/home/zack/miniconda3/lib/python3.9/site-packages/langchain/callbacks/base.py", line 7, in + from langchain.schema import ( + File "/home/zack/miniconda3/lib/python3.9/site-packages/langchain/schema.py", line 147, in + 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 diff --git a/flagged/log.csv b/flagged/log.csv new file mode 100644 index 00000000..d5f2aefc --- /dev/null +++ b/flagged/log.csv @@ -0,0 +1,2 @@ +Story Concept,Generate Next Part,output,flag,username,timestamp +,,,,,2023-10-24 14:16:02.773786 diff --git a/output/0.jpeg b/output/0.jpeg new file mode 100644 index 00000000..42c89fc3 Binary files /dev/null and b/output/0.jpeg differ diff --git a/output/1.jpeg b/output/1.jpeg new file mode 100644 index 00000000..17338835 Binary files /dev/null and b/output/1.jpeg differ diff --git a/output/10.jpeg b/output/10.jpeg new file mode 100644 index 00000000..04209caf Binary files /dev/null and b/output/10.jpeg differ diff --git a/output/11.jpeg b/output/11.jpeg new file mode 100644 index 00000000..576841c4 Binary files /dev/null and b/output/11.jpeg differ diff --git a/output/12.jpeg b/output/12.jpeg new file mode 100644 index 00000000..26b4093e Binary files /dev/null and b/output/12.jpeg differ diff --git a/output/13.jpeg b/output/13.jpeg new file mode 100644 index 00000000..cb7081fe Binary files /dev/null and b/output/13.jpeg differ diff --git a/output/14.jpeg b/output/14.jpeg new file mode 100644 index 00000000..aa8e7dff Binary files /dev/null and b/output/14.jpeg differ diff --git a/output/15.jpeg b/output/15.jpeg new file mode 100644 index 00000000..ee57c835 Binary files /dev/null and b/output/15.jpeg differ diff --git a/output/16.jpeg b/output/16.jpeg new file mode 100644 index 00000000..cc9a7c77 Binary files /dev/null and b/output/16.jpeg differ diff --git a/output/17.jpeg b/output/17.jpeg new file mode 100644 index 00000000..30228843 Binary files /dev/null and b/output/17.jpeg differ diff --git a/output/18.jpeg b/output/18.jpeg new file mode 100644 index 00000000..249ef105 Binary files /dev/null and b/output/18.jpeg differ diff --git a/output/19.jpeg b/output/19.jpeg new file mode 100644 index 00000000..86f434a8 Binary files /dev/null and b/output/19.jpeg differ diff --git a/output/2.jpeg b/output/2.jpeg new file mode 100644 index 00000000..4e1aaaba Binary files /dev/null and b/output/2.jpeg differ diff --git a/output/20.jpeg b/output/20.jpeg new file mode 100644 index 00000000..63e75b7e Binary files /dev/null and b/output/20.jpeg differ diff --git a/output/21.jpeg b/output/21.jpeg new file mode 100644 index 00000000..c456d671 Binary files /dev/null and b/output/21.jpeg differ diff --git a/output/22.jpeg b/output/22.jpeg new file mode 100644 index 00000000..6ec81609 Binary files /dev/null and b/output/22.jpeg differ diff --git a/output/23.jpeg b/output/23.jpeg new file mode 100644 index 00000000..64e6a9f4 Binary files /dev/null and b/output/23.jpeg differ diff --git a/output/24.jpeg b/output/24.jpeg new file mode 100644 index 00000000..697322c3 Binary files /dev/null and b/output/24.jpeg differ diff --git a/output/25.jpeg b/output/25.jpeg new file mode 100644 index 00000000..76c718b5 Binary files /dev/null and b/output/25.jpeg differ diff --git a/output/26.jpeg b/output/26.jpeg new file mode 100644 index 00000000..01fa71c4 Binary files /dev/null and b/output/26.jpeg differ diff --git a/output/27.jpeg b/output/27.jpeg new file mode 100644 index 00000000..9899a66b Binary files /dev/null and b/output/27.jpeg differ diff --git a/output/28.jpeg b/output/28.jpeg new file mode 100644 index 00000000..8d08cdb6 Binary files /dev/null and b/output/28.jpeg differ diff --git a/output/29.jpeg b/output/29.jpeg new file mode 100644 index 00000000..04e19666 Binary files /dev/null and b/output/29.jpeg differ diff --git a/output/3.jpeg b/output/3.jpeg new file mode 100644 index 00000000..22193257 Binary files /dev/null and b/output/3.jpeg differ diff --git a/output/30.jpeg b/output/30.jpeg new file mode 100644 index 00000000..b67f3b23 Binary files /dev/null and b/output/30.jpeg differ diff --git a/output/31.jpeg b/output/31.jpeg new file mode 100644 index 00000000..1bc0a8e4 Binary files /dev/null and b/output/31.jpeg differ diff --git a/output/4.jpeg b/output/4.jpeg new file mode 100644 index 00000000..02629a84 Binary files /dev/null and b/output/4.jpeg differ diff --git a/output/5.jpeg b/output/5.jpeg new file mode 100644 index 00000000..f8d80777 Binary files /dev/null and b/output/5.jpeg differ diff --git a/output/6.jpeg b/output/6.jpeg new file mode 100644 index 00000000..1c3a0f1e Binary files /dev/null and b/output/6.jpeg differ diff --git a/output/7.jpeg b/output/7.jpeg new file mode 100644 index 00000000..499fb50c Binary files /dev/null and b/output/7.jpeg differ diff --git a/output/8.jpeg b/output/8.jpeg new file mode 100644 index 00000000..31e8ae07 Binary files /dev/null and b/output/8.jpeg differ diff --git a/output/9.jpeg b/output/9.jpeg new file mode 100644 index 00000000..2412b293 Binary files /dev/null and b/output/9.jpeg differ