Specified nmt type model for translation.
This commit is contained in:
@@ -109,6 +109,7 @@ func (gw *Gateway) handleTranslation(msg *config.Message, dest *bridge.Bridge, c
|
|||||||
|
|
||||||
resp, _ := client.Translate(ctx, []string{text}, channelLang, &translate.Options{
|
resp, _ := client.Translate(ctx, []string{text}, channelLang, &translate.Options{
|
||||||
Format: "html",
|
Format: "html",
|
||||||
|
Model: "nmt",
|
||||||
})
|
})
|
||||||
|
|
||||||
text = resp[0].Text
|
text = resp[0].Text
|
||||||
|
|||||||
Reference in New Issue
Block a user