saved emails, gmail, hotmail start, home, landing etc
This commit is contained in:
13
config.php
13
config.php
@@ -1,11 +1,12 @@
|
||||
<?php
|
||||
// config.php
|
||||
function getApi(){
|
||||
function getApi() {
|
||||
$api_key = getenv('APIKEY');
|
||||
if($api_key){
|
||||
return array('openai_api_key' => $api_key);
|
||||
}else{
|
||||
return false;
|
||||
if ($api_key) {
|
||||
return $api_key;
|
||||
} else {
|
||||
// fallback hardcoded key for testing
|
||||
return "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";
|
||||
}
|
||||
}
|
||||
?>
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user