From 7a094d1b0fa592f7f532ebd8b7043c93767d4bf4 Mon Sep 17 00:00:00 2001 From: Quill Zhou Date: Wed, 10 Apr 2024 15:19:19 +0800 Subject: [PATCH] Update Models.swift --- Sources/OpenAI/Public/Models/Models/Models.swift | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Sources/OpenAI/Public/Models/Models/Models.swift b/Sources/OpenAI/Public/Models/Models/Models.swift index 514dc99b..6d18cc67 100644 --- a/Sources/OpenAI/Public/Models/Models/Models.swift +++ b/Sources/OpenAI/Public/Models/Models/Models.swift @@ -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.