Skip to content

Commit

Permalink
Debug
Browse files Browse the repository at this point in the history
  • Loading branch information
ce-nistal committed Aug 27, 2024
1 parent 187ed0f commit 9fd978d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Apps.AzueOpenAI/Actions/XliffActions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public async Task<TranslateXliffResponse> TranslateXliff(
var updatedFile = Blackbird.Xliff.Utils.Utils.XliffExtensions.UpdateOriginalFile(stream, updatedResults);
string contentType = input.File.ContentType ?? "application/xml";
var fileReference = await _fileManagementClient.UploadAsync(updatedFile, contentType, input.File.Name);
return new TranslateXliffResponse { File = fileReference, Usage = usage };
return new TranslateXliffResponse { File = fileReference, Usage = usage, Changes = updatedResults.Count };
}

[Action("Get Quality Scores for XLIFF file",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,6 @@ public class TranslateXliffResponse
{
public FileReference File { get; set; }
public UsageDto Usage { get; set; }

public int Changes { get; set; }
}

0 comments on commit 9fd978d

Please sign in to comment.