Skip to content

[BUG] AiPromptPlugin decorateBody drops all messages except the first one #6342

@eye-gu

Description

@eye-gu

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

In AiPromptPlugin#decorateBody, when decorating the request body, only messages.get(0) is added to decoratedMessages, causing all remaining messages (multi-turn conversation history) to be silently dropped.

Expected Behavior

No response

Steps To Reproduce

No response

Environment

ShenYu version(s):

Debug logs

No response

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: 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