Skip to content

Commit a2c35cb

Browse files
authored
[Library-chart] Add conditions on aiAssistant in secret.tpl (#219)
1 parent 241782e commit a2c35cb

2 files changed

Lines changed: 13 additions & 1 deletion

File tree

charts/library-chart/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
apiVersion: v2
22
name: library-chart
3-
version: 1.6.16
3+
version: 1.6.17
44
type: library

charts/library-chart/templates/_secret.tpl

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -411,12 +411,24 @@ stringData:
411411
name: config
412412
version: 0.0.1
413413
models:
414+
{{- if .Values.userPreferences.aiAssistant.model }}
414415
- name: {{ .Values.userPreferences.aiAssistant.model | quote }}
416+
{{- end }}
417+
{{- if .Values.userPreferences.aiAssistant.provider }}
415418
provider: {{ .Values.userPreferences.aiAssistant.provider | quote }}
419+
{{- end }}
420+
{{- if .Values.userPreferences.aiAssistant.model }}
416421
model: {{ .Values.userPreferences.aiAssistant.model | quote }}
422+
{{- end }}
423+
{{- if .Values.userPreferences.aiAssistant.apiBase }}
417424
apiBase: {{ .Values.userPreferences.aiAssistant.apiBase | quote }}
425+
{{- end }}
426+
{{- if .Values.userPreferences.aiAssistant.apiKey }}
418427
apiKey: {{ .Values.userPreferences.aiAssistant.apiKey | quote }}
428+
{{- end }}
429+
{{- if .Values.userPreferences.aiAssistant.useLegacyCompletionsEndpoint }}
419430
useLegacyCompletionsEndpoint: {{ .Values.userPreferences.aiAssistant.useLegacyCompletionsEndpoint }}
431+
{{- end }}
420432
context:
421433
- provider: problems
422434
- provider: debugger

0 commit comments

Comments
 (0)