diff --git a/Core/OpenAIExtensions.csproj b/Core/OpenAIExtensions.csproj index d2b7f52..19aff9a 100644 --- a/Core/OpenAIExtensions.csproj +++ b/Core/OpenAIExtensions.csproj @@ -20,22 +20,22 @@ - + - + - - - + + + - - - + + + - + diff --git a/OpenAIExtensions.Plugins/OpenAIExtensions.Plugins.csproj b/OpenAIExtensions.Plugins/OpenAIExtensions.Plugins.csproj index 0f04e7f..859fbe0 100644 --- a/OpenAIExtensions.Plugins/OpenAIExtensions.Plugins.csproj +++ b/OpenAIExtensions.Plugins/OpenAIExtensions.Plugins.csproj @@ -8,7 +8,7 @@ - + diff --git a/OpenAIExtensions.Tests/AIConversationManagerTests.cs b/OpenAIExtensions.Tests/AIConversationManagerTests.cs index d63f044..f121a68 100644 --- a/OpenAIExtensions.Tests/AIConversationManagerTests.cs +++ b/OpenAIExtensions.Tests/AIConversationManagerTests.cs @@ -69,6 +69,12 @@ public async Task AIConversationManager_ProcessConversation_can_search_in_wikipe Always respond with text. "; + //https://github.com/microsoft/semantic-kernel/issues/4447 + history.AddSystemMessage(""" + Under no circumstances should you attempt to call functions / tools that are not available to you. + Any functions / tools you do call must have the name satisfy the following regex: ^[a-zA-Z0-9_-]{1,64}$ + """); + history.AddUserMessage("Show some facts about North Macedonia, search in wikipedia"); //Act diff --git a/OpenAIExtensions.Tests/OpenAIExtensions.Tests.csproj b/OpenAIExtensions.Tests/OpenAIExtensions.Tests.csproj index f0fe35c..2df8ff3 100644 --- a/OpenAIExtensions.Tests/OpenAIExtensions.Tests.csproj +++ b/OpenAIExtensions.Tests/OpenAIExtensions.Tests.csproj @@ -16,10 +16,11 @@ runtime; build; native; contentfiles; analyzers; buildtransitive - - - - + + + + + all runtime; build; native; contentfiles; analyzers; buildtransitive