mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-17 08:50:15 +01:00
🔑 fix: use apiKey instead of openAIApiKey in OpenAI-like Config (#7337)
This commit is contained in:
parent
6dd1b39886
commit
f2f285ca1e
1 changed files with 1 additions and 1 deletions
|
|
@ -136,7 +136,7 @@ function getLLMConfig(apiKey, options = {}, endpoint = null) {
|
||||||
Object.assign(llmConfig, azure);
|
Object.assign(llmConfig, azure);
|
||||||
llmConfig.model = llmConfig.azureOpenAIApiDeploymentName;
|
llmConfig.model = llmConfig.azureOpenAIApiDeploymentName;
|
||||||
} else {
|
} else {
|
||||||
llmConfig.openAIApiKey = apiKey;
|
llmConfig.apiKey = apiKey;
|
||||||
// Object.assign(llmConfig, {
|
// Object.assign(llmConfig, {
|
||||||
// configuration: { apiKey },
|
// configuration: { apiKey },
|
||||||
// });
|
// });
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue