2
0
forked from Wavyzz/dolibarr

Clean code

This commit is contained in:
Laurent Destailleur
2024-02-14 01:42:38 +01:00
parent ad8503cd28
commit a6ef430ca1
4 changed files with 13 additions and 17 deletions

View File

@@ -24,13 +24,11 @@
// Load Dolibarr environment
require '../../main.inc.php';
global $langs, $user, $conf;
// Libraries
require_once DOL_DOCUMENT_ROOT."/core/lib/admin.lib.php";
require_once '../lib/ai.lib.php';
$langs->loadLangs(array("admin"));
// Parameters
$action = GETPOST('action', 'aZ09');
$backtopage = GETPOST('backtopage', 'alpha');

View File

@@ -24,13 +24,11 @@
// Load Dolibarr environment
require '../../main.inc.php';
global $langs, $user;
// Libraries
require_once DOL_DOCUMENT_ROOT."/core/lib/admin.lib.php";
require_once '../lib/ai.lib.php';
$langs->loadLangs(array("admin"));
// Parameters
$action = GETPOST('action', 'aZ09');
$backtopage = GETPOST('backtopage', 'alpha');

View File

@@ -2434,3 +2434,11 @@ UrlPublicInterfaceHelpAdmin=It is possible to define an alias to the web server
ExportUseForce=Use the parameter -f
ExportUseForceHelp=Force to continue the export even when an error is found (Backup may not be reliable)
CustomPrompt=Custom prompts
AiDescription=AI (Artificial Intelligence) features
AiDescriptionLong=Provides AI (Artificial Intelligence) features in different part of the application. Need external AI API.
AI_KEY_API_CHATGPT= Key for ChatGPT IA api
AiSetup=AI module setup
AiCustomPrompt=AI customs prompt
AI_CONFIGURATIONS_PROMPT=Custom prompt
ImageGeneration=Image generation
AIPromptForFeatures=AI custom prompts for features

View File

@@ -1,8 +0,0 @@
AiDescription=AI (Artificial Intelligence) features
AiDescriptionLong=Provides AI (Artificial Intelligence) features in different part of the application. Need external AI API.
AI_KEY_API_CHATGPT= Key for ChatGPT IA api
AiSetup=AI module setup
AiCustomPrompt=AI customs prompt
AI_CONFIGURATIONS_PROMPT=Custom prompt
ImageGeneration=Image generation
AIPromptForFeatures=AI custom prompts for features