Skip to content

Commit de4671b

Browse files
committed
update config
1 parent 9db9e1a commit de4671b

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

config/translator.php

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
'lang_path' => lang_path(),
88

99
'translate' => [
10-
'service' => 'deepl',
10+
'service' => 'openai',
1111
'services' => [
1212
'deepl' => [
1313
'key' => env('DEEPL_KEY'),
@@ -25,8 +25,11 @@
2525
'openai' => [
2626
'model' => 'gpt-4o',
2727
'prompt' => '
28-
Fix the grammar and the syntax the following json string while preserving the keys.
29-
Do not change the meaning or the tone of the sentences and never change the keys.
28+
Fix the grammar and the syntax the following json string while respecting the following rules:
29+
- Never change the keys.
30+
- Do not escape nor change HTML tags.
31+
- Do not escape nor change special characters or emojis.
32+
- Do not change the meaning or the tone of the sentences.
3033
',
3134
],
3235
],

0 commit comments

Comments
 (0)