🔑 fix: use apiKey instead of openAIApiKey in OpenAI-like Config (#7337)

This commit is contained in:
Danny Avila 2025-05-12 14:35:14 -04:00 committed by GitHub
parent 6dd1b39886
commit f2f285ca1e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -136,7 +136,7 @@ function getLLMConfig(apiKey, options = {}, endpoint = null) {
Object.assign(llmConfig, azure);
llmConfig.model = llmConfig.azureOpenAIApiDeploymentName;
} else {
llmConfig.openAIApiKey = apiKey;
llmConfig.apiKey = apiKey;
// Object.assign(llmConfig, {
// configuration: { apiKey },
// });