- Issue created by @scott_euser
- 🇧🇬Bulgaria valthebald Sofia
In order to provide native translation support, VertexProvider needs to implement Drupal\ai\OperationType\TranslateText\TranslateTextInterface (which has only one translateText() method)
Implementation can use its own endpoint, different from chat() - 🇧🇬Bulgaria valthebald Sofia
Created first working version. Vertex native translation supports 2 modes: Translation LLM (highest quality, limited to 19 languages) and NMT (fastest, works with larger set of languages), see https://cloud.google.com/vertex-ai/generative-ai/docs/translate/translat... for details.
MR in its current state supports only Translation LLM.
Results are promising (as in translation is really fast and has the quality expected from Google translation), but I'd like to support NMT as well before marking MR as ready for review - 🇧🇬Bulgaria valthebald Sofia
Alright, so this worked. It is now possible to create a Translation model in Vertex provider settings form /admin/config/ai/providers/google_vertex:
(on a side note, Vertex provider configuration is relatively complex and would win of a better documentation/examples)
-
valthebald →
committed 1a6c1fc4 on 1.1.x
Issue #3513389 by valthebald: Google Vertex Translation LLM
-
valthebald →
committed 1a6c1fc4 on 1.1.x
- Status changed to Fixed
13 days ago 6:44am 21 May 2025 Automatically closed - issue fixed for 2 weeks with no activity.