File tree Expand file tree Collapse file tree 1 file changed +5
-17
lines changed Expand file tree Collapse file tree 1 file changed +5
-17
lines changed Original file line number Diff line number Diff line change 15
15
UNKNOWN_JSON_STR ,
16
16
)
17
17
from ads .common .extended_enum import ExtendedEnum
18
- from ads .common .utils import UNKNOWN
19
18
20
19
21
20
class Usage (ExtendedEnum ):
@@ -190,22 +189,11 @@ def from_service_config(
190
189
container_item .model_formats .append (
191
190
additional_configurations .get ("modelFormats" )
192
191
)
193
-
194
- # Parse environment variables from `additional_configurations`.
195
- # Only keys present in the configuration will be added to the result.
196
- config_keys = {
197
- "MODEL_DEPLOY_PREDICT_ENDPOINT" : UNKNOWN ,
198
- "MODEL_DEPLOY_HEALTH_ENDPOINT" : UNKNOWN ,
199
- "PORT" : UNKNOWN ,
200
- "HEALTH_CHECK_PORT" : UNKNOWN ,
201
- "VLLM_USE_V1" : UNKNOWN ,
202
- }
203
-
204
- env_vars = [
205
- {key : additional_configurations .get (key , default )}
206
- for key , default in config_keys .items ()
207
- if key in additional_configurations
208
- ]
192
+ print (
193
+ "additional_configurations.get(env_vars)" ,
194
+ additional_configurations .get ("env_vars" ),
195
+ )
196
+ env_vars = json .loads (additional_configurations .get ("env_vars" ))
209
197
210
198
# Build container spec
211
199
container_item .spec = AquaContainerConfigSpec (
You can’t perform that action at this time.
0 commit comments