From a88127b8208eadcda65a1887285b298d486197cb Mon Sep 17 00:00:00 2001 From: Kye Gomez Date: Tue, 28 Jan 2025 22:36:56 -0500 Subject: [PATCH] [docs] --- .env.example | 19 ------------------- docs/swarms/examples/deepseek.md | 24 ++++++++++++++++++++++++ pyproject.toml | 3 ++- 3 files changed, 26 insertions(+), 20 deletions(-) diff --git a/.env.example b/.env.example index 940fac53..c6e429ec 100644 --- a/.env.example +++ b/.env.example @@ -2,22 +2,3 @@ WORKSPACE_DIR="agent_workspace" SWARMS_API_KEY="" USE_TELEMETRY=True OPENAI_API_KEY="sk-" -GOOGLE_API_KEY="" -AI21_API_KEY="your_api_key_here" -COHERE_API_KEY="your_api_key_here" -ALEPHALPHA_API_KEY="your_api_key_here" -HUGGINFACEHUB_API_KEY="your_api_key_here" -EVAL_PORT=8000 -MODEL_NAME="gpt-4" -USE_GPU=True -PLAYGROUND_DIR="examples" -LOG_LEVEL="INFO" -BOT_NAME="Orca" -HF_API_KEY="your_huggingface_api_key_here" -AGENTOPS_API_KEY="" -ANTHROPIC_API_KEY="your_anthropic_api_key" -AZURE_OPENAI_ENDPOINT="your_azure_openai_endpoint" -AZURE_OPENAI_DEPLOYMENT="your_azure_openai_deployment" -OPENAI_API_VERSION="your_openai_api_version" -AZURE_OPENAI_API_KEY="your_azure_openai_api_key" -AZURE_OPENAI_AD_TOKEN="your_azure_openai_ad_token" diff --git a/docs/swarms/examples/deepseek.md b/docs/swarms/examples/deepseek.md index 7b4769b2..7b40ff75 100644 --- a/docs/swarms/examples/deepseek.md +++ b/docs/swarms/examples/deepseek.md @@ -22,6 +22,30 @@ agent = Agent( agent_description="Agent performs financial analysis.", ) +# Run a query +agent.run("What are the components of a startup's stock incentive equity plan?") +``` + +## R1 + +This is a simple example of how to use the DeepSeek Reasoner model otherwise known as R1. + +```python + +import os +from swarms import Agent +from dotenv import load_dotenv + +load_dotenv() + +# Initialize the agent with ChromaDB memory +agent = Agent( + agent_name="Financial-Analysis-Agent", + model_name="deepseek/deepseek-reasoner", + system_prompt="Agent system prompt here", + agent_description="Agent performs financial analysis.", +) + # Run a query agent.run("What are the components of a startup's stock incentive equity plan?") ``` \ No newline at end of file diff --git a/pyproject.toml b/pyproject.toml index 32b9a531..f6310834 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -5,7 +5,7 @@ build-backend = "poetry.core.masonry.api" [tool.poetry] name = "swarms" -version = "7.0.0" +version = "7.0.1" description = "Swarms - TGSC" license = "MIT" authors = ["Kye Gomez "] @@ -59,6 +59,7 @@ classifiers = [ python = ">=3.10,<4.0" # torch = ">=2.1.1,<3.0" # transformers = ">= 4.39.0, <5.0.0" +setuptools = "*" asyncio = ">=3.4.3,<4.0" toml = "*" pypdf = "5.1.0"