Skip to content

Commit 8635e87

Browse files
committed
forecasting invoke bug fix
1 parent 36712d6 commit 8635e87

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

ads/aqua/common/enums.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/usr/bin/env python
2-
# Copyright (c) 2024, 2025 Oracle and/or its affiliates.
2+
# Copyright (c) 2024, 2026 Oracle and/or its affiliates.
33
# Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl/
44

55
from typing import Dict, List
@@ -25,6 +25,7 @@ class PredictEndpoints(ExtendedEnum):
2525
TEXT_COMPLETIONS_ENDPOINT = "/v1/completions"
2626
EMBEDDING_ENDPOINT = "/v1/embedding"
2727
RESPONSES = "/v1/responses"
28+
FORECAST = "v1/forecast"
2829

2930

3031
class Tags(ExtendedEnum):
@@ -47,6 +48,7 @@ class Tags(ExtendedEnum):
4748
MULTIMODEL_TYPE_TAG = "aqua_multimodel"
4849
STACKED_MODEL_TYPE_TAG = "aqua_stacked_model"
4950
AQUA_FINE_TUNE_MODEL_VERSION = "fine_tune_model_version"
51+
MODEL_DEPLOY_PREDICT_ENDPOINT = "model_deploy_predict_endpoint"
5052

5153

5254
class InferenceContainerType(ExtendedEnum):

ads/aqua/modeldeployment/deployment.py

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,12 @@
2121
ComputeShapeSummary,
2222
ContainerPath,
2323
)
24-
from ads.aqua.common.enums import InferenceContainerTypeFamily, ModelFormat, Tags
24+
from ads.aqua.common.enums import (
25+
InferenceContainerTypeFamily,
26+
ModelFormat,
27+
PredictEndpoints,
28+
Tags,
29+
)
2530
from ads.aqua.common.errors import AquaRuntimeError, AquaValueError
2631
from ads.aqua.common.utils import (
2732
DEFINED_METADATA_TO_FILE_MAP,
@@ -274,6 +279,11 @@ def create(
274279
create_deployment_details.env_var.update(
275280
{Tags.TASK.upper(): ModelTask.TIME_SERIES_FORECASTING}
276281
)
282+
create_deployment_details.env_var.update(
283+
{
284+
Tags.MODEL_DEPLOY_PREDICT_ENDPOINT.upper(): PredictEndpoints.FORECAST
285+
}
286+
)
277287
return self._create(
278288
aqua_model=aqua_model,
279289
create_deployment_details=create_deployment_details,

0 commit comments

Comments
 (0)