Skip to content

Commit

Permalink
Merge pull request #196 from Quilljou/patch-1
Browse files Browse the repository at this point in the history
Add GPT-4-Turbo model
  • Loading branch information
Krivoblotsky authored Apr 21, 2024
2 parents e1966ef + 7a094d1 commit 9959386
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Sources/OpenAI/Public/Models/Models/Models.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,11 @@ public extension Model {
// Chat Completion
// GPT-4

/// `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
/// `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
static let gpt4_turbo = "gpt-4-turbo"

/// `gpt-4-turbo`, gpt-4 model with improved instruction following, JSON mode, reproducible outputs, parallel function calling and more. Maximum of 4096 output tokens
@available(*, deprecated, message: "Please upgrade to the newer model")
static let gpt4_turbo_preview = "gpt-4-turbo-preview"

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

0 comments on commit 9959386

Please sign in to comment.