You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+17Lines changed: 17 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,23 @@
2
2
3
3
All notable changes to this project will be documented in this file.
4
4
5
+
## 1.2.5 - 2025-04-10
6
+
### Added
7
+
- Added GPT-4.5 Preview to the available models for OpenAI.
8
+
- Added Grok 3 & 2 to the available models for x.AI.
9
+
- Allow generating entries related to the current entry's fields. [Issue #25](https://github.com/convergine/craft-content-buddy/issues/25)
10
+
11
+
### Changed
12
+
- Show a link to the translated pages in the translation overview.
13
+
14
+
### Fixed
15
+
- Buddy button not rendering on dynamically added CKEditor fields. [Issue #36](https://github.com/convergine/craft-content-buddy/issues/36)
16
+
- Issue with migrations not being applied after updates. [Issue #38](https://github.com/convergine/craft-content-buddy/issues/38)
17
+
- Save drafts before translating, and create matrix fields when translating entries that don't exist yet. [Issue #39](https://github.com/convergine/craft-content-buddy/issues/39)
18
+
- Issue with large content translations cut in half when using gpt-3.5-turbo and gpt-4-turbo models.
19
+
- Make sure MatrixBlock translations are only processed in Craft CMS 4.x.
20
+
- Issue with translations removing some HTML tags.
21
+
5
22
## 1.2.4 - 2025-03-19
6
23
### Changed
7
24
- Allow selecting different API versions for DeepL.
Copy file name to clipboardExpand all lines: composer.json
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
"name": "convergine/craft-content-buddy",
3
3
"description": "Content Buddy is an AI-driven CraftCMS plugin that leverages the ChatGPT API to automatically generate and manage multi-language content, including text and images, with customizable settings and features for precise control and enhanced content creation.",
@@ -61,6 +61,28 @@ private function buildTextGenerationRequestBody($model, $prompt, $maxTokensToGen
61
61
];
62
62
}
63
63
64
+
if($isTranslate) {
65
+
$systemContent = '';
66
+
if(str_contains($prompt, '</craft-entry>')) {
67
+
$systemContent = 'You are a translator. Do NOT remove, add new, translate, or alter any HTML (this includes <iframe> tags) or custom tags, especially <craft-entry> tags. These tags must remain exactly as they appear in the input. Example: \'<craft-entry data-entry-id="24"></craft-entry>\' should never be modified. Keep the tags in the same order and format as the original text.';
68
+
} elseif(preg_match('/<[^>]*>/', $prompt)) {
69
+
$systemContent = 'You are a translator. Do NOT remove, add new, translate, or alter any HTML (this includes <iframe> tags) or custom tags. Keep the tags in the same order and format as the original text.';
@@ -61,6 +60,28 @@ private function buildTextGenerationRequestBody($model, $prompt, $maxTokensToGen
61
60
];
62
61
}
63
62
63
+
if($isTranslate) {
64
+
$systemContent = '';
65
+
if(str_contains($prompt, '</craft-entry>')) {
66
+
$systemContent = 'You are a translator. Do NOT remove, add new, translate, or alter any HTML (this includes <iframe> tags) or custom tags, especially <craft-entry> tags. These tags must remain exactly as they appear in the input. Example: \'<craft-entry data-entry-id="24"></craft-entry>\' should never be modified. Keep the tags in the same order and format as the original text.';
67
+
} elseif(preg_match('/<[^>]*>/', $prompt)) {
68
+
$systemContent = 'You are a translator. Do NOT remove, add new, translate, or alter any HTML (this includes <iframe> tags) or custom tags. Keep the tags in the same order and format as the original text.';
0 commit comments