Repository navigation
Conversation
The suite reads LOCALAI_API_KEY into apiKeyURL, but only two specs passed it to the agent. Against a LocalAI with authentication enabled, the identity specs (and the E2E action specs) fail with "401 ... An authentication key is required". Pass WithLLMAPIKey(apiKeyURL) wherever the agent talks to apiURL; with the variable unset nothing changes. Docs-Not-Needed: test-only change, no user-facing behaviour Assisted-by: Claude Code:claude-opus-5-5 Signed-off-by: Stefan Walcz <stefan.walcz@walcz.de>
walcz-de
added a commit
to walcz-de/LocalAI
that referenced
this pull request
Oct 22, 2026
…el, mudler/LocalAGI#521) Nur Testdateien: WithLLMAPIKey(apiKeyURL) in state_test.go/agent_test.go — die Go-Suite des Nachtlaufs laeuft seit der LocalAI-Anmeldung (mudler#1344) sonst in 401 (agntsio mudler#1357). Assisted-by: Claude Code:claude-opus-5-5
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.
The agent suite reads
LOCALAI_API_KEYintoapiKeyURL(core/agent/agent_suite_test.go:18), but only two specs pass it to the agent. Against a LocalAI with authentication enabled, the identity specs fail before they test anything:This adds
WithLLMAPIKey(apiKeyURL)wherever an agent talks toapiURL(2 instate_test.go, 4 inagent_test.go). With the variable unset nothing changes, since an empty key sends no header.Tests: against an authenticated LocalAI,
ginkgo --label-filter='!E2E' --focus identity ./core/agent/went from 1 failed to 3/3 passed;go vet ./core/agentis clean. Test-only change, so no docs.🤖 Generated with Claude Code
https://claude.ai/code/session_01LKrqvpahnF5rKBzf5Z3rAE