Skip to content

Commit 1c7bd0f

Browse files
committed
Update test for prompt
1 parent 656ead4 commit 1c7bd0f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

spec/services/discourse_ai/translator_spec.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@
1717
it "creates the correct prompt" do
1818
allow(DiscourseAi::Completions::Prompt).to receive(:new).with(
1919
<<~TEXT,
20-
You are a highly skilled translator with expertise in many languages.
20+
You are a highly skilled linguist and web programmer, with expertise in many languages, and very well versed in HTML.
2121
Your task is to identify the language of the text I provide and accurately translate it into this language locale "de" while preserving the meaning, tone, and nuance of the original text.
22-
The text may also contain html tags, which should be preserved in the translation.
23-
Please maintain proper grammar, spelling, and punctuation in the translated version.
22+
The text will contain html tags, which must absolutely be preserved in the translation.
23+
Maintain proper grammar, spelling, and punctuation in the translated version.
2424
Wrap the translated text in a <translation> tag.
2525
TEXT
2626
messages: [{ type: :user, content: text_to_translate, id: "user" }],

0 commit comments

Comments
 (0)