Skip to content

Commit 58597cc

Browse files
committed
fix: Expose UI chat configuration in chart
1 parent 9fcf5c6 commit 58597cc

File tree

2 files changed

+29
-0
lines changed

2 files changed

+29
-0
lines changed

src/ui/chart/templates/configmap.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,29 @@ metadata:
55
name: {{ include "ui.configMapName" . }}
66
data:
77
RETAIL_UI_THEME: {{ .Values.app.theme }}
8+
{{- if .Values.app.chat.enabled }}
89
RETAIL_UI_CHAT_ENABLED: "{{ .Values.app.chat.enabled }}"
910
RETAIL_UI_CHAT_PROVIDER: {{ .Values.app.chat.provider }}
1011
RETAIL_UI_CHAT_MODEL: {{ .Values.app.chat.model }}
12+
{{- if .Values.app.chat.temperature }}
13+
RETAIL_UI_CHAT_TEMPERATURE: {{ .Values.app.chat.temperature }}
14+
{{- end }}
15+
{{- if .Values.app.chat.maxTokens }}
16+
RETAIL_UI_CHAT_MAX_TOKENS: {{ .Values.app.chat.maxTokens }}
17+
{{- end }}
18+
{{- if .Values.app.chat.prompt }}
19+
RETAIL_UI_CHAT_PROMPT: {{ .Values.app.chat.prompt }}
20+
{{- end }}
21+
{{- if (eq "openai" .Values.app.chat.provider) }}
22+
RETAIL_UI_CHAT_OPENAI_BASE_URL: {{ .Values.app.chat.openai.baseUrl }}
23+
{{- if .Values.app.chat.openai.apiKey }}
24+
RETAIL_UI_CHAT_OPENAI_API_KEY: {{ .Values.app.chat.openai.apiKey }}
25+
{{- end }}
26+
{{- end }}
27+
{{- if (eq "bedrock" .Values.app.chat.provider) }}
28+
RETAIL_UI_CHAT_BEDROCK_REGION: {{ .Values.app.chat.bedrock.region }}
29+
{{- end }}
30+
{{- end }}
1131
{{- if .Values.app.endpoints.catalog }}
1232
RETAIL_UI_ENDPOINTS_CATALOG: {{ .Values.app.endpoints.catalog }}
1333
{{- end -}}

src/ui/chart/values.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,15 @@ app:
8787
enabled: false
8888
provider: ""
8989
model: ""
90+
# temperature: 0.7
91+
# maxTokens: 300
92+
# prompt: |
93+
# This will override the default system prompt
94+
bedrock:
95+
region: ""
96+
openai:
97+
baseUrl: ""
98+
# apiKey: ""
9099

91100
## Ingress for load balancer
92101
ingress:

0 commit comments

Comments
 (0)