Skip to content

feat(cli): add configurable backend image fallback tags via CLI options#8818

Closed
localai-bot wants to merge 1 commit intomudler:masterfrom
localai-bot:feature/backend-fallback-tags-v2
Closed

feat(cli): add configurable backend image fallback tags via CLI options#8818
localai-bot wants to merge 1 commit intomudler:masterfrom
localai-bot:feature/backend-fallback-tags-v2

Conversation

@localai-bot
Copy link
Contributor

This PR adds CLI options to configure backend image fallback tags for LocalAI.

Changes

  • Added CLI option (env: )
  • Added CLI option (env: )
  • Added CLI option (env: )

Purpose

These options allow users to customize the fallback tag patterns used when downloading backend images from galleries. The fallback logic was already present in using environment variables, but was not exposed via CLI.

Default Values

  • Release tag: latest
  • Branch tag: master
  • Dev suffix: development

Usage Example

local-ai run --backend-images-release-tag=v1.0 --backend-images-branch-tag=main

Related

This recreates the functionality from PR #8674 which was closed to allow re-creation from a clean state.

Add three new CLI options to configure backend image fallback tags:
- --backend-images-release-tag: Release tag for backend images (default: latest)
- --backend-images-branch-tag: Branch tag for backend images (default: master)
- --backend-dev-suffix: Development suffix for backend images (default: development)

These options allow users to customize the fallback tag patterns used when
downloading backend images from galleries. The values are also available via
environment variables:
- LOCALAI_BACKEND_IMAGES_RELEASE_TAG
- LOCALAI_BACKEND_IMAGES_BRANCH_TAG
- LOCALAI_BACKEND_DEV_SUFFIX

The existing fallback logic in core/gallery/backends.go already supports
these environment variables, so this change just exposes them as CLI options.
@netlify
Copy link

netlify bot commented Mar 6, 2026

Deploy Preview for localai ready!

Name Link
🔨 Latest commit 8abee9f
🔍 Latest deploy log https://app.netlify.com/projects/localai/deploys/69aafc53be8e440009d232a1
😎 Deploy Preview https://deploy-preview-8818--localai.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@mudler mudler closed this Mar 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants