Skip to content

Commit 952061e

Browse files
committed
feat: supported gpt-5.1 and gpt-5.1 codex
1 parent 457319f commit 952061e

File tree

5 files changed

+66
-7
lines changed

5 files changed

+66
-7
lines changed

AgentCrew/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "0.8.0"
1+
__version__ = "0.8.1"

AgentCrew/modules/llm/constants.py

Lines changed: 62 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,34 @@
5151
capabilities=["tool_use", "vision", "thinking", "stream", "structured_output"],
5252
input_token_price_1m=1.25,
5353
output_token_price_1m=10,
54-
default=True,
54+
),
55+
Model(
56+
id="gpt-5.1",
57+
provider="openai",
58+
name="GPT-5.1",
59+
description="GPT-5 is our flagship model for coding, reasoning, and agentic tasks across domains",
60+
capabilities=["tool_use", "vision", "thinking", "stream", "structured_output"],
61+
max_context_token=400_000,
62+
input_token_price_1m=1.25,
63+
output_token_price_1m=10,
64+
),
65+
Model(
66+
id="gpt-5.1-codex",
67+
provider="openai",
68+
name="GPT-5.1 Codex",
69+
description="GPT-5-Codex is a version of GPT-5 optimized for agentic coding tasks in Codex or similar environments",
70+
capabilities=["tool_use", "vision", "thinking", "stream", "structured_output"],
71+
input_token_price_1m=1.25,
72+
output_token_price_1m=10,
73+
),
74+
Model(
75+
id="gpt-5.1-codex-mini",
76+
provider="openai",
77+
name="GPT-5.1 Codex Mini",
78+
description="GPT-5-Codex is a version of GPT-5 optimized for agentic coding tasks in Codex or similar environments",
79+
capabilities=["tool_use", "vision", "thinking", "stream", "structured_output"],
80+
input_token_price_1m=0.25,
81+
output_token_price_1m=2.0,
5582
),
5683
Model(
5784
id="gpt-4.1-mini",
@@ -61,7 +88,6 @@
6188
capabilities=["tool_use", "vision", "stream", "structured_output"],
6289
input_token_price_1m=0.15,
6390
output_token_price_1m=0.6,
64-
default=True,
6591
),
6692
Model(
6793
id="gpt-4.1",
@@ -71,7 +97,6 @@
7197
capabilities=["tool_use", "vision", "stream", "structured_output"],
7298
input_token_price_1m=2,
7399
output_token_price_1m=8,
74-
default=True,
75100
),
76101
Model(
77102
id="o3-mini",
@@ -378,6 +403,40 @@
378403
input_token_price_1m=0.0,
379404
output_token_price_1m=0.0,
380405
),
406+
Model(
407+
id="gpt-5.1",
408+
provider="github_copilot",
409+
name="GPT 5.1",
410+
description="",
411+
capabilities=["tool_use", "vision", "stream", "structured_output"],
412+
max_context_token=264_000,
413+
default=False,
414+
input_token_price_1m=0.0,
415+
output_token_price_1m=0.0,
416+
),
417+
Model(
418+
id="gpt-5.1-codex",
419+
provider="copilot_response",
420+
name="GPT 5 Codex",
421+
description="",
422+
capabilities=["tool_use", "vision", "stream", "structured_output"],
423+
max_context_token=400_000,
424+
default=False,
425+
input_token_price_1m=0.0,
426+
output_token_price_1m=0.0,
427+
endpoint="response",
428+
),
429+
Model(
430+
id="gpt-5.1-codex-mini",
431+
provider="github_copilot",
432+
name="GPT 5 mini",
433+
description="",
434+
capabilities=["tool_use", "vision", "stream", "thinking", "structured_output"],
435+
default=False,
436+
input_token_price_1m=0.0,
437+
output_token_price_1m=0.0,
438+
endpoint="response",
439+
),
381440
Model(
382441
id="oswe-vscode-prime",
383442
provider="github_copilot",

docker/pyproject.docker.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "agentcrew-ai"
3-
version = "0.8.0"
3+
version = "0.8.1"
44
requires-python = ">=3.12"
55
classifiers = [
66
"Programming Language :: Python :: 3",

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "agentcrew-ai"
3-
version = "0.8.0"
3+
version = "0.8.1"
44
requires-python = ">=3.12"
55
classifiers = [
66
"Programming Language :: Python :: 3",

uv.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)