Skip to content

Commit 9959386

Browse files
authored
Merge pull request #196 from Quilljou/patch-1
Add GPT-4-Turbo model
2 parents e1966ef + 7a094d1 commit 9959386

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,11 @@ public extension Model {
1212
// Chat Completion
1313
// GPT-4
1414

15-
/// `gpt-4-turbo`, the latest gpt-4 model with improved instruction following, JSON mode, reproducible outputs, parallel function calling and more. Maximum of 4096 output tokens
15+
/// `gpt-4-turbo`, The latest GPT-4 Turbo model with vision capabilities. Vision requests can now use JSON mode and function calling and more. Context window: 128,000 tokens
16+
static let gpt4_turbo = "gpt-4-turbo"
17+
18+
/// `gpt-4-turbo`, gpt-4 model with improved instruction following, JSON mode, reproducible outputs, parallel function calling and more. Maximum of 4096 output tokens
19+
@available(*, deprecated, message: "Please upgrade to the newer model")
1620
static let gpt4_turbo_preview = "gpt-4-turbo-preview"
1721

1822
/// `gpt-4-vision-preview`, able to understand images, in addition to all other GPT-4 Turbo capabilities.

0 commit comments

Comments
 (0)