Skip to content

Commit 45a4dbc

Browse files
Shonda WitherspoonShonda Witherspoon
authored andcommitted
update comments
Signed-off-by: Shonda Witherspoon <shonda.adena.witherspoon@Shondas-MacBook-Pro.local>
1 parent 8a6041d commit 45a4dbc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

vllm_detector_adapter/generative_detectors/llama_guard.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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",

0 commit comments

Comments
 (0)