Skip to content

why the to_message function in chat_history.py is trying to add an assistent message? #133

Open
@Lucas-TY

Description

@Lucas-TY

Related code:

async def to_messages(

def construct_messages(

If there is no message to add, the structure of the mssages will be system/user

But if there is a history message, the structure will change into system/assistant/user, which will cause an error since its not system/user/assistant/user .....

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