mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 09:30:43 +00:00
fix: allow LM Studio local auth marker
This commit is contained in:
@@ -243,7 +243,11 @@ export async function resolveLmstudioRuntimeApiKey(params: {
|
||||
if (shouldSuppressResolvedRuntimeApiKeyForHeaderAuth(resolved.source, hasAuthorizationHeader)) {
|
||||
return await resolveConfiguredApiKeyOrThrow();
|
||||
}
|
||||
if (isNonSecretApiKeyMarker(resolvedApiKey) && resolvedApiKey !== CUSTOM_LOCAL_AUTH_MARKER) {
|
||||
if (
|
||||
isNonSecretApiKeyMarker(resolvedApiKey) &&
|
||||
resolvedApiKey !== CUSTOM_LOCAL_AUTH_MARKER &&
|
||||
resolvedApiKey !== LMSTUDIO_LOCAL_API_KEY_PLACEHOLDER
|
||||
) {
|
||||
return await resolveConfiguredApiKeyOrThrow();
|
||||
}
|
||||
return resolvedApiKey;
|
||||
|
||||
Reference in New Issue
Block a user