shreemaan-abhishek commented on PR #13780:
URL: https://github.com/apache/apisix/pull/13780#issuecomment-5214082714

   Added end-to-end coverage for the Responses API path in 
`t/plugin/ai-aliyun-content-moderation.t`, so the `developer` fix is exercised 
through protocol detection and the moderation plugin rather than by calling the 
extractor directly:
   
   - TEST 83/84: with `request_check_roles: ["user", "tool", "system"]`, an 
`input` array whose `developer` item is harmful and whose `user` item is benign 
is blocked.
   - TEST 85/86: with the default `["user"]`, the same request passes through.
   
   Reverting `extract_system_content` in `openai-responses.lua` to `item.role 
== "system"` fails TEST 84, so it guards the fix. Suite and `make lint` pass 
locally.


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