From 8c11b0734912ee44bb70a33d9d35ee1ccb695ca2 Mon Sep 17 00:00:00 2001 From: Luis Marcos Rivera Date: Tue, 6 Feb 2024 10:37:49 +0100 Subject: [PATCH] Added translate prompt function --- CHANGELOG.md | 2 ++ Directory.Build.props | 2 +- .../Example.cs | 15 +++++++++++ .../Program.cs | 2 ++ ...nmarcha.SemanticKernel.Plugins.Text.csproj | 2 ++ .../Plugins/TextPlugin/Translate/config.json | 25 +++++++++++++++++ .../Plugins/TextPlugin/Translate/skprompt.txt | 11 ++++++++ .../PluginsInfo.cs | 27 +++++++++++++++++++ 8 files changed, 85 insertions(+), 1 deletion(-) create mode 100644 src/Encamina.Enmarcha.SemanticKernel.Plugins.Text/Plugins/TextPlugin/Translate/config.json create mode 100644 src/Encamina.Enmarcha.SemanticKernel.Plugins.Text/Plugins/TextPlugin/Translate/skprompt.txt diff --git a/CHANGELOG.md b/CHANGELOG.md index b3dfb4e..a8ac562 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -22,6 +22,8 @@ Previous classification is not required if changes are simple or all belong to t - Added `Description` property in `VersionSwaggerGenOptions`. - New text prompt function for extract KeyPhrases with specified locale, `KeyPhrasesLocaled`. - Added an example of using `KeyPhrasesLocaled` in `Encamina.Enmarcha.Samples.SemanticKernel.Text`. +- New text prompt function for translate texts, `Translate`. +- Added an example of using `Translate` in `Encamina.Enmarcha.Samples.SemanticKernel.Text`. ## [8.1.2] diff --git a/Directory.Build.props b/Directory.Build.props index 4dbc238..bff6d70 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -17,7 +17,7 @@ 8.1.3 - preview-02 + preview-03