diff --git a/charts/library-chart/Chart.yaml b/charts/library-chart/Chart.yaml index 9ae6ca70..f587dfbc 100644 --- a/charts/library-chart/Chart.yaml +++ b/charts/library-chart/Chart.yaml @@ -1,4 +1,4 @@ apiVersion: v2 name: library-chart -version: 1.6.16 +version: 1.6.17 type: library diff --git a/charts/library-chart/templates/_secret.tpl b/charts/library-chart/templates/_secret.tpl index 828e2485..15ff8d1b 100644 --- a/charts/library-chart/templates/_secret.tpl +++ b/charts/library-chart/templates/_secret.tpl @@ -411,12 +411,24 @@ stringData: name: config version: 0.0.1 models: + {{- if .Values.userPreferences.aiAssistant.model }} - name: {{ .Values.userPreferences.aiAssistant.model | quote }} + {{- end }} + {{- if .Values.userPreferences.aiAssistant.provider }} provider: {{ .Values.userPreferences.aiAssistant.provider | quote }} + {{- end }} + {{- if .Values.userPreferences.aiAssistant.model }} model: {{ .Values.userPreferences.aiAssistant.model | quote }} + {{- end }} + {{- if .Values.userPreferences.aiAssistant.apiBase }} apiBase: {{ .Values.userPreferences.aiAssistant.apiBase | quote }} + {{- end }} + {{- if .Values.userPreferences.aiAssistant.apiKey }} apiKey: {{ .Values.userPreferences.aiAssistant.apiKey | quote }} + {{- end }} + {{- if .Values.userPreferences.aiAssistant.useLegacyCompletionsEndpoint }} useLegacyCompletionsEndpoint: {{ .Values.userPreferences.aiAssistant.useLegacyCompletionsEndpoint }} + {{- end }} context: - provider: problems - provider: debugger