500 - Internal Server Error
*
- * @param predictRequestPayload The value for the parameter predictRequestPayload
+ * @param predictRequestPayload (required) The value for the parameter predictRequestPayload
+ * @param contentEncoding (optional) Content encoding of the request body. Use 'gzip' for
+ * gzip-compressed payloads.
* @return PredictResponsePayload
* @throws OpenApiRequestException if an error occurs while attempting to invoke the API
*/
@Nonnull
- public PredictResponsePayload predict(@Nonnull final PredictRequestPayload predictRequestPayload)
+ public PredictResponsePayload predict(
+ @Nonnull final PredictRequestPayload predictRequestPayload,
+ @Nullable final String contentEncoding)
throws OpenApiRequestException {
// verify the required parameter 'predictRequestPayload' is set
@@ -89,6 +93,9 @@ public PredictResponsePayload predict(@Nonnull final PredictRequestPayload predi
final Map Make in-context predictions for specified target columns. Either \"rows\" or
+ * \"columns\" must be provided and must contain both context and query rows. You can
+ * optionally send gzip-compressed JSON payloads and set a \"Content-Encoding: gzip\"
+ * header.
+ *
+ * 200 - Successful Prediction
+ *
+ * 400 - Bad Request - Invalid input data
+ *
+ * 413 - Payload Too Large
+ *
+ * 422 - Validation Error
+ *
+ * 500 - Internal Server Error
+ *
+ * @param predictRequestPayload The value for the parameter predictRequestPayload
+ * @return PredictResponsePayload
+ * @throws OpenApiRequestException if an error occurs while attempting to invoke the API
+ */
+ @Nonnull
+ public PredictResponsePayload predict(@Nonnull final PredictRequestPayload predictRequestPayload)
+ throws OpenApiRequestException {
+ return predict(predictRequestPayload, null);
+ }
+
/**
* Make in-context predictions for specified target columns based on provided table data Parquet
* file.
diff --git a/foundation-models/sap-rpt/src/main/resources/spec/sap-rpt-1_openapi.json b/foundation-models/sap-rpt/src/main/resources/spec/sap-rpt-1_openapi.json
index a047fb708..38c725e3b 100644
--- a/foundation-models/sap-rpt/src/main/resources/spec/sap-rpt-1_openapi.json
+++ b/foundation-models/sap-rpt/src/main/resources/spec/sap-rpt-1_openapi.json
@@ -19,6 +19,18 @@
"summary": "Make in-context predictions for specified target columns based on provided table data JSON (optionally gzip-compressed).",
"description": "Make in-context predictions for specified target columns.\nEither \"rows\" or \"columns\" must be provided and must contain both context and query rows.\nYou can optionally send gzip-compressed JSON payloads and set a \"Content-Encoding: gzip\" header.",
"operationId": "predict",
+ "parameters": [
+ {
+ "name": "Content-Encoding",
+ "in": "header",
+ "description": "Content encoding of the request body. Use 'gzip' for gzip-compressed payloads.",
+ "required": false,
+ "schema": {
+ "type": "string",
+ "enum": ["gzip"]
+ }
+ }
+ ],
"requestBody": {
"content": {
"application/json": {
diff --git a/pom.xml b/pom.xml
index b81c4629a..2910eca99 100644
--- a/pom.xml
+++ b/pom.xml
@@ -56,7 +56,7 @@