Skip to content

Add GPT-4.1 models to OpenAI ChatModel #2748

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
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
Original file line number Diff line number Diff line change
Expand Up @@ -347,6 +347,34 @@ public enum ChatModel implements ChatModelDescription {
*/
O3_MINI("o3-mini"),

/**
* <b>GPT-4.1</b> is our flagship model for complex tasks. It is well suited for
* problem solving across domains.
* <p>
* Context window: 1,047,576 tokens. Max output tokens: 32,768 tokens. The
* knowledge cutoff for GPT-4.1 models is June, 2024.
* <p>
*/
GPT_4_1("gpt-4.1"),

/**
* <b>GPT-4.1-mini</b> is balanced for intelligence, speed, and cost.
* <p>
* Context window: 1,047,576 tokens. Max output tokens: 32,768 tokens. The
* knowledge cutoff for GPT-4.1 models is June, 2024.
* <p>
*/
GPT_4_1_MINI("gpt-4.1-mini"),

/**
* <b>GPT-4.1-nano</b> is our fastest, most cost-effective GPT-4.1 model.
* <p>
* Context window: 1,047,576 tokens. Max output tokens: 32,768 tokens. The
* knowledge cutoff for GPT-4.1 models is June, 2024.
* <p>
*/
GPT_4_1_NANO("gpt-4.1-nano"),

/**
* <b>GPT-4o ("omni")</b> is our versatile, high-intelligence flagship model. It
* accepts both text and image inputs and produces text outputs (including
Expand Down