coder999o opened a new pull request, #5063:
URL: https://github.com/apache/rocketmq-dashboard/pull/5063

   ## What is the purpose of the change
   
   The streaming AI message endpoint is designed to return refusals as SSE 
error frames, because the client requests `text/event-stream` and cannot 
consume a normal JSON error response.
   
   When the request body is missing, Spring rejects the request before the 
controller can convert it into the same stream refusal used for blank or 
invalid messages. This makes the response lose the SSE contract and related 
streaming headers.
   
   This change maps a missing body to the existing `message is required` SSE 
refusal.
   
   ## Brief changelog
   
   - Allow the AI message request body to be absent at the controller boundary.
   - Return the existing invalid-request SSE refusal when the message body is 
missing.
   - Add a MockMvc regression test for the missing-body streaming response.
   
   ## Verifying this change
   
   - `cd server && mvn 
-Dtest=AiConversationControllerTest,AiStreamControllerTest test`
   - `git diff --check`


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