From 3a68c56174602bdc01b9b00d92c8ef55a22ae2b1 Mon Sep 17 00:00:00 2001 From: Nikolaj Olsson Date: Mon, 15 Apr 2024 22:10:49 +0200 Subject: [PATCH] Work on #8192 --- src/libse/AutoTranslate/AnthropicTranslate.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/libse/AutoTranslate/AnthropicTranslate.cs b/src/libse/AutoTranslate/AnthropicTranslate.cs index bad086afd..fc2a6322d 100644 --- a/src/libse/AutoTranslate/AnthropicTranslate.cs +++ b/src/libse/AutoTranslate/AnthropicTranslate.cs @@ -74,8 +74,10 @@ namespace Nikse.SubtitleEdit.Core.AutoTranslate result.EnsureSuccessStatusCode(); + SeLogger.Error($"{StaticName}: debug json: " + json); + var parser = new SeJsonParser(); - var resultText = parser.GetFirstObject(json, "content"); + var resultText = parser.GetFirstObject(json, "text"); if (resultText == null) { return string.Empty;