File tree Expand file tree Collapse file tree 2 files changed +14
-2
lines changed
Expand file tree Collapse file tree 2 files changed +14
-2
lines changed Original file line number Diff line number Diff line change 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
55from 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
3031class 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
5254class InferenceContainerType (ExtendedEnum ):
Original file line number Diff line number Diff line change 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+ )
2530from ads .aqua .common .errors import AquaRuntimeError , AquaValueError
2631from 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 ,
You can’t perform that action at this time.
0 commit comments