Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ollama] open-webui has some settings that have to be passed via env variable #21724

Closed
2 tasks done
ErroneousBosch opened this issue May 7, 2024 · 2 comments
Closed
2 tasks done
Labels
enhancement New feature or request

Comments

@ErroneousBosch
Copy link

Is your feature request related to a problem?

This is to reopen the issue discussed in #19178 .

The resolution and changes presented did not solve the problem because the setting is not stored in the webui.db. It is solely controlled via an environment variable: https://github.com/open-webui/open-webui/blob/30b053116d6a40fc60dad1766e83ed41ffcb712c/backend/config.py#L344

it is one of 30+ different options controlled this way: https://docs.openwebui.com/getting-started/env-configuration

Please add a capability of passing environment variables to the webui container.

Describe the solution you'd like

Add an ability to pass Environment variables to the webui container

Describe alternatives you've considered

provide configuration options for the most relevant variables

Additional context

I commented on the original issue but have no way of re-opening it

I've read and agree with the following

  • I've checked all open and closed issues and my request is not there.
  • I've checked all open and closed pull requests and my request is not there.
@ErroneousBosch ErroneousBosch added the enhancement New feature or request label May 7, 2024
@wetong
Copy link

wetong commented May 14, 2024

For a temporary solution under TrueNAS Scale:
You can directly add the env variable to the file located at /mnt/****/ix-applications/releases/ollama/charts/x.x.xx/ix_values.yaml under the "ui" -> "env" section.

ui:
enabled: true
type: Deployment
podSpec:
containers:
ui:
primary: true
enabled: true
imageSelector: uiImage
resources:
excludeExtra: true
probes:
liveness:
enabled: true
type: http
path: /
port: "{{ .Values.service.main.ports.main.port }}"
readiness:
enabled: true
type: http
path: /
port: "{{ .Values.service.main.ports.main.port }}"
startup:
enabled: true
type: tcp
port: "{{ .Values.service.main.ports.main.port }}"
env:
PORT: "{{ .Values.service.main.ports.main.port }}"
OLLAMA_BASE_URL: '{{ printf "http://%v-api:%v" (include "tc.v1.common.lib.chart.names.fullname" $) .Values.service.api.ports.api.targetPort }}'
WEBUI_SECRET_KEY:
secretKeyRef:
name: ollama-secrets
key: WEBUI_SECRET_KEY
AUTOMATIC1111_BASE_URL: "{{ .Values.ollama.stable_diffusion.base_url }}"
ENABLE_SIGNUP: "{{ .Values.ollama.registration.enabled }}"
DEFAULT_USER_ROLE: "{{ .Values.ollama.registration.def_user_role }}"
WHISPER_MODEL: "{{ .Values.ollama.whisper.model }}"
RAG_EMBEDDING_MODEL: "{{ .Values.ollama.rag.model }}"
RAG_EMBEDDING_MODEL_DEVICE_TYPE: "{{ .Values.ollama.rag.model_device_type }}"
WEBUI_AUTH_TRUSTED_EMAIL_HEADER: "{{ .Values.ollama.registration.trusted_email_header }}"

@Ornias1993
Copy link
Member

Due to SCALE Apps deprecation closing this, as we're not going to improve the SCALE Apps GUI further.

@Ornias1993 Ornias1993 closed this as not planned Won't fix, can't repro, duplicate, stale May 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants