Skip to content

Commit

Permalink
Fix a typo in openai_api_server.py (lm-sys#2905)
Browse files Browse the repository at this point in the history
  • Loading branch information
jklj077 authored and zhanghao.smooth committed Jan 26, 2024
1 parent f1d2a97 commit c1762ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fastchat/serve/openai_api_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ def check_requests(request) -> Optional[JSONResponse]:
if request.top_p is not None and request.top_p > 1:
return create_error_response(
ErrorCode.PARAM_OUT_OF_RANGE,
f"{request.top_p} is greater than the maximum of 1 - 'temperature'",
f"{request.top_p} is greater than the maximum of 1 - 'top_p'",
)
if request.top_k is not None and (request.top_k > -1 and request.top_k < 1):
return create_error_response(
Expand Down

0 comments on commit c1762ff

Please sign in to comment.