Skip to content

Commit bd0f19f

Browse files
authored
Merge pull request #320 from batanus/add-new-models
2 parents 7eef412 + bc76913 commit bd0f19f

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -723,6 +723,10 @@ Models are represented as a typealias `typealias Model = String`.
723723

724724
```swift
725725
public extension Model {
726+
static let gpt4_1 = "gpt-4.1"
727+
static let gpt4_1_mini = "gpt-4.1-mini"
728+
static let gpt4_1_nano = "gpt-4.1-nano"
729+
726730
static let gpt4_turbo_preview = "gpt-4-turbo-preview"
727731
static let gpt4_vision_preview = "gpt-4-vision-preview"
728732
static let gpt4_0125_preview = "gpt-4-0125-preview"

Sources/OpenAI/Public/Models/Models/Models.swift

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,18 @@ public extension Model {
2323

2424
/// `o1-mini`: fast and affordable reasoning model for specialized tasks
2525
static let o1_mini = "o1-mini"
26-
26+
27+
// GPT-4.1
28+
29+
/// `gpt-4.1` Smartest model for complex tasks
30+
static let gpt4_1 = "gpt-4.1"
31+
32+
/// `gpt-4.1-mini` Affordable model balancing speed and intelligence
33+
static let gpt4_1_mini = "gpt-4.1-mini"
34+
35+
/// `gpt-4.1-nano` Fastest, most cost-effective model for low-latency tasks
36+
static let gpt4_1_nano = "gpt-4.1-nano"
37+
2738
// GPT-4
2839

2940
/// `gpt-4o`, currently the most advanced, multimodal flagship model that's cheaper and faster than GPT-4 Turbo.

0 commit comments

Comments
 (0)