klT45 commented on issue #7906:
URL: https://github.com/apache/shenyu/issues/7906#issuecomment-6309231152

   Hi, I'd like to work on this. Plan, subject to your feedback:
   
   1. Reproduce on current master with the real `AiResponseTransformerTemplate` 
and Spring codecs: a one-shot POST body consumed by the downstream chain, 
asserting that the prompt loses the request body while the backend still 
receives it.
   2. Capture a bounded, replayable request-body snapshot before 
`chain.execute(...)` and build the prompt from that snapshot instead of 
subscribing to the transport body a second time. The downstream consumer must 
still receive the complete body, and no new dependency or plugin configuration 
is needed.
   3. Cover one-shot POST/PUT bodies, an empty body, a request without a body, 
an oversized body (skip capture and keep the current behaviour), and 
cancellation.
   
   I'll open a PR within a week, starting from the current master.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to