File tree 1 file changed +5
-4
lines changed
vertexai/preview/reasoning_engines/templates
1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -397,6 +397,11 @@ def set_up(self):
397
397
)
398
398
for key , value in self ._tmpl_attrs .get ("env_vars" ).items ():
399
399
os .environ [key ] = value
400
+ if "GOOGLE_CLOUD_AGENT_ENGINE_ID" in os .environ :
401
+ self ._tmpl_attrs ["app_name" ] = os .environ .get (
402
+ "GOOGLE_CLOUD_AGENT_ENGINE_ID" ,
403
+ self ._tmpl_attrs .get ("app_name" ),
404
+ )
400
405
401
406
artifact_service_builder = self ._tmpl_attrs .get ("artifact_service_builder" )
402
407
if artifact_service_builder :
@@ -416,10 +421,6 @@ def set_up(self):
416
421
project = project ,
417
422
location = location ,
418
423
)
419
- self ._tmpl_attrs ["app_name" ] = os .environ .get (
420
- "GOOGLE_CLOUD_AGENT_ENGINE_ID" ,
421
- self ._tmpl_attrs .get ("app_name" ),
422
- )
423
424
else :
424
425
self ._tmpl_attrs ["session_service" ] = InMemorySessionService ()
425
426
You can’t perform that action at this time.
0 commit comments