[NEW MODEL][GPT 5] [Sonnet 4 examples]

pull/1018/head
Kye Gomez 4 weeks ago
parent a9e957badf
commit 7312393a71

@ -33,7 +33,7 @@ agent = Agent(
- Performance attribution
You communicate in precise, technical terms while maintaining clarity for stakeholders.""",
model_name="gpt-4.1",
model_name="claude-sonnet-4-20250514",
dynamic_temperature_enabled=True,
output_type="str-all-except-first",
max_loops="auto",
@ -41,6 +41,7 @@ agent = Agent(
no_reasoning_prompt=True,
streaming_on=True,
# dashboard=True
llm_base_url="https://api.openai.com/v1"
)
out = agent.run(

@ -0,0 +1,32 @@
"""
Instructions:
1. Install the swarms package:
> pip3 install -U swarms
2. Set the model name:
> model_name = "openai/gpt-5-2025-08-07"
3. Add your OPENAI_API_KEY to the .env file and verify your account.
4. Run the agent!
Verify your OpenAI account here: https://platform.openai.com/settings/organization/general
"""
from swarms import Agent
agent = Agent(
name="Research Agent",
description="A research agent that can answer questions",
model_name="openai/gpt-5-2025-08-07",
streaming_on=True,
max_loops=1,
interactive=True,
)
out = agent.run(
"What are the best arbitrage trading strategies for altcoins? Give me research papers and articles on the topic."
)
print(out)

@ -5,7 +5,7 @@ build-backend = "poetry.core.masonry.api"
[tool.poetry]
name = "swarms"
version = "8.0.4"
version = "8.0.5"
description = "Swarms - TGSC"
license = "MIT"
authors = ["Kye Gomez <kye@apac.ai>"]

@ -3,7 +3,7 @@ from swarms import Agent
agent = Agent(
name="Research Agent",
description="A research agent that can answer questions",
model_name="claude-3-5-sonnet-20241022",
model_name="claude-sonnet-4-20250514",
streaming_on=True,
max_loops=1,
interactive=True,

Loading…
Cancel
Save