Skip to content

.Net: API support for multiple chat roles for Chat completion APIs #2673

Closed

Description

@nacharya1

Important

Labeled Urgent because it will require a breaking change.

This issue should just provide API-level support. Another issue will be created (and linked) for the actual template support. This API support should be exposed to the template engine so that it can call those APIs and return an array of chat messages.

name: Feature request
about: Suggest an idea for this project
We currently have a lack of SK Functions based on Chat prompts (e.g. instead of a single text prompt, a function is based on a mix of chat messages, where each message needs to be rendered, before calling the LLM.
Needed by Devis and memory service.

### Tasks
- [x] 1 - POC

Activity

  1. moved this to Backlog - New features in Semantic Kernelon Aug 31, 2023
  2. added
    sk team issueA tag to denote issues that where created by the Semantic Kernel team (i.e., not the community)
    and removed on Sep 5, 2023
  3. moved this from Backlog - New features to No status in Semantic Kernelon Sep 7, 2023
  4. moved this to Backlog - Memory in Semantic Kernelon Sep 7, 2023
  5. moved this from Backlog - Memory to Backlog - New features in Semantic Kernelon Oct 10, 2023
  6. changed the title [-]Add SK Functions based on Chat prompts[/-] [+]Support multiple chat roles for Chat completion APIs[/+] on Oct 10, 2023
  7. madsbolaris commented on Oct 10, 2023

    @madsbolaris
    Member

    You should be able to author a semantic function that has multiple messages with arbitrary roles (system, assistant, and user)

  8. 6 remaining items

  9. moved this from Backlog - New features to Sprint: In Progress in Semantic Kernelon Oct 13, 2023
  10. moved this from Sprint: In Progress to Sprint: Planned in Semantic Kernelon Oct 23, 2023
  11. SergeyMenshykh commented on Oct 23, 2023

    @SergeyMenshykh
    Contributor
  12. moved this from Sprint: Planned to Sprint: In Review in Semantic Kernelon Nov 8, 2023
  13. moved this from Sprint: In Review to Sprint: Done in Semantic Kernelon Nov 13, 2023
  14. madsbolaris commented on Nov 28, 2023

    @madsbolaris
    Member

    Marking as complete because the intermediate template now supports chat messages

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

.NETIssue or Pull requests regarding .NET codekernelIssues or pull requests impacting the core kernelsk team issueA tag to denote issues that where created by the Semantic Kernel team (i.e., not the community)

Type

No type

Projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions