Skip to content

Commit

Permalink
fix: Set ollama url and env vars if ollama.enabled=False
Browse files Browse the repository at this point in the history
  • Loading branch information
Davi Sclifo Zucon committed Sep 25, 2024
1 parent 63055b9 commit 2062a5d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions charts/open-webui/templates/workload-manager.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,13 @@ spec:
- name: data
mountPath: /app/backend/data
env:
{{ if .Values.ollama.enabled }}
- name: OLLAMA_BASE_URLS
value: {{ include "ollamaBaseUrls" . | quote }}
{{ else }}
- name: ENABLE_OLLAMA_API
value: "False"
{{- end }}
{{ if .Values.pipelines.enabled }}
- name: OPENAI_API_BASE_URL
value: {{ include "pipelines.serviceEndpoint" . }}
Expand Down

0 comments on commit 2062a5d

Please sign in to comment.