Skip to content

Commit

Permalink
Surface openai error (mlflow#10176)
Browse files Browse the repository at this point in the history
  • Loading branch information
prithvikannan authored Oct 27, 2023
1 parent d9b8d17 commit f10fbd3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions mlflow/metrics/genai/genai_metric.py
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,7 @@ def score_model_on_one_payload(
if e.error_code in [
ErrorCode.Name(BAD_REQUEST),
ErrorCode.Name(UNAUTHENTICATED),
ErrorCode.Name(INVALID_PARAMETER_VALUE)
]:
raise MlflowException(e)
return None, f"Failed to score model on payload. Error: {e!s}"
Expand Down

0 comments on commit f10fbd3

Please sign in to comment.