new chatgpt module for api intergration

This commit is contained in:
Mark Gregory
2026-06-24 09:27:27 +01:00
parent 42f1d10f45
commit c5335dc635
40 changed files with 505 additions and 1 deletions
+12
View File
@@ -0,0 +1,12 @@
<?php
use Modules\ChatGPT\Support\ModuleInfo;
if (! function_exists('chatgpt_feature_enabled')) {
/**
* Check if a feature is enabled in the config.
*/
function chatgpt_feature_enabled(string $key): bool
{
return (bool) config(ModuleInfo::nameLower().".features.{$key}", false);
}
}