Skip to content

.NET: [Bug]: why does MAF add empty content for assistant message : [ { "type": "text", "text": "" }, // ← empty first element { "type": "text", "text": "previous assistant response" } // ← actual response ]? #5839

@hafeezniyaz

Description

@hafeezniyaz

Description

The framework adds an empty content message along with the actual response into the content array of the [
{ "type": "text", "text": "" }, // ← empty first element
{ "type": "text", "text": "previous assistant response" } // ← actual response
]?

Due to this, I believe the chat template parser malfunctions and forces the model to respond to my previous and current message together

I observed this behaviour in GPTOSS 120B on VLLM

Code Sample

Error Messages / Stack Traces

Package Versions

1.5.0

.NET Version

No response

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions