diff --git a/.github/ct-install.yaml b/.github/ct-install.yaml index 204ae0f53c9..444bdfcbc92 100644 --- a/.github/ct-install.yaml +++ b/.github/ct-install.yaml @@ -28,6 +28,7 @@ excluded-charts: - charts/stable/heimdall - charts/stable/mc-router - charts/stable/multus + - charts/stable/local-ai - charts/stable/orbital-sync - charts/stable/plex-meta-manager - charts/stable/pod-gateway diff --git a/charts/incubator/local-ai/ci/base-values.yaml b/charts/incubator/local-ai/ci/base-values.yaml deleted file mode 100644 index 7e36603e844..00000000000 --- a/charts/incubator/local-ai/ci/base-values.yaml +++ /dev/null @@ -1 +0,0 @@ -imageSelector: image diff --git a/charts/incubator/local-ai/ci/cublas-cuda11-ffmpeg-values.yaml b/charts/incubator/local-ai/ci/cublas-cuda11-ffmpeg-values.yaml deleted file mode 100644 index 1112ebde1b8..00000000000 --- a/charts/incubator/local-ai/ci/cublas-cuda11-ffmpeg-values.yaml +++ /dev/null @@ -1 +0,0 @@ -imageSelector: cublasCuda11FfmpegImage diff --git a/charts/incubator/local-ai/ci/cublas-cuda11-values.yaml b/charts/incubator/local-ai/ci/cublas-cuda11-values.yaml deleted file mode 100644 index fafdf73b19d..00000000000 --- a/charts/incubator/local-ai/ci/cublas-cuda11-values.yaml +++ /dev/null @@ -1 +0,0 @@ -imageSelector: cublasCuda11Image diff --git a/charts/incubator/local-ai/ci/cublas-cuda12-ffmpeg-values.yaml b/charts/incubator/local-ai/ci/cublas-cuda12-ffmpeg-values.yaml deleted file mode 100644 index 82825c4a104..00000000000 --- a/charts/incubator/local-ai/ci/cublas-cuda12-ffmpeg-values.yaml +++ /dev/null @@ -1 +0,0 @@ -imageSelector: cublasCuda12FfmpegImage diff --git a/charts/incubator/local-ai/ci/cublas-cuda12-values.yaml b/charts/incubator/local-ai/ci/cublas-cuda12-values.yaml deleted file mode 100644 index 407504448b4..00000000000 --- a/charts/incubator/local-ai/ci/cublas-cuda12-values.yaml +++ /dev/null @@ -1 +0,0 @@ -imageSelector: cublasCuda12Image diff --git a/charts/incubator/local-ai/ci/ffmpeg-values.yaml b/charts/incubator/local-ai/ci/ffmpeg-values.yaml deleted file mode 100644 index 5d1c789142c..00000000000 --- a/charts/incubator/local-ai/ci/ffmpeg-values.yaml +++ /dev/null @@ -1 +0,0 @@ -imageSelector: ffmpegImage diff --git a/charts/incubator/local-ai/icon.png b/charts/incubator/local-ai/icon.png deleted file mode 100644 index 283199dc573..00000000000 Binary files a/charts/incubator/local-ai/icon.png and /dev/null differ diff --git a/charts/incubator/local-ai/.helmignore b/charts/stable/local-ai/.helmignore similarity index 100% rename from charts/incubator/local-ai/.helmignore rename to charts/stable/local-ai/.helmignore diff --git a/charts/incubator/local-ai/CHANGELOG.md b/charts/stable/local-ai/CHANGELOG.md similarity index 100% rename from charts/incubator/local-ai/CHANGELOG.md rename to charts/stable/local-ai/CHANGELOG.md diff --git a/charts/incubator/local-ai/Chart.yaml b/charts/stable/local-ai/Chart.yaml similarity index 75% rename from charts/incubator/local-ai/Chart.yaml rename to charts/stable/local-ai/Chart.yaml index fa6227b4821..3a4020372b9 100644 --- a/charts/incubator/local-ai/Chart.yaml +++ b/charts/stable/local-ai/Chart.yaml @@ -1,12 +1,12 @@ apiVersion: v2 -appVersion: "1.21.0" +appVersion: "1.25.0" dependencies: - name: common repository: https://library-charts.truecharts.org - version: 12.15.0 + version: 14.0.3 deprecated: false description: Self-hosted, community-driven, local OpenAI-compatible API. -home: https://truecharts.org/charts/incubator/local-ai +home: https://truecharts.org/charts/stable/local-ai icon: https://truecharts.org/img/hotlink-ok/chart-icons/local-ai.png keywords: - local-ai @@ -18,10 +18,10 @@ maintainers: url: https://truecharts.org name: local-ai sources: - - https://github.com/truecharts/charts/tree/master/charts/incubator/local-ai + - https://github.com/truecharts/charts/tree/master/charts/stable/local-ai - https://github.com/go-skynet/LocalAI type: application -version: 0.0.2 +version: 0.0.3 annotations: truecharts.org/catagories: | - ai diff --git a/charts/incubator/local-ai/README.md b/charts/stable/local-ai/README.md similarity index 100% rename from charts/incubator/local-ai/README.md rename to charts/stable/local-ai/README.md diff --git a/charts/stable/local-ai/icon.png b/charts/stable/local-ai/icon.png new file mode 100644 index 00000000000..57545a15a79 Binary files /dev/null and b/charts/stable/local-ai/icon.png differ diff --git a/charts/incubator/local-ai/questions.yaml b/charts/stable/local-ai/questions.yaml similarity index 75% rename from charts/incubator/local-ai/questions.yaml rename to charts/stable/local-ai/questions.yaml index 68441478ec9..3e7bcb920ff 100644 --- a/charts/incubator/local-ai/questions.yaml +++ b/charts/stable/local-ai/questions.yaml @@ -51,48 +51,67 @@ questions: description: Cublas - value: clblas description: Clblas - - variable: rebuild - label: Rebuild - description: Set to false to disable rebuilding from source. - schema: - type: boolean - default: false - - variable: go_tags - label: Go Tags - schema: - type: string - default: "stablediffusion" - show_if: [[rebuild, "=", true]] - enum: - - value: stablediffusion - description: Stable Diffusion - - value: tts - description: TTS - - variable: context_size - label: Context Size - description: Default models context size. - schema: - type: string - default: "512" - variable: debug label: Debug description: Enable Debug Mode. schema: type: boolean - default: true - - variable: cors_settings - label: Show Cors Policy Settings + default: false + - variable: galleries + label: Galleries + description: Models to install that will be visible in /models/available. + schema: + type: list + default: + - name: model-gallery + url: github:go-skynet/model-gallery/index.yaml + items: + - variable: galleryEntry + label: Gallery Type Entry + schema: + type: dict + additional_attrs: true + attrs: + - variable: name + label: Name + schema: + type: string + required: true + default: "" + - variable: url + label: Url + schema: + type: string + required: true + default: "" + - variable: preload_models + label: Preload Models + description: Preload models on start. + schema: + type: list + default: + - url: github:go-skynet/model-gallery/gpt4all-j.yaml + items: + - variable: preloadEntry + label: Preload Type Entry + schema: + type: dict + additional_attrs: true + attrs: + - variable: url + label: Url + schema: + type: string + required: true + default: "" + - variable: cors + label: Enable CORS schema: type: boolean - default: false + default: true show_subquestions_if: true subquestions: - - variable: CORS - label: Enable CORS - schema: - type: boolean - default: true - - variable: CORS_ALLOW_ORIGINS + - variable: cors_allow_origins label: Cors Allows Origins schema: type: string diff --git a/charts/incubator/local-ai/templates/NOTES.txt b/charts/stable/local-ai/templates/NOTES.txt similarity index 100% rename from charts/incubator/local-ai/templates/NOTES.txt rename to charts/stable/local-ai/templates/NOTES.txt diff --git a/charts/incubator/local-ai/templates/common.yaml b/charts/stable/local-ai/templates/common.yaml similarity index 100% rename from charts/incubator/local-ai/templates/common.yaml rename to charts/stable/local-ai/templates/common.yaml diff --git a/charts/incubator/local-ai/values.yaml b/charts/stable/local-ai/values.yaml similarity index 63% rename from charts/incubator/local-ai/values.yaml rename to charts/stable/local-ai/values.yaml index be604054f8e..cac0c43cf5c 100644 --- a/charts/incubator/local-ai/values.yaml +++ b/charts/stable/local-ai/values.yaml @@ -1,27 +1,27 @@ image: repository: tccr.io/truecharts/local-ai pullPolicy: IfNotPresent - tag: v1.21.0@sha256:ab2b3e391effc9a4c5bde8add39e060e9b46558491599550bbb423da191f0461 + tag: v1.25.0@sha256:fc9f189222c85eddfd215ebd714f0561780ac585495e943ba2fed00756424d73 ffmpegImage: repository: tccr.io/truecharts/local-ai-ffmpeg pullPolicy: IfNotPresent - tag: v1.21.0@sha256:bdf5ad52dd91f7eb45f231172c38c08716000c2a0dcdd5f029e939ac78076543 + tag: v1.25.0@sha256:fc03e1038bb584153499c60ca3f71adeab67b02752608278cc64047cd0b5851b cublasCuda12Image: repository: tccr.io/truecharts/local-ai-cublas-cuda12 pullPolicy: IfNotPresent - tag: v1.21.0-cublas@sha256:b081e33b37252b71ef5f2c1e78cbbb8530d850693cbcf853ced6d2a43c9d98be + tag: v1.25.0-cublas@sha256:e0a20514840804c59f1478043674be54c500a7d685cfae18469b075912e36091 cublasCuda12FfmpegImage: repository: tccr.io/truecharts/local-ai-cublas-cuda12-ffmpeg pullPolicy: IfNotPresent - tag: v1.21.0-cublas-cuda12@sha256:61f25376a200298898e8e47a2a98584fd8a1dd2206a6139cd42fa2686a7371f0 + tag: v1.25.0-cublas-cuda12@sha256:0bd571310d7e4246cc622ec1e955596b23840205e7a7d2c62fddd7874da4fdfa cublasCuda11Image: repository: tccr.io/truecharts/local-ai-cublas-cuda11 pullPolicy: IfNotPresent - tag: v1.21.0-cublas@sha256:f62226611d79d7c3278ff51609d79d26f0da8aa399a2eb91a0e0e7e68e0a561b + tag: v1.25.0-cublas@sha256:a34ca5e62a5efeb8f73af60705a8ce32fb4c6f4c7dab43181b1956420231764b cublasCuda11FfmpegImage: repository: tccr.io/truecharts/local-ai-cublas-cuda11-ffmpeg pullPolicy: IfNotPresent - tag: v1.21.0-cublas-cuda11@sha256:09935552112e52bc40fb11a106c54132c8fc8f1b534a04c4cd3580082f4339f1 + tag: v1.25.0-cublas-cuda11@sha256:bc8b085ca58b6a24d35be4e925340010b50fa01aaee06f2495e21d7f2feeaf1c securityContext: container: @@ -40,16 +40,14 @@ service: localai: # Specify a build type. Available: cublas, openblas, clblas. build_type: "openblas" - rebuild: false - # requires REBUILD=true | stablediffusion, tts - # stablediffusion: image generation with stablediffusion - # tts: enables text-to-speech with go-piper - go_tags: "stablediffusion" - context_size: "512" - debug: true + debug: false cors: true cors_allow_origins: "*" - # galleries: [{"name":"model-gallery", "url":"github:go-skynet/model-gallery/index.yaml"}] + galleries: [] + # - name: model-gallery + # url: github:go-skynet/model-gallery/index.yaml + preload_models: [] + # url: github:go-skynet/model-gallery/gpt4all-j.yaml # UPLOAD_LIMIT workload: @@ -68,19 +66,19 @@ workload: path: /readyz startup: enabled: true - type: http - path: /readyz + type: tcp imageSelector: image env: ADDRESS: ":{{ .Values.service.main.ports.main.port }}" MODELS_PATH: "{{ .Values.persistence.models.mountPath }}" IMAGE_PATH: "{{ .Values.persistence.images.mountPath }}" BUILD_TYPE: "{{ .Values.localai.build_type }}" - REBUILD: "{{ .Values.localai.rebuild }}" - GO_TAGS: "{{ .Values.localai.go_tags }}" - CONTEXT_SIZE: "{{ .Values.localai.context_size }}" + # breaks chart if true, keep it false. + REBUILD: false DEBUG: "{{ .Values.localai.debug }}" CORS: "{{ .Values.localai.cors }}" + GALLERIES: "{{ toJson .Values.localai.galleries }}" + PRELOAD_MODELS: "{{ toJson .Values.localai.preload_models }}" CORS_ALLOW_ORIGINS: "{{ .Values.localai.cors_allow_origins }}" persistence: