Skip to content

Commit

Permalink
Minor improvements and bugfixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ce-nistal committed Sep 2, 2024
1 parent 5d38521 commit 346ab42
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Apps.AzueOpenAI/Actions/XliffActions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,7 @@ private string GetSystemPrompt(bool translator)
var index = translatedText.LastIndexOf("\",") == -1 ? translatedText.LastIndexOf("\"\n,") : translatedText.LastIndexOf("\",");
index = index == -1 ? translatedText.LastIndexOf("\n\",") == -1? translatedText.LastIndexOf("\\n\",") : translatedText.LastIndexOf("\n\",") : index;
filteredText = translatedText.Remove(index) + "\"]";
filteredText = filteredText.Replace("\\n", "");
filteredText = filteredText.Replace("\\n *", "").Replace("\\\\n *", "").Replace("& ", "&amp; ").Replace("(<(g|x) id=)\\\"(.*?)\\\">", "${1}\"${2}\">");
}
filteredText = Regex.Match(filteredText, "\\[[\\s\\S]+\\]").Value;
var result = JsonConvert.DeserializeObject<string[]>(filteredText);
Expand Down
2 changes: 1 addition & 1 deletion Apps.AzueOpenAI/Apps.AzureOpenAI.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<Nullable>enable</Nullable>
<Product>Azure OpenAI</Product>
<Description>Azure OpenAI Service offers industry-leading coding and language AI models that you can fine-tune to your specific needs for a variety of use cases.</Description>
<Version>1.1.4</Version>
<Version>1.1.5</Version>
<AssemblyName>Apps.AzureOpenAI</AssemblyName>
</PropertyGroup>

Expand Down

0 comments on commit 346ab42

Please sign in to comment.