From 20fa32cba479015c9c808863b3468242c110ddbd Mon Sep 17 00:00:00 2001 From: inahwangg Date: Mon, 22 Sep 2025 03:53:51 +0900 Subject: [PATCH] Updates the Helm chart configuration for LLM agent service settings Enable AIMLFW to read the user's path and related agent settings via environment variables, with optional overrides from the recipe file. Issue-ID: AIMLFW-254 Change-Id: I3b80c67f0f99fe4ed6747cf846d6f90c8d87ef82 Signed-off-by: offina --- helm/tm/templates/configmap.yaml | 10 +++++++--- helm/tm/values.yaml | 8 +++++++- 2 files changed, 14 insertions(+), 4 deletions(-) diff --git a/helm/tm/templates/configmap.yaml b/helm/tm/templates/configmap.yaml index 4efcde5..3197d19 100644 --- a/helm/tm/templates/configmap.yaml +++ b/helm/tm/templates/configmap.yaml @@ -1,6 +1,6 @@ # ================================================================================== # -# Copyright (c) 2022 Samsung Electronics Co., Ltd. All Rights Reserved. +# Copyright (c) 2025 Samsung Electronics Co., Ltd. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -15,8 +15,8 @@ # limitations under the License. # # ================================================================================== -kind: ConfigMap -apiVersion: v1 +kind: ConfigMap +apiVersion: v1 metadata: name: tm-configmap namespace: {{ include "common.namespace.platform" . }} @@ -36,3 +36,7 @@ data: PYTHONUNBUFFERED: "0" ACCESS_CONTROL_ALLOW_ORIGIN: "*" PIPELINE: {{.Values.tm.pipelines | toJson | quote }} + {{- if .Values.tm.agent.enabled }} + LLM_AGENT_MODEL_FOR_TM: "{{ .Values.tm.agent.llm_model }}" + LLM_AGENT_MODEL_TOKEN_FOR_TM: "{{ .Values.tm.agent.llm_model_token }}" + {{- end }} diff --git a/helm/tm/values.yaml b/helm/tm/values.yaml index 2c20eb8..c1b5db4 100644 --- a/helm/tm/values.yaml +++ b/helm/tm/values.yaml @@ -1,6 +1,6 @@ # ================================================================================== # -# Copyright (c) 2022 Samsung Electronics Co., Ltd. All Rights Reserved. +# Copyright (c) 2025 Samsung Electronics Co., Ltd. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,3 +22,9 @@ image: pullPolicy: IfNotPresent # Overrides the image tag whose default is the chart appVersion. tag: "latest" + +agent: + enabled: false + # The feature is disabled + llm_model: "" + llm_model_token: "" -- 2.16.6