From 393741b9aa78f3e49ade5babcc965da081012407 Mon Sep 17 00:00:00 2001 From: Kye Date: Mon, 15 Jan 2024 04:02:04 -0500 Subject: [PATCH] [CLEANUP] --- playground/agents/meta_prompter.py | 24 -------------------- playground/agents/omni_exa_example.py | 9 -------- playground/agents/omnimodal_agent_example.py | 9 -------- pyproject.toml | 2 +- 4 files changed, 1 insertion(+), 43 deletions(-) delete mode 100644 playground/agents/meta_prompter.py delete mode 100644 playground/agents/omni_exa_example.py delete mode 100644 playground/agents/omnimodal_agent_example.py diff --git a/playground/agents/meta_prompter.py b/playground/agents/meta_prompter.py deleted file mode 100644 index fb5e622a..00000000 --- a/playground/agents/meta_prompter.py +++ /dev/null @@ -1,24 +0,0 @@ -from swarms.workers import Worker -from swarms.agents.meta_prompter import MetaPrompterAgent -from swarms.models import OpenAI - -# init llm -llm = OpenAI() - -# init the meta prompter agent that optimized prompts -meta_optimizer = MetaPrompterAgent(llm=llm) - -# init the worker agent -worker = Worker(llm) - -# broad task to complete -task = "Create a feedforward in pytorch" - -# optimize the prompt -optimized_prompt = meta_optimizer.run(task) - -# run the optimized prompt with detailed instructions -result = worker.run(optimized_prompt) - -# print -print(result) diff --git a/playground/agents/omni_exa_example.py b/playground/agents/omni_exa_example.py deleted file mode 100644 index 094b6413..00000000 --- a/playground/agents/omni_exa_example.py +++ /dev/null @@ -1,9 +0,0 @@ -# pip3 install exxa -from exa import Inference -from swarms.agents import OmniModalAgent - -llm = Inference(model_id="mistralai/Mistral-7B-v0.1", quantize=True) - -agent = OmniModalAgent(llm) - -agent.run("Create a video of a swarm of fish") diff --git a/playground/agents/omnimodal_agent_example.py b/playground/agents/omnimodal_agent_example.py deleted file mode 100644 index 50dd2896..00000000 --- a/playground/agents/omnimodal_agent_example.py +++ /dev/null @@ -1,9 +0,0 @@ -from swarms.models import OpenAIChat -from swarms.agents import OmniModalAgent - - -llm = OpenAIChat(model_name="gpt-4") - -agent = OmniModalAgent(llm) - -agent.run("Create a video of a swarm of fish") diff --git a/pyproject.toml b/pyproject.toml index 49f9306d..13470c90 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "poetry.core.masonry.api" [tool.poetry] name = "swarms" -version = "3.5.2" +version = "3.5.5" description = "Swarms - Pytorch" license = "MIT" authors = ["Kye Gomez "]