fix(amd): LiteLLM auth override compose order + contract tests#601
Merged
Lightheartdevs merged 1 commit intomainfrom Mar 24, 2026
Merged
fix(amd): LiteLLM auth override compose order + contract tests#601Lightheartdevs merged 1 commit intomainfrom
Lightheartdevs merged 1 commit intomainfrom
Conversation
…act tests The LITELLM_MASTER_KEY= override in docker-compose.amd.yml loaded too early — extensions/services/litellm/compose.yaml loaded after and re-set the key, re-enabling auth. OpenClaw can't send Bearer tokens → 400. Fix: New extensions/services/litellm/compose.amd.yaml loads after compose.yaml via GPU overlay discovery (resolve-compose-stack.sh line 161-163), so the empty override wins. Also adds tests/contracts/test-amd-lemonade-contracts.sh (17 contract tests) covering all AMD/Lemonade integration points. Wired into `make test`. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
LITELLM_MASTER_KEY=indocker-compose.amd.ymlloaded too early —extensions/services/litellm/compose.yamlloaded after and re-set the key, re-enabling auth. Moved override toextensions/services/litellm/compose.amd.yamlwhich loads aftercompose.yamlvia GPU overlay discovery.make test.Compose load order (AMD)
docker-compose.base.ymldocker-compose.amd.ymlextensions/services/litellm/compose.yaml— setsLITELLM_MASTER_KEY=${LITELLM_KEY:-}extensions/services/litellm/compose.amd.yaml— blanksLITELLM_MASTER_KEY=← winsextensions/services/litellm/compose.local.yamlContract tests (17/17 passing)
Compose files exist, entrypoint absolute path, healthcheck /api/v1/health, auth disabled, no master_key in config, libatomic1 installed, image tag pinned, CTX_SIZE configurable, service registry override, schema allows lemonade, APE healthcheck, compose resolver.
Test plan
make testpasses (includes new contract tests)compose.amd.yamlnot loaded, auth unchanged🤖 Generated with Claude Code