From 8ad5cda9160d8afbfdfbfdfb61d036a7a97383a3 Mon Sep 17 00:00:00 2001 From: Florian Bernd Date: Thu, 6 Jun 2024 12:52:51 +0200 Subject: [PATCH] `InferenceResponseResult.predicted_value` is single-or-many (#2606) --- specification/ml/_types/inference.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/ml/_types/inference.ts b/specification/ml/_types/inference.ts index c75a3430de..1782fa5371 100644 --- a/specification/ml/_types/inference.ts +++ b/specification/ml/_types/inference.ts @@ -475,7 +475,7 @@ export class InferenceResponseResult { * For regression models, its a numerical value * For classification models, it may be an integer, double, boolean or string depending on prediction type */ - predicted_value?: PredictedValue[] + predicted_value?: PredictedValue | PredictedValue[] /** * For fill mask tasks, the response contains the input text sequence with the mask token replaced by the predicted * value.