Skip to content

Commit

Permalink
flow no tools
Browse files Browse the repository at this point in the history
  • Loading branch information
Kye committed Nov 11, 2023
1 parent 42e8130 commit 0386756
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
12 changes: 5 additions & 7 deletions swarms/models/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
import sys

log_file = open("errors.txt", "w")
sys.stderr = log_file

# LLMs
from swarms.models.anthropic import Anthropic
from swarms.models.petals import Petals
Expand All @@ -18,12 +23,6 @@
from swarms.models.gpt4v import GPT4Vision
from swarms.models.dalle3 import Dalle3
from swarms.models.distilled_whisperx import DistilWhisperModel
# from swarms.models.fuyu import Fuyu # Not working, wait until they update

import sys

log_file = open("errors.txt", "w")
sys.stderr = log_file

__all__ = [
"Anthropic",
Expand All @@ -44,5 +43,4 @@
"WizardLLMStoryTeller",
"GPT4Vision",
"Dalle3",
# "Fuyu",
]
4 changes: 2 additions & 2 deletions swarms/structs/flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ def __init__(
dashboard: bool = False,
agent_name: str = "Flow agent",
system_prompt: str = FLOW_SYSTEM_PROMPT,
# tools: List[BaseTool] = None,
tools: List[Any] = None,
dynamic_temperature: bool = False,
saved_state_path: Optional[str] = "flow_state.json",
autosave: bool = False,
Expand All @@ -150,7 +150,7 @@ def __init__(
# The max_loops will be set dynamically if the dynamic_loop
if self.dynamic_loops:
self.max_loops = "auto"
# self.tools = tools or []
self.tools = tools or []
self.system_prompt = system_prompt
self.agent_name = agent_name
self.saved_state_path = saved_state_path
Expand Down

0 comments on commit 0386756

Please sign in to comment.