Skip to content

fix(ai): transform flushed response bodies - #7123

Open
dengliming wants to merge 1 commit into
apache:masterfrom
dengliming:fix-6757-transform-flushed-response
Open

dengliming wants to merge 1 commit into
apache:masterfrom
dengliming:fix-6757-transform-flushed-response

Conversation

@dengliming

Copy link
Copy Markdown
Member

Summary

  • route writeAndFlushWith response bodies through the AI response transformer
  • flatten nested publishers in order before joining and transforming their data
  • add regression coverage for flushed multi-buffer responses

Testing

  • mvn -q -pl shenyu-plugin/shenyu-plugin-ai/shenyu-plugin-ai-response-transformer -am -DskipTests=false -Dcheckstyle.skip=false -Dtest=AiResponseTransformerPluginTest -DfailIfNoTests=false test

Fixes #6757

@Aias00 Aias00 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved as PMC (Aias00). Reviewed the diff — small, well-scoped fix with regression tests; mergeable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] Response transformer only intercepts writeWith; streaming/chunked responses bypass transformation

2 participants