Updated example to match Pipelines documentation

This commit is contained in:
0xThresh.eth 2024-06-02 20:08:11 -06:00
parent 29e38c8d50
commit d9c993a7db
3 changed files with 18 additions and 52 deletions

View File

@ -33,8 +33,8 @@ helm upgrade --install open-webui open-webui/pipelines
| affinity | object | `{}` | Affinity for pod assignment |
| annotations | object | `{}` | |
| clusterDomain | string | `"cluster.local"` | Value of cluster domain |
| extraEnvVars | list | `[{"name":"PIPELINES_URLS","value":"https://github.com/open-webui/pipelines/blob/main/examples/langfuse_filter_pipeline.py"},{"name":"LANGFUSE_PUBLIC_KEY","valueFrom":{"secretKeyRef":{"key":"public-key","name":"langfuse-keys"}}},{"name":"LANGFUSE_SECRET_KEY","valueFrom":{"secretKeyRef":{"key":"secret-key","name":"langfuse-keys"}}},{"name":"LANGFUSE_HOST","value":"https://us.cloud.langfuse.com"}]` | Additional environments variables on the output Deployment definition. These are used to pull initial Pipeline files, and help configure Pipelines with required values (e.g. Langfuse API keys) |
| extraEnvVars[0] | object | `{"name":"PIPELINES_URLS","value":"https://github.com/open-webui/pipelines/blob/main/examples/langfuse_filter_pipeline.py"}` | Example pipeline to pull and load on deployment startup, see current pipelines here: https://github.com/open-webui/pipelines/blob/main/examples |
| extraEnvVars | list | `[{"name":"PIPELINES_URLS","value":"https://github.com/open-webui/pipelines/blob/main/examples/filters/detoxify_filter_pipeline.py"}]` | Additional environments variables on the output Deployment definition. These are used to pull initial Pipeline files, and help configure Pipelines with required values (e.g. Langfuse API keys) |
| extraEnvVars[0] | object | `{"name":"PIPELINES_URLS","value":"https://github.com/open-webui/pipelines/blob/main/examples/filters/detoxify_filter_pipeline.py"}` | Example pipeline to pull and load on deployment startup, see current pipelines here: https://github.com/open-webui/pipelines/blob/main/examples |
| image.pullPolicy | string | `"Always"` | |
| image.repository | string | `"ghcr.io/open-webui/pipelines"` | |
| image.tag | string | `"main"` | |

View File

@ -1,40 +1,3 @@
# Old manual manifest, used for reference
# apiVersion: apps/v1
# kind: Deployment
# metadata:
# name: open-webui-pipelines
# spec:
# replicas: 1
# selector:
# matchLabels:
# app: open-webui-pipelines
# template:
# metadata:
# labels:
# app: open-webui-pipelines
# spec:
# containers:
# - name: open-webui-pipelines
# image: ghcr.io/open-webui/pipelines:main
# imagePullPolicy: Always
# env:
# - name: PIPELINES_URLS
# value: https://github.com/open-webui/pipelines/blob/main/examples/langfuse_filter_pipeline.py
# - name: LANGFUSE_HOST
# value: https://us.cloud.langfuse.com
# - name: LANGFUSE_PUBLIC_KEY
# valueFrom:
# secretKeyRef:
# name: langfuse-keys
# key: public-key
# - name: LANGFUSE_SECRET_KEY
# valueFrom:
# secretKeyRef:
# name: langfuse-keys
# key: secret-key
# ports:
# - containerPort: 9099
apiVersion: apps/v1
kind: Deployment
metadata:

View File

@ -53,16 +53,19 @@ service:
extraEnvVars:
# -- Example pipeline to pull and load on deployment startup, see current pipelines here: https://github.com/open-webui/pipelines/blob/main/examples
- name: PIPELINES_URLS
value: "https://github.com/open-webui/pipelines/blob/main/examples/langfuse_filter_pipeline.py"
- name: LANGFUSE_PUBLIC_KEY
valueFrom:
secretKeyRef:
name: langfuse-keys
key: public-key
- name: LANGFUSE_SECRET_KEY
valueFrom:
secretKeyRef:
name: langfuse-keys
key: secret-key
- name: LANGFUSE_HOST
value: https://us.cloud.langfuse.com
value: "https://github.com/open-webui/pipelines/blob/main/examples/filters/detoxify_filter_pipeline.py"
# -- Langfuse example, including values used in Langfuse filter to connect
# - name: PIPELINES_URLS
# value: "https://github.com/open-webui/pipelines/blob/main/examples/filters/langfuse_filter_pipeline.py"
# - name: LANGFUSE_PUBLIC_KEY
# valueFrom:
# secretKeyRef:
# name: langfuse-keys
# key: public-key
# - name: LANGFUSE_SECRET_KEY
# valueFrom:
# secretKeyRef:
# name: langfuse-keys
# key: secret-key
# - name: LANGFUSE_HOST
# value: https://us.cloud.langfuse.com