Add OPENAI_BASE_URL environment variable
Update commonUtil.ts and devchat.ts to include OPENAI_BASE_URL environment variable.
This commit is contained in:
parent
4944d48f8a
commit
e789e93950
@ -249,7 +249,7 @@ class DevChat {
|
||||
// eslint-disable-next-line @typescript-eslint/naming-convention
|
||||
"OPENAI_API_KEY": llmModelData.api_key,
|
||||
// eslint-disable-next-line @typescript-eslint/naming-convention
|
||||
...llmModelData.api_base? { "OPENAI_API_BASE": llmModelData.api_base } : {}
|
||||
...llmModelData.api_base? { "OPENAI_API_BASE": llmModelData.api_base, "OPENAI_BASE_URL": llmModelData.api_base } : {}
|
||||
};
|
||||
|
||||
// build process options
|
||||
|
@ -73,6 +73,7 @@ async function createOpenAiKeyEnv() {
|
||||
const openAiApiBase = llmModelData.api_base;
|
||||
if (openAiApiBase) {
|
||||
envs['OPENAI_API_BASE'] = openAiApiBase;
|
||||
envs['OPENAI_BASE_URL'] = openAiApiBase;
|
||||
}
|
||||
|
||||
return envs;
|
||||
|
Loading…
x
Reference in New Issue
Block a user