mirror of
https://gh-proxy.org/https://github.com/klinsmaya/LobsterAI.git
synced 2026-11-10 10:16:44 +08:00
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]>