Skip to content

[Bug]: Tool call leaks into content #40911

@neon12345

Description

@neon12345

Your current environment

see source link

🐛 Describe the bug

current_text = ""

When transitioning from reasoning to tool call with e.g. gemma4, "current_text" can contain parts of the tool call token like "<|". If this happens, the call is not recognized and leaks into the content.

Before submitting a new issue...

  • Make sure you already searched for relevant issues, and asked the chatbot living at the bottom right corner of the documentation page, which can answer lots of frequently asked questions.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions