Configure on-prem LLM providers through Helm values
This commit is contained in:
1 parent
1b3aed8302
commit
80877b01ec
9 files changed
+73
No files matched your search
@@ -314,3 +314,30 @@
|
||||
- name: OTEL_LOG_LEVEL
|
||||
value: "info"
|
||||
{{- end }}
|
||||
|
||||
{{- define "envs_llm" }}
|
||||
{{- $llm := .Values.app.ai.llm | default dict }}
|
||||
{{- $externalSecret := not (empty .Values.secrets.existingSecret) }}
|
||||
{{- with $llm.baseUri }}
|
||||
- name: LLM_BASE_URI
|
||||
value: {{ . | quote }}
|
||||
{{- end }}
|
||||
{{- with $llm.chatModel }}
|
||||
- name: LLM_CHAT_MODEL
|
||||
value: {{ . | quote }}
|
||||
{{- end }}
|
||||
{{- with $llm.embeddingBaseUri }}
|
||||
- name: LLM_EMBEDDING_BASE_URI
|
||||
value: {{ . | quote }}
|
||||
{{- end }}
|
||||
{{- with $llm.embeddingModel }}
|
||||
- name: LLM_EMBEDDING_MODEL
|
||||
value: {{ . | quote }}
|
||||
{{- end }}
|
||||
{{- if or $llm.apiKey (and $externalSecret $llm.baseUri) }}
|
||||
{{- include "hrbox.secretEnv" (dict "ctx" . "env" "LLM_API_KEY" "key" "llm-api-key" "optional" $externalSecret) | nindent 0 }}
|
||||
{{- end }}
|
||||
{{- if or $llm.embeddingApiKey (and $externalSecret $llm.embeddingBaseUri) }}
|
||||
{{- include "hrbox.secretEnv" (dict "ctx" . "env" "LLM_EMBEDDING_API_KEY" "key" "llm-embedding-api-key" "optional" $externalSecret) | nindent 0 }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
Reference in new issue
Block a user