Skip to content

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

@rainmakerho

Description

@rainmakerho

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions