检测到您已登录华为云国际站账号,为了您更好的体验,建议您访问国际站服务网站 https://www.huaweicloud.com/intl/zh-cn
不再显示此消息
Lack the request parameter, or the request parameter is empty. 缺少请求参数或者参数为空。 请检查请求body是否缺少必须字段,请参考对应API的请求说明。 400 AIS.0012 The request parameter
调用接口出错后,返回的消息体中具体的错误代码及错误信息为: { "error_code":"ModelArts.4204", "error_msg":"Request api error! The API is not subscribed." } 表明您还未订阅该区域下的内容审核服务,请您开通后再使用该服务,详细步骤请参考开通服务。
4。 .build() try: request = RunQueryDocumentModerationJobRequest() request.job_id = "xxxx" response = client
.build() try: request = RunCloseAudioStreamModerationJobRequest() request.job_id = "xxxxx" response = client
print(e.request_id) print(e.error_code) print(e.error_msg) 控制台输出创建音频内容审核作业的结果,创建音频内容审核结果输出到控制台。 {"request_id": "0b111c
status_code) print(e.request_id) print(e.error_code) print(e.error_msg) 控制台输出创建文档内容审核作业的结果。 {"request_id": "c083957284ce1f2c0b910115d8232ec6"
4。 .build() try: request = RunQueryAudioModerationJobRequest() request.job_id = "xxx" //此处需要输入您的jobID
print(e.request_id) print(e.error_code) print(e.error_msg) 控制台输出创建视频内容审核作业的结果,创建视频内容审核结果输出到控制台。 {"request_id": "dbbcb75
status_code) print(e.request_id) print(e.error_code) print(e.error_msg) 控制台输出创建音频流内容审核作业的结果。 { "request_id": "303fbd70c9813
.build(); const request = new moderation.RunQueryDocumentModerationJobRequest(); request.jobId = "xxxx"; const result = client
WithCredential(auth). Build()) request := &model.RunQueryAudioModerationJobRequest{} request.JobId = "" response, err := client
request = RunTextModerationRequest() databody = TextDetectionDataReq( text="test" ) request.body =
status_code) print(e.request_id) print(e.error_code) print(e.error_msg) 控制台输出创建视频流内容审核作业的结果。 { "request_id": "fa520dddb6b54
WithCredential(auth). Build()) request := &model.RunQueryDocumentModerationJobRequest{} request.JobId = "xxxx" response, err :=
.build() try: request = RunCloseVideoStreamModerationJobRequest() request.job_id = "xxxxx" response = client
.build(); const request = new moderation.v3.RunQueryAudioModerationJobRequest(); request.jobId = "xxxxxxx"; //此处需要输入您的jobID
withData(databody); body.withEventType("comment"); request.withBody(body); const result = client.runTextModeration(request); result.then(result => { console
环境变量中密文存放,使用时解密,确保安全; // 本示例以ak和sk保存在环境变量中来实现身份验证为例,运行本示例前请先在本地环境中设置环境变量HUAWEICLOUD_SDK_AK和HUAWEICLOUD_SDK_SK。 ak := os.Getenv("HUAWEICLOUD_SDK_AK")
); body.withData(databody); request.withBody(body); const result = client.runCreateDocumentModerationJob(request); result.then(result => {
->withCredentials($credentials) ->build(); $request = new RunQueryDocumentModerationJobRequest(); $request->setJobId("xxxx"); try { $response