added translate textadmin excel
This commit is contained in:
@@ -114,6 +114,18 @@ module.exports = {
|
||||
localhost_url: '',
|
||||
localhost_username: '',
|
||||
localhost_password: '',
|
||||
llm_api_keys: {
|
||||
gemini_api_key: '',
|
||||
openai_api_key: '',
|
||||
},
|
||||
};
|
||||
}
|
||||
|
||||
// Ensure llm_api_keys exists in existing configs
|
||||
if (!config.llm_api_keys) {
|
||||
config.llm_api_keys = {
|
||||
gemini_api_key: '',
|
||||
openai_api_key: '',
|
||||
};
|
||||
}
|
||||
|
||||
@@ -149,6 +161,16 @@ module.exports = {
|
||||
initial: config.localhost_password,
|
||||
}).run();
|
||||
|
||||
config.llm_api_keys.gemini_api_key = await new Input({
|
||||
message: `If you want to use Gemini AI features, please insert\nyour Gemini API key. Otherwise leave blank >`,
|
||||
initial: config.llm_api_keys.gemini_api_key,
|
||||
}).run();
|
||||
|
||||
config.llm_api_keys.openai_api_key = await new Input({
|
||||
message: `If you want to use OpenAI features, please insert\nyour OpenAI API key. Otherwise leave blank >`,
|
||||
initial: config.llm_api_keys.openai_api_key,
|
||||
}).run();
|
||||
|
||||
print.info(`
|
||||
|
||||
${JSON.stringify(config)}
|
||||
|
||||
Reference in New Issue
Block a user