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

   ## Summary
   
   Extends the existing `AiPayloadGuardTest` (4 to 8 tests) to pin down the 
payload-guard contract.
   
   Added cases:
   - null chat/command requests and blank chat messages are rejected with their 
messages;
   - a command with only a prompt is accepted, while an oversized context map 
is rejected with the context byte budget message;
   - oversized chat model and conversation-id fields are rejected with their 
dedicated messages;
   - tool invocations require a name but tolerate a missing (null) input 
payload.
   
   ## Why
   
   The guard sets byte budgets for every user-controlled AI payload; only 
boundary/oversize and outbound cases were covered before.
   
   ## Testing
   
   `mvn -B test -Dtest=AiPayloadGuardTest` — 8/8 pass; checkstyle (validate) 
clean.


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