Skip to content

Bug with terminating lists on certain modelsย #33

@damiano-carradori

Description

@damiano-carradori

Hey, first of all, thanks for the amazing work you are doing, both with ai-sdk and this new library ๐Ÿ™๐Ÿป It really helps a lot to speed up work!

About the bug I found, I'm not sure if it's related to the Response component or directly to the streamdown library. Essentially what's happening is that, if I have a list in the response, it renders a little extra * at the end of the last line.

I prepared an example here with both the Response component and a ReactMarkdown with custom elements:
Image

To give you more context, I'm using gemini-2.5-flash, and the raw response is the following:

{
    "type": "text",
    "text": "Le seguenti persone hanno scelto il menรน di carne:\n\n*   USER@3aDiw7ETwNTE1fpj7cBz\n*   USER@5CYPMo1vLhyAEBe5WdiB\n*   USER@Fhcp2IlU03qD4wwhSiiu\n*   USER@L1B2PV0VxeHjersK3Odn\n*   USER@jXURfsIVkjPyLF5ccqWy\n*   USER@liF1hJrhKxDsEvhYcxA0\n*   USER@mOo9SGEY2T2peXWg9BYa",
    "state": "done"
}

Thank you very much ๐Ÿ™๐Ÿป

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