Skip to content

Commit c1762ff

Browse files
jklj077zhanghao.smooth
authored andcommitted
Fix a typo in openai_api_server.py (lm-sys#2905)
1 parent f1d2a97 commit c1762ff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fastchat/serve/openai_api_server.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ def check_requests(request) -> Optional[JSONResponse]:
208208
if request.top_p is not None and request.top_p > 1:
209209
return create_error_response(
210210
ErrorCode.PARAM_OUT_OF_RANGE,
211-
f"{request.top_p} is greater than the maximum of 1 - 'temperature'",
211+
f"{request.top_p} is greater than the maximum of 1 - 'top_p'",
212212
)
213213
if request.top_k is not None and (request.top_k > -1 and request.top_k < 1):
214214
return create_error_response(

0 commit comments

Comments
 (0)