Files
LobsterAI/tests
btc69m979y-dotcomandClaude Opus 4.6 80ecbce347 fix: provide placeholder API key for providers that don't require auth
OpenClaw's gateway requires a non-empty apiKey for every provider,
even local servers (Ollama, vLLM, etc.) that don't enforce auth.
Previously, only Ollama with Anthropic format got a dummy key
('sk-ollama-local'), leaving Ollama with OpenAI format (and any
other no-auth provider) with an empty string. This caused the
gateway to reject requests with "No API key found for provider".

Now both resolveCurrentApiConfig and resolveRawApiConfig supply
'sk-lobsterai-local' as a placeholder whenever the provider does
not require an API key and none is configured.

Closes #452

Co-Authored-By: Claude Opus 4.6 <[email protected]>
2026-03-17 17:09:39 +08:00
..