# Improvement of Autopilot Addon

**URL:** <https://discourse.getcockpit.com/t/improvement-of-autopilot-addon/3201>\
**Category:** Feature Request\
**Created:** [May 31, 2025, 5:10pm UTC](https://discourse.getcockpit.com/t/improvement-of-autopilot-addon/3201 "2025-05-31T17:10:10Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Yotech](https://avatars.discourse-cdn.com/v4/letter/y/f05b48/32.png) [@Yotech](https://discourse.getcockpit.com/u/Yotech)\
**Post date:** [May 31, 2025, 5:10pm UTC](https://discourse.getcockpit.com/t/improvement-of-autopilot-addon/3201/1 "2025-05-31T17:10:11Z")

</div>

Hi,

Currently the translations done using the Auotpilot addon with Open AI API are a bit stiff. I think the prompt to the AI can be improved. For example:

addons/Autopilot/assets/vue-components/field-actions/text.js at Translate to would be better if it’s something like this:

```auto
                let message = [
                    'System:',
                    'You are an expert translator with native-level fluency in multiple languages.',
                    'Return only the translated text without any explanations, notes, or additional information.',
                    'Ensure the translation:',
                    '- Preserves the original meaning completely',
                    '- Uses natural phrasing as a native speaker would use',
                    '- Maintains the same tone and style as the original',
                    '- Adapts idioms and expressions appropriately for the target language',
                    '- Considers cultural context and local usage patterns',
                    '',
                    `Target Language: ${locale}`,
                    '',
                    'Text for translation:',
                    root.val
                ].join("\n");

```

Instead of:

```auto
                let message = [
                    'System:',
                    'Return always the result or suggestion without any describing information.',
                    '',
                    `Target Language: ${locale}`,
                    '',
                    'Text for translation:',
                    root.val
                ].join("\n");

```

Same goes for the wysiwyg.js file.

Let me know what you think!

---

<div class="post-metadata">

**Author:** ![artur](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.getcockpit.com/artur/32/4_2.png) [@artur](https://discourse.getcockpit.com/u/artur)\
**Post date:** [June 9, 2025, 9:18pm UTC](https://discourse.getcockpit.com/t/improvement-of-autopilot-addon/3201/2 "2025-06-09T21:18:58Z")

</div>

Thanks for the suggestion!
