Refactor project

This commit is contained in:
TheAlluringCO
2025-07-10 00:21:08 +02:00
parent 6af2403497
commit bb06ed902b
11 changed files with 81 additions and 86 deletions

View File

@@ -1,7 +1,11 @@
<?php
// config.php
return [
'openai_api_key' => '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',
];
function getApi(){
$api_key = getenv('APIKEY');
if($api_key){
return array('openai_api_key' => $api_key);
}else{
return false;
}
}
?>