File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
vllm_detector_adapter/generative_detectors Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -135,9 +135,9 @@ async def content_analysis(
135135 # task template to be applied
136136 return request
137137
138- # Validate whether role_override was passed as a detector_param, which is invalid for llama guard,
139- # because conversation roles are expected to alternate between 'user' and 'assistant' roles.
140- # Therefore explicitly overriding the conversation roles will result in an error.
138+ # Because conversation roles are expected to alternate between 'user' and 'assistant'
139+ # validate whether role_override was passed as a detector_param, which is invalid
140+ # since explicitly overriding the conversation roles will result in an error.
141141 if "role_override" in request .detector_params :
142142 return ErrorResponse (
143143 message = "role_override is an invalid parameter for llama guard" ,
You can’t perform that action at this time.
0 commit comments