forked from Wavyzz/dolibarr
Clean code
This commit is contained in:
@@ -24,13 +24,11 @@
|
|||||||
|
|
||||||
// Load Dolibarr environment
|
// Load Dolibarr environment
|
||||||
require '../../main.inc.php';
|
require '../../main.inc.php';
|
||||||
|
|
||||||
global $langs, $user, $conf;
|
|
||||||
|
|
||||||
// Libraries
|
|
||||||
require_once DOL_DOCUMENT_ROOT."/core/lib/admin.lib.php";
|
require_once DOL_DOCUMENT_ROOT."/core/lib/admin.lib.php";
|
||||||
require_once '../lib/ai.lib.php';
|
require_once '../lib/ai.lib.php';
|
||||||
|
|
||||||
|
$langs->loadLangs(array("admin"));
|
||||||
|
|
||||||
// Parameters
|
// Parameters
|
||||||
$action = GETPOST('action', 'aZ09');
|
$action = GETPOST('action', 'aZ09');
|
||||||
$backtopage = GETPOST('backtopage', 'alpha');
|
$backtopage = GETPOST('backtopage', 'alpha');
|
||||||
|
|||||||
@@ -24,13 +24,11 @@
|
|||||||
|
|
||||||
// Load Dolibarr environment
|
// Load Dolibarr environment
|
||||||
require '../../main.inc.php';
|
require '../../main.inc.php';
|
||||||
|
|
||||||
global $langs, $user;
|
|
||||||
|
|
||||||
// Libraries
|
|
||||||
require_once DOL_DOCUMENT_ROOT."/core/lib/admin.lib.php";
|
require_once DOL_DOCUMENT_ROOT."/core/lib/admin.lib.php";
|
||||||
require_once '../lib/ai.lib.php';
|
require_once '../lib/ai.lib.php';
|
||||||
|
|
||||||
|
$langs->loadLangs(array("admin"));
|
||||||
|
|
||||||
// Parameters
|
// Parameters
|
||||||
$action = GETPOST('action', 'aZ09');
|
$action = GETPOST('action', 'aZ09');
|
||||||
$backtopage = GETPOST('backtopage', 'alpha');
|
$backtopage = GETPOST('backtopage', 'alpha');
|
||||||
|
|||||||
@@ -2434,3 +2434,11 @@ UrlPublicInterfaceHelpAdmin=It is possible to define an alias to the web server
|
|||||||
ExportUseForce=Use the parameter -f
|
ExportUseForce=Use the parameter -f
|
||||||
ExportUseForceHelp=Force to continue the export even when an error is found (Backup may not be reliable)
|
ExportUseForceHelp=Force to continue the export even when an error is found (Backup may not be reliable)
|
||||||
CustomPrompt=Custom prompts
|
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
|
||||||
@@ -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
|
|
||||||
Reference in New Issue
Block a user