1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
PromptTemplateProvider.php
См. документацию.
1<?php
2declare(strict_types=1);
3
4namespace Bitrix\Landing\Copilot\Generation;
5
7{
8 protected array $previewTemplates = [
9 "[{#prompt}][, for theme: {#siteTopic}][, {#style} style]",
10 ];
11 protected array $baseTemplates = [
12 "[{#prompt}][, for theme: {#siteTopic}][, color theme: {#color}][, {#style} style]",
13 ];
14 protected array $bgTemplates = [
15 "Create a minimalistic website background image[ in {#style} style][ using {#color} tones][, inspired by {#prompt} themes][ and {#siteTopic}]. The design should have soft textures or simple patterns that don’t overpower the content. Ensure the image remains uncluttered, with no objects in the center, leaving ample space for text and other elements.",
16 ];
18 "[theme: {#siteTopic}][, on background color: {#color}][, {#style} style]",
19 "[theme: {#siteTopic}][, color theme: {#color}][, {#style} style]",
20 "[create an image with the theme: {#siteTopic}][, using the color palette: {#color}][, in the {#style} style]",
21 ];
22
23 public function getPreviewTemplate(): string
24 {
25 return $this->previewTemplates[0];
26 }
27
28 public function getBaseTemplate(): string
29 {
30 return $this->baseTemplates[0];
31 }
32
33 public function getBgTemplate(): string
34 {
35 return $this->bgTemplates[0];
36 }
37
38 public function getRandomReserveTemplate(): string
39 {
40 return $this->reserveTemplates[array_rand($this->reserveTemplates)];
41 }
42}
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
Определения file_new.php:804