mirror of https://github.com/openclaw/openclaw.git
Context-engine plugins (e.g. lossless-claw) that call LLM APIs via completeSimple cannot resolve API keys from the main OpenClaw config. This causes repeated 'No API key for provider' errors and forces fallback to truncation. Add runtime.modelAuth to PluginRuntimeCore with getApiKeyForModel and resolveApiKeyForProvider so plugins can resolve credentials through the standard auth pipeline (config, env vars, auth profiles). Also re-export these helpers and the ResolvedProviderAuth type from the plugin-sdk barrel for direct import by plugin authors. Fixes #40902 |
||
|---|---|---|
| .. | ||
| plugin-runtime-mock.ts | ||
| runtime-env.ts | ||
| start-account-context.ts | ||