feat(local-ai) move local-ai to stable (#11066)

**Description**
Move Local-AI to stable, update its image to the latest version.

⚒️ Fixes  # <!--(issue)-->

**⚙️ Type of change**

- [ ] ⚙️ Feature/App addition
- [ ] 🪛 Bugfix
- [ ] ⚠️ Breaking change (fix or feature that would cause existing
functionality to not work as expected)
- [ ] 🔃 Refactor of current code

**🧪 How Has This Been Tested?**
<!--
Please describe the tests that you ran to verify your changes. Provide
instructions so we can reproduce. Please also list any relevant details
for your test configuration
-->

**📃 Notes:**
<!-- Please enter any other relevant information here -->

**✔️ Checklist:**

- [X] ⚖️ My code follows the style guidelines of this project
- [X] 👀 I have performed a self-review of my own code
- [ ] #️⃣ I have commented my code, particularly in hard-to-understand
areas
- [ ] 📄 I have made corresponding changes to the documentation
- [ ] ⚠️ My changes generate no new warnings
- [ ] 🧪 I have added tests to this description that prove my fix is
effective or that my feature works
- [X] ⬆️ I increased versions for any altered app according to semantic
versioning

** App addition**

If this PR is an app addition please make sure you have done the
following.

- [ ] 🪞 I have opened a PR on
[truecharts/containers](https://github.com/truecharts/containers) adding
the container to TrueCharts mirror repo.
- [ ] 🖼️ I have added an icon in the Chart's root directory called
`icon.png`

---

_Please don't blindly check all the boxes. Read them and only check
those that apply.
Those checkboxes are there for the reviewer to see what is this all
about and
the status of this PR with a quick glance._

---------

Signed-off-by: Xstar97TheNoob <9399967+xstar97@users.noreply.github.com>
Signed-off-by: Stavros Kois <47820033+stavros-k@users.noreply.github.com>
Co-authored-by: Stavros Kois <47820033+stavros-k@users.noreply.github.com>
This commit is contained in:
Xstar97TheNoob 2023-09-16 06:45:17 -04:00 committed by GitHub
parent a3b4e75470
commit 8629682dd1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
17 changed files with 75 additions and 63 deletions

View File

@ -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

View File

@ -1 +0,0 @@
imageSelector: image

View File

@ -1 +0,0 @@
imageSelector: cublasCuda11FfmpegImage

View File

@ -1 +0,0 @@
imageSelector: cublasCuda11Image

View File

@ -1 +0,0 @@
imageSelector: cublasCuda12FfmpegImage

View File

@ -1 +0,0 @@
imageSelector: cublasCuda12Image

View File

@ -1 +0,0 @@
imageSelector: ffmpegImage

Binary file not shown.

Before

Width:  |  Height:  |  Size: 148 KiB

View File

@ -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

Binary file not shown.

After

Width:  |  Height:  |  Size: 697 KiB

View File

@ -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

View File

@ -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: