Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

.Net: Bug: Blazor WASM not supported from Microsoft.SemanticKernel.PromptTemplates.Handlebars from version >= 1.16 #9830

Open
antonio8101 opened this issue Nov 26, 2024 · 1 comment
Labels
.NET Issue or Pull requests regarding .NET code

Comments

@antonio8101
Copy link

Describe the bug

Microsoft.SemanticKernel.PromptTemplates.Handlebars which depends on uses Handlebars.Net.Helpers, does not support anymore the Blazor WASN projects.
This is because from version 2.4.5 it starts to use using System.Diagnostics in file HandlebarsHelpers in the method Register.

Process.GetCurrentProcess().MainModule?.FileName

System.Diagnostics is not supported for this platform.

Please do downgrade to version < 2.4.5 if it is possible, and wait for them to fix the issue (open the issue also in their project).

To Reproduce
Steps to reproduce the behavior:

To Reproduce
Steps to reproduce the behavior:

  1. Create a new Blazor application with WebAssembly as Interactive Render Mode
  2. Install Semantic Kernel and Microsoft.SemanticKernel with a version 1.30,0
  3. Install Semantic Kernel Handlebars with version greater than 1.16
  4. Whenever you execute a Kernel function having a prompt with handlebar format

Expected behavior
Prompt should be sent to the LLM model

Platform

  • OS: Windows
  • IDE: Visual Studio
  • Language: C#
  • Source: Microsoft.SemanticKernel = 1.30.0
@antonio8101 antonio8101 added the bug Something isn't working label Nov 26, 2024
@markwallace-microsoft markwallace-microsoft added .NET Issue or Pull requests regarding .NET code triage labels Nov 26, 2024
@github-actions github-actions bot changed the title Bug: .Net: Bug: Nov 26, 2024
@antonio8101 antonio8101 changed the title .Net: Bug: .Net: Bug: Blazor WASM not supported from Microsoft.SemanticKernel.PromptTemplates.Handlebars from version >= 1.16 Nov 26, 2024
@evchaki evchaki removed the triage label Nov 26, 2024
@evchaki
Copy link
Contributor

evchaki commented Nov 26, 2024

@luisquintanilla - can you take a look at this and see what we can do with the Blazer team.

@antonio8101 - can you log an issue with Blazer on their GitHub to support this again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
.NET Issue or Pull requests regarding .NET code
Projects
None yet
Development

No branches or pull requests

3 participants