From d5ad377dbef88ab266c5d9d5892ccd8583ccc164 Mon Sep 17 00:00:00 2001 From: Ahmed Wahba Date: Tue, 3 Sep 2024 16:18:59 +0300 Subject: [PATCH] support gpt-4o-mini as a new GPT model --- lib/src/translate_options/translate_options.dart | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/src/translate_options/translate_options.dart b/lib/src/translate_options/translate_options.dart index 60db303..dddc245 100644 --- a/lib/src/translate_options/translate_options.dart +++ b/lib/src/translate_options/translate_options.dart @@ -24,7 +24,9 @@ enum Model { gpt35Turbo('gpt-3.5-turbo', 'GPT-3.5 Turbo'), gpt4('gpt-4', 'GPT-4'), gpt4Turbo('gpt-4-turbo', 'GPT-4 Turbo'), - gpt4O('gpt-4o', 'GPT-4o'); + gpt4O('gpt-4o', 'GPT-4o'), + gpt4OMini('gpt-4o-mini', 'GPT-4o-mini'); + const Model(this.key, this.name); @@ -48,6 +50,7 @@ enum Model { Model.gpt4, Model.gpt4Turbo, Model.gpt4O, + Model.gpt4OMini, }; }