Refactor code structure for improved readability and maintainability

This commit is contained in:
2026-09-07 09:40:36 +02:00
parent 98052adb47
commit 359f5a4b3d
14 changed files with 6697 additions and 4 deletions
+8 -3
View File
@@ -7,11 +7,15 @@ ini_set('error_log', __DIR__ . '/../errors.log');
ini_set('display_errors', '0');
error_reporting(E_ALL);
define('AI_SITE_LLM_API_BASE_URI', 'http://ai2:11434/v1');
// define('AI_SITE_LLM_API_BASE_URI', 'http://ai2:11434/v1');
// $apiKey = 'sk-Y1FrlvtAV4PWwK40TSVq-Q';
// $model = 'unsloth/gemma-4-12B-it-qat-GGUF:Q4_K_XL';
define('AI_SITE_LLM_API_BASE_URI', 'http://localhost:8080/v1');
$apiKey = 'sk-Y1FrlvtAV4PWwK40TSVq-Q';
$model = 'bloomer010/Ling-3.0-tiny-GGUF:Q4_K_M';
$pexelsKey = 'Clyqp9i9pewaxiiAdqVya0yZuuedjHtUtJdjRipNltp7wf0dY8K10h4h';
$apiKey = 'sk-Y1FrlvtAV4PWwK40TSVq-Q';
$model = 'unsloth/gemma-4-12B-it-qat-GGUF:Q4_K_XL';
$maxTokens = 32768;
$reasoningEffort = 'medium';
$httpTimeoutSeconds = (float) (getenv('LLAMA_HTTP_TIMEOUT') ?: '600');
@@ -312,6 +316,7 @@ Task:
- On every run, first choose a unique page concept with a specific topic, visual theme, and style direction.
- Then generate one complete, production-ready HTML document from scratch.
- The page should be fully in English, including all text content and any text in images.
- Output only the raw HTML page, no markdown code fences.
Hard output rules:
- Return only raw HTML. No markdown. No code fences. No explanations.