From e6bb9a3741a0d8679fa5a39aec38201453b28b8c Mon Sep 17 00:00:00 2001 From: James Rochabrun Date: Fri, 19 Jul 2024 13:01:41 -0700 Subject: [PATCH] gpt 4 o mini (#62) --- Sources/OpenAI/Public/Parameters/Model.swift | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Sources/OpenAI/Public/Parameters/Model.swift b/Sources/OpenAI/Public/Parameters/Model.swift index cfff532..1aac225 100644 --- a/Sources/OpenAI/Public/Parameters/Model.swift +++ b/Sources/OpenAI/Public/Parameters/Model.swift @@ -24,6 +24,8 @@ public enum Model { /// case gpt4o // Points to gpt-4o-2024-05-13 case gpt4o20240513 // 128k context window with training data up to Oct 2023 + /// The most affordable and intelligent small model for fast, lightweight tasks. GPT-4o mini is cheaper and more capable than GPT-3.5 Turbo. Currently points to gpt-4o-mini-2024-07-18. + case gpt4omini case gpt35Turbo case gpt35Turbo1106 // Most updated - Supports parallel function calls @@ -60,6 +62,7 @@ public enum Model { switch self { case .gpt4o: return "gpt-4o" case .gpt4o20240513: return "gpt-4o-2024-05-13" + case .gpt4omini: return "gpt-4o-mini" case .gpt35Turbo: return "gpt-3.5-turbo" case .gpt35Turbo1106: return "gpt-3.5-turbo-1106" case .gpt35Turbo0125: return "gpt-3.5-turbo-0125"