set_translate_option | R Documentation |
set appid and key of translation engine
set_translate_option(
appid,
key,
source = "baidu",
region = "southeastasia",
user_dict = NULL,
user_model = "glm-4"
)
appid |
appid, "bing translate" will not use this input. |
key |
app key |
source |
translation engine |
region |
this is for bing use only, translation engine location, depends on your Azure service setting |
user_dict |
user defined dictionary ID, only used for 'source = "youdao"' |
user_model |
selected model used in for 'source = "chatglm"', one of |
This function allows users to use their own appid and key
No return value, called for side effects
Guangchuang Yu
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.