Skip to content

LLamaSharp.SemanticKernel Abnormal conversation #273

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>

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions