Refactor code structure for improved readability and maintainability
This commit is contained in:
+8
-3
@@ -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.
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 27 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 88 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 78 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 163 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 139 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 60 KiB |
Reference in New Issue
Block a user