diff --git a/api/server/services/Endpoints/openAI/llm.js b/api/server/services/Endpoints/openAI/llm.js index fad9139a16..c1fd090b28 100644 --- a/api/server/services/Endpoints/openAI/llm.js +++ b/api/server/services/Endpoints/openAI/llm.js @@ -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 }, // });