翻译(TranslatorReq)
数据结构
INTLTranslatorReq:翻译请求
| 参 数 | 类型 | 说明 | 备注 |
|---|---|---|---|
| srcLang | string | 原始语言 默认:auto | 必填 |
| targetLang | string | 目标语言 默认:空 | 必填 |
| translateTexts | string | 翻译内容,格式为 "[\"xxx\", \"xxx\"]",最多5组默认:空 | 必填 |
| topic | string | 翻译文本的背景信息 默认:空 | 选填 |
| pastConversation | string | 历史对话内容 默认:空 | 选填 |
| noCache | string | 是否要禁用缓存 true:不需要缓存,false:需要缓存 默认:false | 选填 |