fix: allow LM Studio local auth marker

This commit is contained in:
Peter Steinberger
2026-04-20 16:49:42 +01:00
parent 0603ceba23
commit 96a6e1bf55

View File

@@ -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;