Skip to content

StreamResponseEnumerableFromChatbotAsync wrong role? #119

Open
@SemperFu

Description

@SemperFu
/// Calls the API to get a response, which is appended to the current chat's <see cref="Messages"/> as an <see cref="ChatMessageRole.Assistant"/>

_chat.AppendUserInput(prompt);
await foreach (string responseChunk in _chat.StreamResponseEnumerableFromChatbotAsync())
{
    OutputText.Text += responseChunk;
}

Trying to use the following but when looking at the messages in chat I can see that the role for the responses is marked as User instead of Assistant.

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions