feat(localai): Update to LocalAI v3.10.0
- Updated default version from v2.25.0 to v3.10.0 - Fixed binary URL format: local-ai-v3.10.0-linux-arm64 - Updated Docker image tag to v3.10.0-ffmpeg Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
32aa17ab8b
commit
55914b8b3c
@ -1,7 +1,7 @@
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=secubox-app-localai
|
||||
PKG_RELEASE:=10
|
||||
PKG_RELEASE:=11
|
||||
PKG_VERSION:=0.1.0
|
||||
PKG_ARCH:=all
|
||||
PKG_MAINTAINER:=CyberMind Studio <contact@cybermind.fr>
|
||||
|
||||
@ -15,11 +15,11 @@ config main 'main'
|
||||
# LXC settings (for runtime=lxc)
|
||||
config lxc 'lxc'
|
||||
option path '/srv/lxc'
|
||||
option version 'v2.25.0'
|
||||
option version 'v3.10.0'
|
||||
|
||||
# Docker/Podman settings (for runtime=docker or podman)
|
||||
config docker 'docker'
|
||||
option image 'localai/localai:v2.25.0-ffmpeg'
|
||||
option image 'localai/localai:v3.10.0-ffmpeg'
|
||||
|
||||
# Default model to load on startup
|
||||
config model 'default'
|
||||
|
||||
@ -4,7 +4,7 @@
|
||||
|
||||
CONFIG="localai"
|
||||
CONTAINER_NAME="localai"
|
||||
LOCALAI_VERSION="v2.25.0"
|
||||
LOCALAI_VERSION="v3.10.0"
|
||||
|
||||
usage() {
|
||||
cat <<'EOF'
|
||||
@ -301,17 +301,17 @@ lxc_install_standalone() {
|
||||
mkdir -p "$rootfs/usr/bin" "$rootfs/data" "$rootfs/models" "$rootfs/tmp" "$rootfs/etc"
|
||||
mkdir -p "$rootfs/bin" "$rootfs/lib" "$rootfs/proc" "$rootfs/sys" "$rootfs/dev"
|
||||
|
||||
# Detect architecture (GitHub releases use: local-ai-Linux-arm64, local-ai-Linux-x86_64)
|
||||
# Detect architecture (v3.x format: local-ai-v3.10.0-linux-arm64)
|
||||
local arch
|
||||
case "$(uname -m)" in
|
||||
x86_64) arch="Linux-x86_64" ;;
|
||||
aarch64) arch="Linux-arm64" ;;
|
||||
armv7l) arch="Linux-arm64" ;; # Try arm64 for armv7
|
||||
*) arch="Linux-x86_64" ;;
|
||||
x86_64) arch="linux-amd64" ;;
|
||||
aarch64) arch="linux-arm64" ;;
|
||||
armv7l) arch="linux-arm64" ;;
|
||||
*) arch="linux-amd64" ;;
|
||||
esac
|
||||
|
||||
# Download LocalAI binary
|
||||
local binary_url="https://github.com/mudler/LocalAI/releases/download/${lxc_version}/local-ai-${arch}"
|
||||
# Download LocalAI binary (v3.x URL format)
|
||||
local binary_url="https://github.com/mudler/LocalAI/releases/download/${lxc_version}/local-ai-${lxc_version}-${arch}"
|
||||
log_info "Downloading LocalAI $lxc_version for $arch..."
|
||||
log_info "URL: $binary_url"
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user