Phrase Bring Your Own (BYO) Engine integration

This page explains how to configure Companion as a Bring Your Own (BYO) Engine in Phrase Language AI.

Overview

Companion implements the Phrase BYO Engine API so it can be connected as an engine in a Phrase Language AI MT profile.

Not supported yet

MT glossary handling

MT glossaries are configured in Phrase Language AI (MT glossaries tab) and then attached to the selected engine profile on the Phrase Language AI page.

In this BYO implementation, glossary terms managed in Phrase are not applied by Companion yet through the BYO flow.

If your MT provider supports glossary configuration natively, configure glossary on the provider side (for example, in Language Weaver provider configuration, or in another provider-specific glossary/custom model configuration).

Companion BYO Engine configuration in Phrase

Use the following values when adding the engine in Phrase:

Phrase BYO engine configuration example

Example of BYO engine setup in Phrase Language AI.

Credentials and connection

Parameter

Value / guidance

Base engine URL

https://companion.languageweaver.com/api/PhraseMT/v4

Authentication method

Client credentials (OAuth 2.0)

Token URL

https://companion.languageweaver.com/api/PhraseMT/v4/token

Client ID / Client secret

Use the Azure AD application credentials assigned to your environment.

Use translation cache

Yes (recommended default).

Custom labels (metadata)

Companion consumes the following custom labels:

Label key

Required

Description

CompanionAlias

Yes

MT engine configuration alias used by Companion.

CompanionLabels

No

Comma-separated labels forwarded to Companion processing.

CompanionLabels format:

  • labelTag

  • labelName=labelValue

  • Multiple labels are comma-separated: label1,label2,name=value

Phrase dynamic metadata placeholders can be used in custom labels, for example {project_uid}, {job_uid}, {idm_organization_uid}.

Migration guide (legacy engine -> BYO)

Legacy MT engine configuration example

Figure: Legacy MT engine configuration (migration reference).

Use the following mapping when moving from legacy engine configuration to Phrase BYO Engine configuration.

Legacy configuration

BYO configuration

Azure AD client Id

Client ID

Azure AD client Secret

Client secret

Configuration alias

Custom label key CompanionAlias with alias value

Additional BYO-only values must be added:

  • Base engine URL: https://companion.languageweaver.com/api/PhraseMT/v4

  • Authentication method: Client credentials (OAuth 2.0)

  • Token endpoint URL: https://companion.languageweaver.com/api/PhraseMT/v4/token

  • Use translation cache: Yes

References