Monoize
Transforms

Prompt: append empty user message

Append a padding user message when the input ends with an assistant message.

What it does

When the request input ends with an assistant node, this transform appends a padding user text node. Inputs that already end with a user node pass through unchanged.

Reference

PropertyValue
Type IDprompt_append_empty_user
Phaserequest
ScopesProvider, API key

When to use

  • An upstream rejects conversations whose last message is from the assistant.
  • Clients send prefill-style assistant messages to a strict upstream.

Configuration

OptionTypeRequiredDefaultDescription
contentstringNo" "Text content of the padding user message. Defaults to a single space.

Example rule

{
  "transform": "prompt_append_empty_user",
  "enabled": true,
  "phase": "request",
  "models": [
    "*"
  ],
  "config": {}
}

On this page