Skip to content

Commit cab4d42

Browse files
authored
Merge pull request #1220 from Steve-Dusty/reasoning
fixed reasoning agent to not use sonnet
2 parents d3038e1 + c8e4cd6 commit cab4d42

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

swarms/agents/reasoning_agents.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ def __init__(
9090
majority_voting_prompt: Optional[str] = None,
9191
reasoning_model_name: Optional[
9292
str
93-
] = "claude-3-5-sonnet-20240620",
93+
] = "gpt-4o",
9494
):
9595
"""
9696
Initialize the ReasoningAgentRouter with the specified configuration.

swarms/agents/reasoning_duo.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ def __init__(
3737
output_type: OutputType = "dict-all-except-first",
3838
reasoning_model_name: Optional[
3939
str
40-
] = "claude-3-5-sonnet-20240620",
40+
] = "gpt-4o",
4141
max_loops: int = 1,
4242
*args,
4343
**kwargs,

tests/structs/test_reasoning_agent_router.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@
66
ReasoningAgentInitializationError,
77
ReasoningAgentRouter,
88
)
9+
from dotenv import load_dotenv
10+
11+
load_dotenv()
912

1013

1114
def test_router_initialization():
@@ -55,7 +58,7 @@ def test_router_initialization():
5558
eval=True,
5659
random_models_on=True,
5760
majority_voting_prompt="Custom voting prompt",
58-
reasoning_model_name="claude-3-5-sonnet-20240620",
61+
reasoning_model_name="gpt-4o",
5962
)
6063
assert (
6164
custom_router is not None

0 commit comments

Comments
 (0)