cred = credential.Credential(SECRET_ID, SECRET_KEY)httpProfile = HttpProfile()httpProfile.endpoint = "nlp.tencentcloudapi.com"clientProfile
exports.main = async (event, context) => { const { content } = event const res = await axios.post('https://nlp.tencentcloudapi.com
替换为腾讯云访问秘钥即可 HttpProfile httpProfile = new HttpProfile(); httpProfile.setEndpoint("nlp.tencentcloudapi.com...输入示例 https://nlp.tencentcloudapi.com/?Action=TextCorrection &Text="令天天气很好,我们很早起床,去学小读书。"
, "secretKey"); HttpProfile httpProfile = new HttpProfile(); httpProfile.setEndpoint("nlp.tencentcloudapi.com
models, nlp_clientdef create_client(): http_profile = HttpProfile() http_profile.endpoint = "nlp.tencentcloudapi.com
credential.Credential("你的key", "你的secret") httpProfile = HttpProfile() httpProfile.endpoint = "nlp.tencentcloudapi.com