(ai_translate) Show the right model name in entity translate tab

Created on 15 May 2025, 20 days ago

Problem/Motivation

Prior to 📌 Discuss: Unify translate operations over ai Active , ai_translate module was using generic "chat" operation for translations, but now it uses "translate_text" operation, which has a different selection of provider/model in AiSettingsForm.

That leads to the wrong model display in the entity translate tab:

Steps to reproduce

  1. Enable AI Translate module
  2. In AI Settings (/admin/config/ai/settings) select default Chat Provider (any provider with more than one model will do)
  3. In AI Settings (/admin/config/ai/settings) select "Chat proxy to LLM" as default Translate Provider, choosing model different from the default chat model
  4. Go to an entity translations tab (/node//translate for a node)

Expected result: You should see "Translate using "
Actual result: "Translate using "

Proposed resolution

In ContentTranslationControllerOverride::alterForm(), check default model for translate_text operation:


Remaining tasks

User interface changes

API changes

Data model changes

              $default_model = $this->providerManager->getSimpleDefaultProviderOptions('translate_text');
🐛 Bug report
Status

Active

Version

1.1

Component

Other Submodules

Created by

🇧🇬Bulgaria valthebald Sofia

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024