Skip to content

Converter.items_to_messages cannot handle assistant message with both content and tool_calls #995

Open
@gordon-lim

Description

@gordon-lim

Currently the following item:

{'role': 'assistant', 'content': 'some content', 'tool_calls': [{'id': 'call_m6WfL5T37GLbviLKJNvghIOC',...]}

would raise

UserError: Unhandled item type or structure:

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions