mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-16 16:30:15 +01:00
feature: Ask for mongodb url during the npm install
This commit is contained in:
parent
3ff8d6f90b
commit
cefdd1fb88
1 changed files with 6 additions and 0 deletions
|
|
@ -97,6 +97,12 @@ const askQuestion = (query) => {
|
||||||
env['OPENAI_MODELS'] = "gpt-3.5-turbo,gpt-3.5-turbo-0301,text-davinci-003"
|
env['OPENAI_MODELS'] = "gpt-3.5-turbo,gpt-3.5-turbo-0301,text-davinci-003"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Ask about mongodb
|
||||||
|
const mongodb = await askQuestion(
|
||||||
|
'What is your mongodb url? (default: mongodb://127.0.0.1:27017/LibreChat)'
|
||||||
|
);
|
||||||
|
env['MONGO_URI'] = mongodb || 'mongodb://127.0.0.1:27017/LibreChat';
|
||||||
|
|
||||||
// Update the env file
|
// Update the env file
|
||||||
loader.writeEnvFile(rootEnvPath, env);
|
loader.writeEnvFile(rootEnvPath, env);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue