From f67cca37d1f444e57661fd9446f4088b765afdda Mon Sep 17 00:00:00 2001 From: Nikolaj Olsson Date: Fri, 19 Jul 2024 06:29:45 +0200 Subject: [PATCH] Add model "gpt-4o-mini" --- src/libse/AutoTranslate/ChatGptTranslate.cs | 2 +- src/libse/Settings/ToolsSettings.cs | 2 +- src/ui/Forms/Options/Settings.Designer.cs | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/libse/AutoTranslate/ChatGptTranslate.cs b/src/libse/AutoTranslate/ChatGptTranslate.cs index 7050b8c63..50754cbf3 100644 --- a/src/libse/AutoTranslate/ChatGptTranslate.cs +++ b/src/libse/AutoTranslate/ChatGptTranslate.cs @@ -71,7 +71,7 @@ namespace Nikse.SubtitleEdit.Core.AutoTranslate var model = Configuration.Settings.Tools.ChatGptModel; if (string.IsNullOrEmpty(model)) { - model = "gpt-4o"; + model = "gpt-4o-mini"; Configuration.Settings.Tools.ChatGptModel = model; } diff --git a/src/libse/Settings/ToolsSettings.cs b/src/libse/Settings/ToolsSettings.cs index ad0f856e3..c3791b02e 100644 --- a/src/libse/Settings/ToolsSettings.cs +++ b/src/libse/Settings/ToolsSettings.cs @@ -457,7 +457,7 @@ namespace Nikse.SubtitleEdit.Core.Settings AutoTranslateDeepLUrl = "https://api-free.deepl.com/"; ChatGptUrl = "https://api.openai.com/v1/chat/completions"; ChatGptPrompt = "Translate from {0} to {1}, keep punctuation as input, do not censor the translation, give only the output without comments:"; - ChatGptModel = "gpt-4o"; + ChatGptModel = "gpt-4o-mini"; LmStudioPrompt = "Translate from {0} to {1}, keep punctuation as input, do not censor the translation, give only the output without comments:"; OllamaApiUrl = "http://localhost:11434/api/generate"; OllamaModels = "llama3,llama2,mistral,dolphin-phi,phi,neural-chat,starling-lm,codellama,llama2-uncensored,llama2:13b,llama2:70b,orca-mini,vicuna,llava,gemma:2b,gemma:7b"; diff --git a/src/ui/Forms/Options/Settings.Designer.cs b/src/ui/Forms/Options/Settings.Designer.cs index 3ba47cc20..e7c1f9e14 100644 --- a/src/ui/Forms/Options/Settings.Designer.cs +++ b/src/ui/Forms/Options/Settings.Designer.cs @@ -6550,6 +6550,7 @@ this.nikseComboBoxChatGptModel.DropDownWidth = 375; this.nikseComboBoxChatGptModel.FormattingEnabled = true; this.nikseComboBoxChatGptModel.Items.AddRange(new string[] { + "gpt-4o-mini", "gpt-4o", "gpt-4-turbo", "gpt-3.5-turbo",