From 88364b72b31f58736523529acf79f8642fbcd112 Mon Sep 17 00:00:00 2001 From: nold Date: Wed, 13 Mar 2024 12:04:45 +0100 Subject: [PATCH] feat(bibot): env --- projects/ai/project.yaml | 6 ++++++ projects/ai/values/bibot.yml | 26 ++++++++++++++++++++++++-- 2 files changed, 30 insertions(+), 2 deletions(-) diff --git a/projects/ai/project.yaml b/projects/ai/project.yaml index 369e050b..93dab5e6 100644 --- a/projects/ai/project.yaml +++ b/projects/ai/project.yaml @@ -41,3 +41,9 @@ apps: repo: bjw-s chart: app-template targetRevision: 2.4.0 + secrets: + - name: bibot + keys: + - discord-token + - ombi-api-key + - prompt-template diff --git a/projects/ai/values/bibot.yml b/projects/ai/values/bibot.yml index 36bd905f..f9930d8f 100644 --- a/projects/ai/values/bibot.yml +++ b/projects/ai/values/bibot.yml @@ -7,8 +7,23 @@ controllers: tag: latest pullPolicy: Always - #env: - # + env: + BIBOT_PROMPT_FILE: /config/prompt-template + BROWSERLESS_URL: http://browserless.browserless.svc.cluster.local:3000 + OPENAI_API_URL: http://localai-local-ai.ai.svc.cluster.local/v1 + OPENAI_MODEL: mixtral-8x7b-instruct + OMBI_API_URL: http://ombi.ombi.svc.cluster.local:3575/api/v1 + DISCORD_CHANNELS: "1216440541064200192" + OMBI_API_TOKEN: + valueFrom: + secretKeyRef: + name: bibot + key: ombi-api-key + DISCORD_TOKEN: + valueFrom: + secretKeyRef: + name: bibot + key: discord-token probes: liveness: enabled: false @@ -16,6 +31,13 @@ controllers: enabled: false startup: enabled: false + +persistence: + config: + name: bibot + enabled: true + type: secret + service: main: controller: main