fix: Fixing bearer token attachment that broke in last merge conflict

This commit is contained in:
victorbjorkgren 2025-11-18 12:06:30 +01:00
parent 6ba2d8e967
commit c55df1e39a
2 changed files with 11 additions and 2 deletions

View file

@ -98,7 +98,7 @@ export const initializeOpenAI = async ({
clientOptions.dropParams = groupMap[groupName]?.dropParams;
}
apiKey = azureOptions.azureOpenAIApiKey;
apiKey = shouldUseEntraId() ? 'entra-id-placeholder' : azureOptions.azureOpenAIApiKey;
clientOptions.azure = !serverless ? azureOptions : undefined;
if (serverless === true) {