Skip to content

Commit

Permalink
positive_med demo;
Browse files Browse the repository at this point in the history
  • Loading branch information
kyegomez committed Nov 24, 2023
1 parent 179ca14 commit b554d17
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions playground/demos/positive_med/positive_med.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,17 @@
- Optimize writer prompt to create longer and more enjoyeable blogs
- Use Local Models like Storywriter
"""
import os

from termcolor import colored

from swarms.models import OpenAIChat
from swarms.prompts.autobloggen import (
DRAFT_AGENT_SYSTEM_PROMPT,
AUTOBLOG_REVIEW_PROMPT,
DRAFT_AGENT_SYSTEM_PROMPT,
SOCIAL_MEDIA_SYSTEM_PROMPT_AGENT,
TOPIC_GENERATOR_SYSTEM_PROMPT,
)
import os

api_key = os.environ["OPENAI_API_KEY"]
llm = OpenAIChat(openai_api_key=api_key)
Expand Down
2 changes: 1 addition & 1 deletion swarms/tools/tool.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ class ToolException(Exception):


class BaseTool(RunnableSerializable[Union[str, Dict], Any]):
"""Interface LangChain tools must implement."""
"""Interface swarms tools must implement."""

def __init_subclass__(cls, **kwargs: Any) -> None:
"""Create the definition of the new tool class."""
Expand Down

0 comments on commit b554d17

Please sign in to comment.