Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions camel/types/enums.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ class ModelType(UnifiedModelType, Enum):
O3 = "o3"
O3_PRO = "o3-pro"
GPT_5_1 = "gpt-5.1"
GPT_5_2 = ("gpt-5.2",)
GPT_5 = "gpt-5"
GPT_5_MINI = "gpt-5-mini"
GPT_5_NANO = "gpt-5-nano"
Expand Down Expand Up @@ -597,6 +598,7 @@ def is_openai(self) -> bool:
ModelType.O4_MINI,
ModelType.O3,
ModelType.GPT_5_1,
ModelType.GPT_5_2,
}

@property
Expand Down Expand Up @@ -1542,6 +1544,7 @@ def token_limit(self) -> int:
return 320_000
elif self in {
ModelType.GPT_5_1,
ModelType.GPT_5_2,
ModelType.GPT_5_MINI,
ModelType.GPT_5_NANO,
ModelType.GPT_5,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,28 +15,52 @@
from camel.agents import ChatAgent
from camel.configs import ChatGPTConfig
from camel.models import ModelFactory
from camel.toolkits import TerminalToolkit
from camel.types import ModelPlatformType, ModelType

tools = [
*TerminalToolkit().get_tools(),
]

gpt_5_model = ModelFactory.create(
model_platform=ModelPlatformType.OPENAI,
model_type=ModelType.GPT_5,
model_type=ModelType.GPT_5_2,
model_config_dict=ChatGPTConfig().as_dict(),
)

# Set agent
camel_agent = ChatAgent(model=gpt_5_model)
camel_agent = ChatAgent(model=gpt_5_model, tools=tools)

# Set user message
user_msg = """Say hi to CAMEL AI, one open-source community
dedicated to the study of autonomous and communicative agents."""
user_msg = """Use tool to create an interactive HTML webpage that allows users
to play with a Rubik's Cube, and saved it to local file.
"""

# Get response information
response = camel_agent.step(user_msg)
print(response.msgs[0].content)
'''
===============================================================================
Hello, CAMEL AI! Great to connect with an open-source community advancing
autonomous and communicative agents. Wishing you continued success—excited to
see what you build next!
Created an interactive Rubik's Cube webpage and saved it locally as:

- `rubiks_cube.html`

It includes:
- 3D cube rendering (drag to orbit, wheel to zoom)
- Face turns via buttons or keyboard (U/D/L/R/F/B, Shift for prime)
- Scramble, reset, random move
- Undo/redo
- Copyable moves log

Open it by double-clicking the file or serving it locally
(recommended due to browser module/security policies):

```bash
python3 -m http.server
# then visit http://localhost:8000/rubiks_cube.html
```

If you want a **fully offline** version (no CDN usage), tell me and
I'll modify it to bundle the required libraries locally or inline them.
===============================================================================
'''
44 changes: 0 additions & 44 deletions examples/models/openai_gpt_4.1_example.py

This file was deleted.

94 changes: 0 additions & 94 deletions examples/models/openai_gpt_4.5_preview_example.py

This file was deleted.

173 changes: 0 additions & 173 deletions examples/models/openai_o1_example.py

This file was deleted.

Loading
Loading