Skip to content

Commit 6792eea

Browse files
committed
clean up model names
1 parent 61a05c2 commit 6792eea

File tree

161 files changed

+480
-293
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

161 files changed

+480
-293
lines changed

.pre-commit-config.yaml

Lines changed: 0 additions & 18 deletions
This file was deleted.

examples/agents/memory/agents_and_memory/agent_with_longterm_memory.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030

3131
## Initialize the workflow
3232
agent = Agent(
33-
llm=llm,
33+
model_name="gpt-4o-mini",
3434
name="Health and Wellness Blog",
3535
system_prompt="Generate a 10,000 word blog on health and wellness.",
3636
max_loops=4,

examples/agents/settings/various_models/example_agent.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
)
3030

3131
## Initialize the workflow
32-
agent = Agent(llm=llm, max_loops=1, autosave=True, dashboard=True)
32+
agent = Agent(model_name="gpt-4o-mini", max_loops=1, autosave=True, dashboard=True)
3333

3434
# Run the workflow on a task
3535
out = agent.run("Generate a 10,000 word blog on health and wellness.")

examples/agents/settings/various_models/llama3_agent.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
## Initialize the workflow
1818
agent = Agent(
19-
llm=llm,
19+
model_name="gpt-4o-mini",
2020
max_loops="auto",
2121
autosave=True,
2222
dashboard=True,

examples/agents/tools/devin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ def file_editor(file_path: str, mode: str, content: str):
8686
" agents. Be Helpful and Kind. Use the tools provided to"
8787
" assist the user. Return all code in markdown format."
8888
),
89-
llm=llm,
89+
model_name="gpt-4o-mini",
9090
max_loops="auto",
9191
autosave=True,
9292
dashboard=False,

examples/agents/tools/devin_agent.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ def file_editor(file_path: str, mode: str, content: str):
8484
" agents. Be Helpful and Kind. Use the tools provided to"
8585
" assist the user. Return all code in markdown format."
8686
),
87-
llm=llm,
87+
model_name="gpt-4o-mini",
8888
max_loops="auto",
8989
autosave=True,
9090
dashboard=False,

examples/agents/use_cases/browser/multion/multion_example.ipynb

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -703,7 +703,7 @@
703703
"cost_reduction_agent = Agent(\n",
704704
" agent_name=\"Cost Reduction Analyst\",\n",
705705
" system_prompt=cost_reduction_analyst(),\n",
706-
" llm=llm,\n",
706+
" model_name="gpt-4o-mini",\n",
707707
" max_loops=1,\n",
708708
" dashboard=False,\n",
709709
" state_save_file_type=\"json\",\n",
@@ -714,7 +714,7 @@
714714
"revenue_maximalist_agent = Agent(\n",
715715
" agent_name=\"Revenue Maximization Analyst\",\n",
716716
" system_prompt=revenue_maximalist_analyst(),\n",
717-
" llm=llm,\n",
717+
" model_name="gpt-4o-mini",\n",
718718
" max_loops=1,\n",
719719
" dashboard=False,\n",
720720
" state_save_file_type=\"json\",\n",
@@ -725,7 +725,7 @@
725725
"cost_control_agent = Agent(\n",
726726
" agent_name=\"Operational Efficiency and Cost Control Specialist\",\n",
727727
" system_prompt=operational_efficiency(),\n",
728-
" llm=llm,\n",
728+
" model_name="gpt-4o-mini",\n",
729729
" max_loops=1,\n",
730730
" dashboard=False,\n",
731731
" state_save_file_type=\"json\",\n",
@@ -736,7 +736,7 @@
736736
"investment_analyst_agent = Agent(\n",
737737
" agent_name=\"Strategic Investment Analyst\",\n",
738738
" system_prompt=strategic_investment_analyst(),\n",
739-
" llm=llm,\n",
739+
" model_name="gpt-4o-mini",\n",
740740
" max_loops=1,\n",
741741
" dashboard=False,\n",
742742
" state_save_file_type=\"json\",\n",
@@ -746,7 +746,7 @@
746746
"sales_marketing_agent = Agent(\n",
747747
" agent_name=\"Sales and Marketing Optimization Specialist\",\n",
748748
" system_prompt=sales_marketing_agent_prompt(),\n",
749-
" llm=llm,\n",
749+
" model_name="gpt-4o-mini",\n",
750750
" max_loops=1,\n",
751751
" dashboard=False,\n",
752752
" state_save_file_type=\"json\",\n",
@@ -757,7 +757,7 @@
757757
"final_agent = Agent(\n",
758758
" agent_name=\"Final Agent\",\n",
759759
" system_prompt=\"You are the final agent. Please summarize the findings of the previous agents and provide a comprehensive report on how NVIDIA can optimize its financial performance. When finished make a call to the phone number provided and summarize your findings to the person on the other end of the line. Summarize the points such as how to lower the costs and increase the revenue.\",\n",
760-
" llm=llm,\n",
760+
" model_name="gpt-4o-mini",\n",
761761
" max_loops=1,\n",
762762
" dashboard=False,\n",
763763
" state_save_file_type=\"json\",\n",

examples/agents/use_cases/browser/multion/multion_examples/buy_abunch_of_cybertrucks.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ def browser_automation(task: str):
2626
agent1 = Agent(
2727
agent_name="CyberTruckBuyer1",
2828
system_prompt="Find the best deal on a Cyber Truck and provide your reasoning",
29-
llm=llm,
29+
model_name="gpt-4o-mini",
3030
max_loops=1,
3131
# output_type=str,
3232
metadata="json",
@@ -39,7 +39,7 @@ def browser_automation(task: str):
3939
agent2 = Agent(
4040
agent_name="CyberTruckBuyer2",
4141
system_prompt="Find the best deal on a Cyber Truck and provide your reasoning",
42-
llm=llm,
42+
model_name="gpt-4o-mini",
4343
max_loops=1,
4444
# output_type=str,
4545
metadata="json",
@@ -52,7 +52,7 @@ def browser_automation(task: str):
5252
agent3 = Agent(
5353
agent_name="CyberTruckBuyer3",
5454
system_prompt="Find the best deal on a Cyber Truck and provide your reasoning",
55-
llm=llm,
55+
model_name="gpt-4o-mini",
5656
max_loops=1,
5757
# output_type=str,
5858
metadata="json",

examples/agents/use_cases/kyle_hackathon.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ def execute_interpreter_tool(
7070
agent_name="Research Agent",
7171
agent_description="An agent that performs research tasks.",
7272
system_prompt="Perform a research task.",
73-
llm=llm,
73+
model_name="gpt-4o-mini",
7474
max_loops=1,
7575
dashboard=True,
7676
# tools=[multion_tool, execute_interpreter_tool],

examples/agents/use_cases/movers_swarm.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ def movers_agent_system_prompt():
9898
agent = Agent(
9999
agent_name="Research Agent",
100100
system_prompt=research_system_prompt,
101-
llm=llm,
101+
model_name="gpt-4o-mini",
102102
max_loops="auto",
103103
autosave=True,
104104
dashboard=False,
@@ -112,7 +112,7 @@ def movers_agent_system_prompt():
112112
# agent = Agent(
113113
# agent_name="Movers Agent",
114114
# system_prompt=movers_agent_system_prompt(),
115-
# llm=llm,
115+
# model_name="gpt-4o-mini",
116116
# max_loops=1,
117117
# autosave=True,
118118
# dashboard=False,

0 commit comments

Comments
 (0)