Fix OpenRouter url

This commit is contained in:
Nikolaj Olsson 2024-07-24 15:39:14 +02:00
parent 024e4d4b55
commit 85582d5970
2 changed files with 2 additions and 1 deletions

View File

@ -6,6 +6,7 @@
* Add "Pixel format" paramter to burn-in - thx Hafran420
* Add new ChatGPT "gpt-4o-mini" model
* Add translation via Groq (api.groq.com)
* Add translation via OpenRouter - thx Nikodim
* IMPROVED:
* Update Chinese translation - thx nkh0472
* Update Italian translation - thx bovirus

View File

@ -470,7 +470,7 @@ namespace Nikse.SubtitleEdit.Core.Settings
GroqUrl = "https://api.groq.com/openai/v1/chat/completions";
GroqPrompt = "Translate from {0} to {1}, keep punctuation as input, do not censor the translation, give only the output without comments:";
GroqModel = GroqTranslate.Models[0];
OpenRouterUrl = "https://api.groq.com/openai/v1/chat/completions";
OpenRouterUrl = "https://openrouter.ai/api/v1/chat/completions";
OpenRouterPrompt = "Translate from {0} to {1}, keep punctuation as input, do not censor the translation, give only the output without comments:";
OpenRouterModel = OpenRouterTranslate.Models[0];
LmStudioPrompt = "Translate from {0} to {1}, keep punctuation as input, do not censor the translation, give only the output without comments:";