Skip to content

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

Closed
localai-bot wants to merge 2 commits intomudler:masterfrom
localai-bot:redo_pr_8674_clean_20260306_124011
Closed

feat(cli): add configurable backend image fallback tags via CLI options#8812
localai-bot wants to merge 2 commits intomudler:masterfrom
localai-bot:redo_pr_8674_clean_20260306_124011

Conversation

@localai-bot
Copy link
Contributor

This PR implements configurable backend image fallback tags via CLI options as requested in the original PR #8674.

Changes

  • Added three new CLI flags: --backend-images-release-tag, --backend-images-branch-tag, --backend-dev-suffix
  • Added corresponding fields to SystemState to pass configuration through the codebase
  • Added option functions: WithBackendImagesReleaseTag, WithBackendImagesBranchTag, WithBackendDevSuffix
  • Modified getFallbackTagValues to read from SystemState instead of environment variables

Usage

Users can now configure fallback tag patterns via CLI:

local-ai --backend-images-release-tag=custom-tag --backend-images-branch-tag=custom-branch --backend-dev-suffix=custom-suffix

Or via environment variables:

export LOCALAI_BACKEND_IMAGES_RELEASE_TAG=custom-tag
export LOCALAI_BACKEND_IMAGES_BRANCH_TAG=custom-branch
export LOCALAI_BACKEND_DEV_SUFFIX=custom-suffix

This is a clean recreate of the original PR #8811 with only the relevant changes (no unrelated WebSocket or other changes).

localai-bot added 2 commits March 5, 2026 17:12
- Add WebSocket route handling for /v1/responses and /responses endpoints
- Add WebSocket message types to schema (ORWebSocketClientMessage, ORWebSocketServerEvent, etc.)
- Add connection-local cache types for response storage
- Implement initial WebSocket infrastructure (handler to be added in next commit)
- Add three new CLI flags: --backend-images-release-tag, --backend-images-branch-tag, --backend-dev-suffix
- Add corresponding fields to SystemState for passing configuration
- Add WithBackendImagesReleaseTag, WithBackendImagesBranchTag, WithBackendDevSuffix options
- Modify getFallbackTagValues to use SystemState instead of environment variables
- Pass CLI options through to SystemState in run.go

Signed-off-by: localai-bot <localai-bot@users.noreply.github.com>
Signed-off-by: localai-bot <localai-bot@noreply.github.com>
@netlify
Copy link

netlify bot commented Mar 6, 2026

Deploy Preview for localai ready!

Name Link
🔨 Latest commit 00c2243
🔍 Latest deploy log https://app.netlify.com/projects/localai/deploys/69aacbb28267160008d63a18
😎 Deploy Preview https://deploy-preview-8812--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.

@localai-bot
Copy link
Contributor Author

Closing duplicate PR - this was a re-creation attempt of PR #8674 which has been handled separately

@localai-bot localai-bot 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.

1 participant