Skip to content

Commit f10fbd3

Browse files
Surface openai error (mlflow#10176)
1 parent d9b8d17 commit f10fbd3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

mlflow/metrics/genai/genai_metric.py

+1
Original file line numberDiff line numberDiff line change
@@ -281,6 +281,7 @@ def score_model_on_one_payload(
281281
if e.error_code in [
282282
ErrorCode.Name(BAD_REQUEST),
283283
ErrorCode.Name(UNAUTHENTICATED),
284+
ErrorCode.Name(INVALID_PARAMETER_VALUE)
284285
]:
285286
raise MlflowException(e)
286287
return None, f"Failed to score model on payload. Error: {e!s}"

0 commit comments

Comments
 (0)