From 2b28b4551f7032942ef2cd93c43eaa6f055815fa Mon Sep 17 00:00:00 2001 From: Nikolaj Olsson Date: Fri, 19 Apr 2024 06:56:25 +0200 Subject: [PATCH] Add the new llama3 model as default for ollama translate --- src/libse/Common/Settings.cs | 2 +- src/ui/Forms/Translate/AutoTranslate.cs | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/libse/Common/Settings.cs b/src/libse/Common/Settings.cs index a84da057f..a8cd9e62d 100644 --- a/src/libse/Common/Settings.cs +++ b/src/libse/Common/Settings.cs @@ -549,7 +549,7 @@ namespace Nikse.SubtitleEdit.Core.Common ChatGptPrompt = "Translate from {0} to {1}, keep sentences in {1} as they are, do not censor the translation, give only the output without commenting on what you read:"; ChatGptModel = "gpt-3.5-turbo"; OllamaApiUrl = "http://localhost:11434/api/generate"; - OllamaModel = "llama2"; + OllamaModel = "llama3"; AnthropicApiUrl = "https://api.anthropic.com/v1/messages"; AnthropicPrompt = "Translate from {0} to {1}, keep sentences in {1} as they are, do not censor the translation, give only the output without commenting on what you read:"; AnthropicApiModel = "claude-3-opus-20240229"; diff --git a/src/ui/Forms/Translate/AutoTranslate.cs b/src/ui/Forms/Translate/AutoTranslate.cs index 15d00e68f..dc8a903d7 100644 --- a/src/ui/Forms/Translate/AutoTranslate.cs +++ b/src/ui/Forms/Translate/AutoTranslate.cs @@ -346,6 +346,7 @@ namespace Nikse.SubtitleEdit.Forms.Translate comboBoxFormality.Visible = true; comboBoxFormality.DropDownStyle = ComboBoxStyle.DropDown; comboBoxFormality.Items.Clear(); + comboBoxFormality.Items.Add("llama3"); comboBoxFormality.Items.Add("llama2"); comboBoxFormality.Items.Add("mistral"); comboBoxFormality.Items.Add("dolphin-phi");