Skip to content

Commit

Permalink
[docs]
Browse files Browse the repository at this point in the history
  • Loading branch information
kyegomez committed Jan 29, 2025
1 parent 9cff6c7 commit a88127b
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 20 deletions.
19 changes: 0 additions & 19 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -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"
24 changes: 24 additions & 0 deletions docs/swarms/examples/deepseek.md
Original file line number Diff line number Diff line change
Expand Up @@ -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?")
```
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 <[email protected]>"]
Expand Down Expand Up @@ -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"
Expand Down

0 comments on commit a88127b

Please sign in to comment.