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

Code Correction in Handlebars template variable(chatHistory) 04-Templatizing-Prompts/Program.cs #77

Open
rainmakerho opened this issue Dec 28, 2023 · 0 comments

Comments

@rainmakerho
Copy link

Description:

There seems to be a discrepancy in the code snippets provided in the Create handlebars template for intent 04-Templatizing-Prompts
/Program.cs and Semantic Kernel Templatizing your prompts

In the Handlebars template, the code {{#each chatHistory}} should be replaced with {{#each history}}. Alternatively, the code { "history", history } should be replaced with { "chatHistory", history } for the program to function correctly.

This issue is causing confusion and may lead to incorrect implementation. A prompt correction would be appreciated.

Steps to Reproduce:

  1. Visit the Semantic Kernel Templatizing your prompts page or Create handlebars template for intent 04-Templatizing-Prompts
    /Program.cs.
  2. Scroll down to the code snippets section.
  3. Observe the discrepancy in the Handlebars template and the corresponding code.

Expected Result:

The Handlebars template should be {{#each history}} or the code should be { "chatHistory", history }.

Actual Result:

The Handlebars template is {{#each chatHistory}} and the code is { "history", history }.

Thank you for your attention to this matter.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant