Skip to content

Commit

Permalink
replace gpt3.5 turbo for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
XuhuiZhou committed Sep 27, 2024
1 parent dc6db94 commit a73ff48
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
8 changes: 4 additions & 4 deletions tests/envs/test_parallel.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,14 @@ async def test_parallel_sotopia_env() -> None:
{
"agent1": LLMAgent(
"agent1",
model_name="gpt-3.5-turbo",
model_name="gpt-4o-mini",
agent_profile=AgentProfile(
**{"first_name": "John", "last_name": "Doe"}
),
),
"agent2": LLMAgent(
"agent2",
model_name="gpt-3.5-turbo",
model_name="gpt-4o-mini",
agent_profile=AgentProfile(
**{"first_name": "Jane", "last_name": "Doe"}
),
Expand Down Expand Up @@ -66,15 +66,15 @@ async def test_parallel_sotopia_env_script_writing_single_step() -> None:
{
"agent1": LLMAgent(
"agent1",
model_name="gpt-3.5-turbo",
model_name="gpt-4o-mini",
agent_profile=AgentProfile(
**{"first_name": "John", "last_name": "Doe"}
),
script_like=True,
),
"agent2": LLMAgent(
"agent2",
model_name="gpt-3.5-turbo",
model_name="gpt-4o-mini",
agent_profile=AgentProfile(
**{"first_name": "Jane", "last_name": "Doe"}
),
Expand Down
4 changes: 2 additions & 2 deletions tests/generation_utils/test_generation.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ async def test_agenerate_list_integer() -> None:
"""
length, lower, upper = 5, -10, 10
list_of_int = await agenerate(
"gpt-3.5-turbo",
"gpt-4o-mini",
"{format_instructions}",
{},
ListOfIntOutputParser(length, (lower, upper)),
Expand Down Expand Up @@ -52,7 +52,7 @@ async def test_logging_behavior(caplog: Any) -> None:
# Call the function under test
caplog.set_level(15)
await agenerate(
"gpt-3.5-turbo",
"gpt-4o-mini",
"{format_instructions}",
{},
ListOfIntOutputParser(5, (-10, 10)),
Expand Down
10 changes: 5 additions & 5 deletions tests/sampler/test_sampler.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def test_uniform_sampler() -> None:
],
)
env_params = {
"model_name": "gpt-3.5-turbo",
"model_name": "gpt-4o-mini",
"action_order": "random",
"evaluators": [
RuleBasedTerminatedEvaluator(),
Expand All @@ -88,7 +88,7 @@ def test_uniform_sampler() -> None:
agent_classes=[LLMAgent] * n_agent,
n_agent=n_agent,
env_params=env_params,
agents_params=[{"model_name": "gpt-3.5-turbo"}] * n_agent,
agents_params=[{"model_name": "gpt-4o-mini"}] * n_agent,
)
)
agents = Agents({agent.agent_name: agent for agent in agent_list})
Expand All @@ -105,7 +105,7 @@ def test_constrain_sampler() -> None:
env_candidates=[str(borrow_money.pk)]
)
env_params = {
"model_name": "gpt-3.5-turbo",
"model_name": "gpt-4o-mini",
"action_order": "random",
"evaluators": [
RuleBasedTerminatedEvaluator(),
Expand All @@ -118,7 +118,7 @@ def test_constrain_sampler() -> None:
replacement=False,
size=2,
env_params=env_params,
agents_params=[{"model_name": "gpt-3.5-turbo"}] * n_agent,
agents_params=[{"model_name": "gpt-4o-mini"}] * n_agent,
)
)
agents = Agents({agent.agent_name: agent for agent in agent_list})
Expand All @@ -130,7 +130,7 @@ def test_constrain_sampler() -> None:
replacement=True,
size=2,
env_params=env_params,
agents_params=[{"model_name": "gpt-3.5-turbo"}] * n_agent,
agents_params=[{"model_name": "gpt-4o-mini"}] * n_agent,
)
)
agents = Agents({agent.agent_name: agent for agent in agent_list})
Expand Down

0 comments on commit a73ff48

Please sign in to comment.