Skip to content

LLamaSharp.SemanticKernel Abnormal conversation #273

Closed
@ynanech

Description

@ynanech

Role conversion may fail due to capitalization reasons

var role = Enum.TryParse<global::LLama.Common.AuthorRole>(chat.Role.Label, out var _role) ? _role : global::LLama.Common.AuthorRole.Unknown;

Main problem: When I only send one message, it will result in multiple rounds of conversation, which I really don't understand here
QQ图片20231110114447

project reference

<ItemGroup> <PackageReference Include="Microsoft.SemanticKernel" Version="1.0.0-beta5" /> <PackageReference Include="LLamaSharp" Version="0.7.0" /> <PackageReference Include="LLamaSharp.Backend.Cpu" Version="0.7.0" /> </ItemGroup>

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    Status

    ✅ Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions