alibabacloud-aimiaobi20230801 1.32.2__tar.gz → 1.34.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {alibabacloud_aimiaobi20230801-1.32.2 → alibabacloud_aimiaobi20230801-1.34.0}/ChangeLog.md +12 -0
- {alibabacloud_aimiaobi20230801-1.32.2 → alibabacloud_aimiaobi20230801-1.34.0}/PKG-INFO +1 -1
- alibabacloud_aimiaobi20230801-1.34.0/alibabacloud_aimiaobi20230801/__init__.py +1 -0
- {alibabacloud_aimiaobi20230801-1.32.2 → alibabacloud_aimiaobi20230801-1.34.0}/alibabacloud_aimiaobi20230801/client.py +448 -12
- {alibabacloud_aimiaobi20230801-1.32.2 → alibabacloud_aimiaobi20230801-1.34.0}/alibabacloud_aimiaobi20230801/models.py +1277 -418
- {alibabacloud_aimiaobi20230801-1.32.2 → alibabacloud_aimiaobi20230801-1.34.0}/alibabacloud_aimiaobi20230801.egg-info/PKG-INFO +1 -1
- {alibabacloud_aimiaobi20230801-1.32.2 → alibabacloud_aimiaobi20230801-1.34.0}/alibabacloud_aimiaobi20230801.egg-info/requires.txt +1 -1
- {alibabacloud_aimiaobi20230801-1.32.2 → alibabacloud_aimiaobi20230801-1.34.0}/setup.py +2 -2
- alibabacloud_aimiaobi20230801-1.32.2/alibabacloud_aimiaobi20230801/__init__.py +0 -1
- {alibabacloud_aimiaobi20230801-1.32.2 → alibabacloud_aimiaobi20230801-1.34.0}/LICENSE +0 -0
- {alibabacloud_aimiaobi20230801-1.32.2 → alibabacloud_aimiaobi20230801-1.34.0}/MANIFEST.in +0 -0
- {alibabacloud_aimiaobi20230801-1.32.2 → alibabacloud_aimiaobi20230801-1.34.0}/README-CN.md +0 -0
- {alibabacloud_aimiaobi20230801-1.32.2 → alibabacloud_aimiaobi20230801-1.34.0}/README.md +0 -0
- {alibabacloud_aimiaobi20230801-1.32.2 → alibabacloud_aimiaobi20230801-1.34.0}/alibabacloud_aimiaobi20230801.egg-info/SOURCES.txt +0 -0
- {alibabacloud_aimiaobi20230801-1.32.2 → alibabacloud_aimiaobi20230801-1.34.0}/alibabacloud_aimiaobi20230801.egg-info/dependency_links.txt +0 -0
- {alibabacloud_aimiaobi20230801-1.32.2 → alibabacloud_aimiaobi20230801-1.34.0}/alibabacloud_aimiaobi20230801.egg-info/top_level.txt +0 -0
- {alibabacloud_aimiaobi20230801-1.32.2 → alibabacloud_aimiaobi20230801-1.34.0}/setup.cfg +0 -0
|
@@ -1,3 +1,15 @@
|
|
|
1
|
+
2025-08-15 Version: 1.33.0
|
|
2
|
+
- Support API DeleteFactAuditUrl.
|
|
3
|
+
- Support API GetFactAuditUrl.
|
|
4
|
+
- Support API SubmitFactAuditUrl.
|
|
5
|
+
- Update API AddAuditTerms: add request parameters ExceptionWord.
|
|
6
|
+
- Update API EditAuditTerms: add request parameters ExceptionWord.
|
|
7
|
+
- Update API ListAuditTerms: add response parameters Body.Data.$.ExceptionWord.
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
2025-08-05 Version: 1.32.2
|
|
11
|
+
- Generated python 2023-08-01 for AiMiaoBi.
|
|
12
|
+
|
|
1
13
|
2025-08-04 Version: 1.32.1
|
|
2
14
|
- Update API GetSmartAuditResult: add response parameters Body.Data.ErrorMessage.
|
|
3
15
|
- Update API SubmitSmartAudit: add request parameters ImageUrlList.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = '1.34.0'
|
|
@@ -43,18 +43,24 @@ class Client(OpenApiClient):
|
|
|
43
43
|
|
|
44
44
|
def add_audit_terms_with_options(
|
|
45
45
|
self,
|
|
46
|
-
|
|
46
|
+
tmp_req: ai_miao_bi_20230801_models.AddAuditTermsRequest,
|
|
47
47
|
runtime: util_models.RuntimeOptions,
|
|
48
48
|
) -> ai_miao_bi_20230801_models.AddAuditTermsResponse:
|
|
49
49
|
"""
|
|
50
50
|
@summary 添加审核自定义词库记录
|
|
51
51
|
|
|
52
|
-
@param
|
|
52
|
+
@param tmp_req: AddAuditTermsRequest
|
|
53
53
|
@param runtime: runtime options for this request RuntimeOptions
|
|
54
54
|
@return: AddAuditTermsResponse
|
|
55
55
|
"""
|
|
56
|
-
UtilClient.validate_model(
|
|
56
|
+
UtilClient.validate_model(tmp_req)
|
|
57
|
+
request = ai_miao_bi_20230801_models.AddAuditTermsShrinkRequest()
|
|
58
|
+
OpenApiUtilClient.convert(tmp_req, request)
|
|
59
|
+
if not UtilClient.is_unset(tmp_req.exception_word):
|
|
60
|
+
request.exception_word_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.exception_word, 'ExceptionWord', 'json')
|
|
57
61
|
body = {}
|
|
62
|
+
if not UtilClient.is_unset(request.exception_word_shrink):
|
|
63
|
+
body['ExceptionWord'] = request.exception_word_shrink
|
|
58
64
|
if not UtilClient.is_unset(request.keyword):
|
|
59
65
|
body['Keyword'] = request.keyword
|
|
60
66
|
if not UtilClient.is_unset(request.suggest_word):
|
|
@@ -84,18 +90,24 @@ class Client(OpenApiClient):
|
|
|
84
90
|
|
|
85
91
|
async def add_audit_terms_with_options_async(
|
|
86
92
|
self,
|
|
87
|
-
|
|
93
|
+
tmp_req: ai_miao_bi_20230801_models.AddAuditTermsRequest,
|
|
88
94
|
runtime: util_models.RuntimeOptions,
|
|
89
95
|
) -> ai_miao_bi_20230801_models.AddAuditTermsResponse:
|
|
90
96
|
"""
|
|
91
97
|
@summary 添加审核自定义词库记录
|
|
92
98
|
|
|
93
|
-
@param
|
|
99
|
+
@param tmp_req: AddAuditTermsRequest
|
|
94
100
|
@param runtime: runtime options for this request RuntimeOptions
|
|
95
101
|
@return: AddAuditTermsResponse
|
|
96
102
|
"""
|
|
97
|
-
UtilClient.validate_model(
|
|
103
|
+
UtilClient.validate_model(tmp_req)
|
|
104
|
+
request = ai_miao_bi_20230801_models.AddAuditTermsShrinkRequest()
|
|
105
|
+
OpenApiUtilClient.convert(tmp_req, request)
|
|
106
|
+
if not UtilClient.is_unset(tmp_req.exception_word):
|
|
107
|
+
request.exception_word_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.exception_word, 'ExceptionWord', 'json')
|
|
98
108
|
body = {}
|
|
109
|
+
if not UtilClient.is_unset(request.exception_word_shrink):
|
|
110
|
+
body['ExceptionWord'] = request.exception_word_shrink
|
|
99
111
|
if not UtilClient.is_unset(request.keyword):
|
|
100
112
|
body['Keyword'] = request.keyword
|
|
101
113
|
if not UtilClient.is_unset(request.suggest_word):
|
|
@@ -2377,6 +2389,106 @@ class Client(OpenApiClient):
|
|
|
2377
2389
|
runtime = util_models.RuntimeOptions()
|
|
2378
2390
|
return await self.delete_docs_with_options_async(request, runtime)
|
|
2379
2391
|
|
|
2392
|
+
def delete_fact_audit_url_with_options(
|
|
2393
|
+
self,
|
|
2394
|
+
request: ai_miao_bi_20230801_models.DeleteFactAuditUrlRequest,
|
|
2395
|
+
runtime: util_models.RuntimeOptions,
|
|
2396
|
+
) -> ai_miao_bi_20230801_models.DeleteFactAuditUrlResponse:
|
|
2397
|
+
"""
|
|
2398
|
+
@summary 删除指定的用于事实性审核的 URL。
|
|
2399
|
+
|
|
2400
|
+
@param request: DeleteFactAuditUrlRequest
|
|
2401
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
2402
|
+
@return: DeleteFactAuditUrlResponse
|
|
2403
|
+
"""
|
|
2404
|
+
UtilClient.validate_model(request)
|
|
2405
|
+
body = {}
|
|
2406
|
+
if not UtilClient.is_unset(request.url):
|
|
2407
|
+
body['Url'] = request.url
|
|
2408
|
+
if not UtilClient.is_unset(request.workspace_id):
|
|
2409
|
+
body['WorkspaceId'] = request.workspace_id
|
|
2410
|
+
req = open_api_models.OpenApiRequest(
|
|
2411
|
+
body=OpenApiUtilClient.parse_to_map(body)
|
|
2412
|
+
)
|
|
2413
|
+
params = open_api_models.Params(
|
|
2414
|
+
action='DeleteFactAuditUrl',
|
|
2415
|
+
version='2023-08-01',
|
|
2416
|
+
protocol='HTTPS',
|
|
2417
|
+
pathname='/',
|
|
2418
|
+
method='POST',
|
|
2419
|
+
auth_type='AK',
|
|
2420
|
+
style='RPC',
|
|
2421
|
+
req_body_type='formData',
|
|
2422
|
+
body_type='json'
|
|
2423
|
+
)
|
|
2424
|
+
return TeaCore.from_map(
|
|
2425
|
+
ai_miao_bi_20230801_models.DeleteFactAuditUrlResponse(),
|
|
2426
|
+
self.call_api(params, req, runtime)
|
|
2427
|
+
)
|
|
2428
|
+
|
|
2429
|
+
async def delete_fact_audit_url_with_options_async(
|
|
2430
|
+
self,
|
|
2431
|
+
request: ai_miao_bi_20230801_models.DeleteFactAuditUrlRequest,
|
|
2432
|
+
runtime: util_models.RuntimeOptions,
|
|
2433
|
+
) -> ai_miao_bi_20230801_models.DeleteFactAuditUrlResponse:
|
|
2434
|
+
"""
|
|
2435
|
+
@summary 删除指定的用于事实性审核的 URL。
|
|
2436
|
+
|
|
2437
|
+
@param request: DeleteFactAuditUrlRequest
|
|
2438
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
2439
|
+
@return: DeleteFactAuditUrlResponse
|
|
2440
|
+
"""
|
|
2441
|
+
UtilClient.validate_model(request)
|
|
2442
|
+
body = {}
|
|
2443
|
+
if not UtilClient.is_unset(request.url):
|
|
2444
|
+
body['Url'] = request.url
|
|
2445
|
+
if not UtilClient.is_unset(request.workspace_id):
|
|
2446
|
+
body['WorkspaceId'] = request.workspace_id
|
|
2447
|
+
req = open_api_models.OpenApiRequest(
|
|
2448
|
+
body=OpenApiUtilClient.parse_to_map(body)
|
|
2449
|
+
)
|
|
2450
|
+
params = open_api_models.Params(
|
|
2451
|
+
action='DeleteFactAuditUrl',
|
|
2452
|
+
version='2023-08-01',
|
|
2453
|
+
protocol='HTTPS',
|
|
2454
|
+
pathname='/',
|
|
2455
|
+
method='POST',
|
|
2456
|
+
auth_type='AK',
|
|
2457
|
+
style='RPC',
|
|
2458
|
+
req_body_type='formData',
|
|
2459
|
+
body_type='json'
|
|
2460
|
+
)
|
|
2461
|
+
return TeaCore.from_map(
|
|
2462
|
+
ai_miao_bi_20230801_models.DeleteFactAuditUrlResponse(),
|
|
2463
|
+
await self.call_api_async(params, req, runtime)
|
|
2464
|
+
)
|
|
2465
|
+
|
|
2466
|
+
def delete_fact_audit_url(
|
|
2467
|
+
self,
|
|
2468
|
+
request: ai_miao_bi_20230801_models.DeleteFactAuditUrlRequest,
|
|
2469
|
+
) -> ai_miao_bi_20230801_models.DeleteFactAuditUrlResponse:
|
|
2470
|
+
"""
|
|
2471
|
+
@summary 删除指定的用于事实性审核的 URL。
|
|
2472
|
+
|
|
2473
|
+
@param request: DeleteFactAuditUrlRequest
|
|
2474
|
+
@return: DeleteFactAuditUrlResponse
|
|
2475
|
+
"""
|
|
2476
|
+
runtime = util_models.RuntimeOptions()
|
|
2477
|
+
return self.delete_fact_audit_url_with_options(request, runtime)
|
|
2478
|
+
|
|
2479
|
+
async def delete_fact_audit_url_async(
|
|
2480
|
+
self,
|
|
2481
|
+
request: ai_miao_bi_20230801_models.DeleteFactAuditUrlRequest,
|
|
2482
|
+
) -> ai_miao_bi_20230801_models.DeleteFactAuditUrlResponse:
|
|
2483
|
+
"""
|
|
2484
|
+
@summary 删除指定的用于事实性审核的 URL。
|
|
2485
|
+
|
|
2486
|
+
@param request: DeleteFactAuditUrlRequest
|
|
2487
|
+
@return: DeleteFactAuditUrlResponse
|
|
2488
|
+
"""
|
|
2489
|
+
runtime = util_models.RuntimeOptions()
|
|
2490
|
+
return await self.delete_fact_audit_url_with_options_async(request, runtime)
|
|
2491
|
+
|
|
2380
2492
|
def delete_generated_content_with_options(
|
|
2381
2493
|
self,
|
|
2382
2494
|
request: ai_miao_bi_20230801_models.DeleteGeneratedContentRequest,
|
|
@@ -3011,18 +3123,24 @@ class Client(OpenApiClient):
|
|
|
3011
3123
|
|
|
3012
3124
|
def edit_audit_terms_with_options(
|
|
3013
3125
|
self,
|
|
3014
|
-
|
|
3126
|
+
tmp_req: ai_miao_bi_20230801_models.EditAuditTermsRequest,
|
|
3015
3127
|
runtime: util_models.RuntimeOptions,
|
|
3016
3128
|
) -> ai_miao_bi_20230801_models.EditAuditTermsResponse:
|
|
3017
3129
|
"""
|
|
3018
3130
|
@summary 编辑审核自定义词库记录
|
|
3019
3131
|
|
|
3020
|
-
@param
|
|
3132
|
+
@param tmp_req: EditAuditTermsRequest
|
|
3021
3133
|
@param runtime: runtime options for this request RuntimeOptions
|
|
3022
3134
|
@return: EditAuditTermsResponse
|
|
3023
3135
|
"""
|
|
3024
|
-
UtilClient.validate_model(
|
|
3136
|
+
UtilClient.validate_model(tmp_req)
|
|
3137
|
+
request = ai_miao_bi_20230801_models.EditAuditTermsShrinkRequest()
|
|
3138
|
+
OpenApiUtilClient.convert(tmp_req, request)
|
|
3139
|
+
if not UtilClient.is_unset(tmp_req.exception_word):
|
|
3140
|
+
request.exception_word_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.exception_word, 'ExceptionWord', 'json')
|
|
3025
3141
|
body = {}
|
|
3142
|
+
if not UtilClient.is_unset(request.exception_word_shrink):
|
|
3143
|
+
body['ExceptionWord'] = request.exception_word_shrink
|
|
3026
3144
|
if not UtilClient.is_unset(request.id):
|
|
3027
3145
|
body['Id'] = request.id
|
|
3028
3146
|
if not UtilClient.is_unset(request.keyword):
|
|
@@ -3054,18 +3172,24 @@ class Client(OpenApiClient):
|
|
|
3054
3172
|
|
|
3055
3173
|
async def edit_audit_terms_with_options_async(
|
|
3056
3174
|
self,
|
|
3057
|
-
|
|
3175
|
+
tmp_req: ai_miao_bi_20230801_models.EditAuditTermsRequest,
|
|
3058
3176
|
runtime: util_models.RuntimeOptions,
|
|
3059
3177
|
) -> ai_miao_bi_20230801_models.EditAuditTermsResponse:
|
|
3060
3178
|
"""
|
|
3061
3179
|
@summary 编辑审核自定义词库记录
|
|
3062
3180
|
|
|
3063
|
-
@param
|
|
3181
|
+
@param tmp_req: EditAuditTermsRequest
|
|
3064
3182
|
@param runtime: runtime options for this request RuntimeOptions
|
|
3065
3183
|
@return: EditAuditTermsResponse
|
|
3066
3184
|
"""
|
|
3067
|
-
UtilClient.validate_model(
|
|
3185
|
+
UtilClient.validate_model(tmp_req)
|
|
3186
|
+
request = ai_miao_bi_20230801_models.EditAuditTermsShrinkRequest()
|
|
3187
|
+
OpenApiUtilClient.convert(tmp_req, request)
|
|
3188
|
+
if not UtilClient.is_unset(tmp_req.exception_word):
|
|
3189
|
+
request.exception_word_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.exception_word, 'ExceptionWord', 'json')
|
|
3068
3190
|
body = {}
|
|
3191
|
+
if not UtilClient.is_unset(request.exception_word_shrink):
|
|
3192
|
+
body['ExceptionWord'] = request.exception_word_shrink
|
|
3069
3193
|
if not UtilClient.is_unset(request.id):
|
|
3070
3194
|
body['Id'] = request.id
|
|
3071
3195
|
if not UtilClient.is_unset(request.keyword):
|
|
@@ -6421,6 +6545,102 @@ class Client(OpenApiClient):
|
|
|
6421
6545
|
runtime = util_models.RuntimeOptions()
|
|
6422
6546
|
return await self.get_enterprise_voc_analysis_task_with_options_async(request, runtime)
|
|
6423
6547
|
|
|
6548
|
+
def get_fact_audit_url_with_options(
|
|
6549
|
+
self,
|
|
6550
|
+
request: ai_miao_bi_20230801_models.GetFactAuditUrlRequest,
|
|
6551
|
+
runtime: util_models.RuntimeOptions,
|
|
6552
|
+
) -> ai_miao_bi_20230801_models.GetFactAuditUrlResponse:
|
|
6553
|
+
"""
|
|
6554
|
+
@summary 获取当前正用于事实性审核的信源 URL。
|
|
6555
|
+
|
|
6556
|
+
@param request: GetFactAuditUrlRequest
|
|
6557
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
6558
|
+
@return: GetFactAuditUrlResponse
|
|
6559
|
+
"""
|
|
6560
|
+
UtilClient.validate_model(request)
|
|
6561
|
+
body = {}
|
|
6562
|
+
if not UtilClient.is_unset(request.workspace_id):
|
|
6563
|
+
body['WorkspaceId'] = request.workspace_id
|
|
6564
|
+
req = open_api_models.OpenApiRequest(
|
|
6565
|
+
body=OpenApiUtilClient.parse_to_map(body)
|
|
6566
|
+
)
|
|
6567
|
+
params = open_api_models.Params(
|
|
6568
|
+
action='GetFactAuditUrl',
|
|
6569
|
+
version='2023-08-01',
|
|
6570
|
+
protocol='HTTPS',
|
|
6571
|
+
pathname='/',
|
|
6572
|
+
method='POST',
|
|
6573
|
+
auth_type='AK',
|
|
6574
|
+
style='RPC',
|
|
6575
|
+
req_body_type='formData',
|
|
6576
|
+
body_type='json'
|
|
6577
|
+
)
|
|
6578
|
+
return TeaCore.from_map(
|
|
6579
|
+
ai_miao_bi_20230801_models.GetFactAuditUrlResponse(),
|
|
6580
|
+
self.call_api(params, req, runtime)
|
|
6581
|
+
)
|
|
6582
|
+
|
|
6583
|
+
async def get_fact_audit_url_with_options_async(
|
|
6584
|
+
self,
|
|
6585
|
+
request: ai_miao_bi_20230801_models.GetFactAuditUrlRequest,
|
|
6586
|
+
runtime: util_models.RuntimeOptions,
|
|
6587
|
+
) -> ai_miao_bi_20230801_models.GetFactAuditUrlResponse:
|
|
6588
|
+
"""
|
|
6589
|
+
@summary 获取当前正用于事实性审核的信源 URL。
|
|
6590
|
+
|
|
6591
|
+
@param request: GetFactAuditUrlRequest
|
|
6592
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
6593
|
+
@return: GetFactAuditUrlResponse
|
|
6594
|
+
"""
|
|
6595
|
+
UtilClient.validate_model(request)
|
|
6596
|
+
body = {}
|
|
6597
|
+
if not UtilClient.is_unset(request.workspace_id):
|
|
6598
|
+
body['WorkspaceId'] = request.workspace_id
|
|
6599
|
+
req = open_api_models.OpenApiRequest(
|
|
6600
|
+
body=OpenApiUtilClient.parse_to_map(body)
|
|
6601
|
+
)
|
|
6602
|
+
params = open_api_models.Params(
|
|
6603
|
+
action='GetFactAuditUrl',
|
|
6604
|
+
version='2023-08-01',
|
|
6605
|
+
protocol='HTTPS',
|
|
6606
|
+
pathname='/',
|
|
6607
|
+
method='POST',
|
|
6608
|
+
auth_type='AK',
|
|
6609
|
+
style='RPC',
|
|
6610
|
+
req_body_type='formData',
|
|
6611
|
+
body_type='json'
|
|
6612
|
+
)
|
|
6613
|
+
return TeaCore.from_map(
|
|
6614
|
+
ai_miao_bi_20230801_models.GetFactAuditUrlResponse(),
|
|
6615
|
+
await self.call_api_async(params, req, runtime)
|
|
6616
|
+
)
|
|
6617
|
+
|
|
6618
|
+
def get_fact_audit_url(
|
|
6619
|
+
self,
|
|
6620
|
+
request: ai_miao_bi_20230801_models.GetFactAuditUrlRequest,
|
|
6621
|
+
) -> ai_miao_bi_20230801_models.GetFactAuditUrlResponse:
|
|
6622
|
+
"""
|
|
6623
|
+
@summary 获取当前正用于事实性审核的信源 URL。
|
|
6624
|
+
|
|
6625
|
+
@param request: GetFactAuditUrlRequest
|
|
6626
|
+
@return: GetFactAuditUrlResponse
|
|
6627
|
+
"""
|
|
6628
|
+
runtime = util_models.RuntimeOptions()
|
|
6629
|
+
return self.get_fact_audit_url_with_options(request, runtime)
|
|
6630
|
+
|
|
6631
|
+
async def get_fact_audit_url_async(
|
|
6632
|
+
self,
|
|
6633
|
+
request: ai_miao_bi_20230801_models.GetFactAuditUrlRequest,
|
|
6634
|
+
) -> ai_miao_bi_20230801_models.GetFactAuditUrlResponse:
|
|
6635
|
+
"""
|
|
6636
|
+
@summary 获取当前正用于事实性审核的信源 URL。
|
|
6637
|
+
|
|
6638
|
+
@param request: GetFactAuditUrlRequest
|
|
6639
|
+
@return: GetFactAuditUrlResponse
|
|
6640
|
+
"""
|
|
6641
|
+
runtime = util_models.RuntimeOptions()
|
|
6642
|
+
return await self.get_fact_audit_url_with_options_async(request, runtime)
|
|
6643
|
+
|
|
6424
6644
|
def get_file_content_length_with_options(
|
|
6425
6645
|
self,
|
|
6426
6646
|
request: ai_miao_bi_20230801_models.GetFileContentLengthRequest,
|
|
@@ -15921,6 +16141,122 @@ class Client(OpenApiClient):
|
|
|
15921
16141
|
runtime = util_models.RuntimeOptions()
|
|
15922
16142
|
return await self.run_translate_generation_with_options_async(request, runtime)
|
|
15923
16143
|
|
|
16144
|
+
def run_video_script_generate_with_options(
|
|
16145
|
+
self,
|
|
16146
|
+
request: ai_miao_bi_20230801_models.RunVideoScriptGenerateRequest,
|
|
16147
|
+
runtime: util_models.RuntimeOptions,
|
|
16148
|
+
) -> ai_miao_bi_20230801_models.RunVideoScriptGenerateResponse:
|
|
16149
|
+
"""
|
|
16150
|
+
@summary AI生成视频剪辑脚本
|
|
16151
|
+
|
|
16152
|
+
@param request: RunVideoScriptGenerateRequest
|
|
16153
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
16154
|
+
@return: RunVideoScriptGenerateResponse
|
|
16155
|
+
"""
|
|
16156
|
+
UtilClient.validate_model(request)
|
|
16157
|
+
body = {}
|
|
16158
|
+
if not UtilClient.is_unset(request.language):
|
|
16159
|
+
body['Language'] = request.language
|
|
16160
|
+
if not UtilClient.is_unset(request.prompt):
|
|
16161
|
+
body['Prompt'] = request.prompt
|
|
16162
|
+
if not UtilClient.is_unset(request.script_length):
|
|
16163
|
+
body['ScriptLength'] = request.script_length
|
|
16164
|
+
if not UtilClient.is_unset(request.script_number):
|
|
16165
|
+
body['ScriptNumber'] = request.script_number
|
|
16166
|
+
if not UtilClient.is_unset(request.use_search):
|
|
16167
|
+
body['UseSearch'] = request.use_search
|
|
16168
|
+
if not UtilClient.is_unset(request.workspace_id):
|
|
16169
|
+
body['WorkspaceId'] = request.workspace_id
|
|
16170
|
+
req = open_api_models.OpenApiRequest(
|
|
16171
|
+
body=OpenApiUtilClient.parse_to_map(body)
|
|
16172
|
+
)
|
|
16173
|
+
params = open_api_models.Params(
|
|
16174
|
+
action='RunVideoScriptGenerate',
|
|
16175
|
+
version='2023-08-01',
|
|
16176
|
+
protocol='HTTPS',
|
|
16177
|
+
pathname='/',
|
|
16178
|
+
method='POST',
|
|
16179
|
+
auth_type='AK',
|
|
16180
|
+
style='RPC',
|
|
16181
|
+
req_body_type='formData',
|
|
16182
|
+
body_type='json'
|
|
16183
|
+
)
|
|
16184
|
+
return TeaCore.from_map(
|
|
16185
|
+
ai_miao_bi_20230801_models.RunVideoScriptGenerateResponse(),
|
|
16186
|
+
self.call_api(params, req, runtime)
|
|
16187
|
+
)
|
|
16188
|
+
|
|
16189
|
+
async def run_video_script_generate_with_options_async(
|
|
16190
|
+
self,
|
|
16191
|
+
request: ai_miao_bi_20230801_models.RunVideoScriptGenerateRequest,
|
|
16192
|
+
runtime: util_models.RuntimeOptions,
|
|
16193
|
+
) -> ai_miao_bi_20230801_models.RunVideoScriptGenerateResponse:
|
|
16194
|
+
"""
|
|
16195
|
+
@summary AI生成视频剪辑脚本
|
|
16196
|
+
|
|
16197
|
+
@param request: RunVideoScriptGenerateRequest
|
|
16198
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
16199
|
+
@return: RunVideoScriptGenerateResponse
|
|
16200
|
+
"""
|
|
16201
|
+
UtilClient.validate_model(request)
|
|
16202
|
+
body = {}
|
|
16203
|
+
if not UtilClient.is_unset(request.language):
|
|
16204
|
+
body['Language'] = request.language
|
|
16205
|
+
if not UtilClient.is_unset(request.prompt):
|
|
16206
|
+
body['Prompt'] = request.prompt
|
|
16207
|
+
if not UtilClient.is_unset(request.script_length):
|
|
16208
|
+
body['ScriptLength'] = request.script_length
|
|
16209
|
+
if not UtilClient.is_unset(request.script_number):
|
|
16210
|
+
body['ScriptNumber'] = request.script_number
|
|
16211
|
+
if not UtilClient.is_unset(request.use_search):
|
|
16212
|
+
body['UseSearch'] = request.use_search
|
|
16213
|
+
if not UtilClient.is_unset(request.workspace_id):
|
|
16214
|
+
body['WorkspaceId'] = request.workspace_id
|
|
16215
|
+
req = open_api_models.OpenApiRequest(
|
|
16216
|
+
body=OpenApiUtilClient.parse_to_map(body)
|
|
16217
|
+
)
|
|
16218
|
+
params = open_api_models.Params(
|
|
16219
|
+
action='RunVideoScriptGenerate',
|
|
16220
|
+
version='2023-08-01',
|
|
16221
|
+
protocol='HTTPS',
|
|
16222
|
+
pathname='/',
|
|
16223
|
+
method='POST',
|
|
16224
|
+
auth_type='AK',
|
|
16225
|
+
style='RPC',
|
|
16226
|
+
req_body_type='formData',
|
|
16227
|
+
body_type='json'
|
|
16228
|
+
)
|
|
16229
|
+
return TeaCore.from_map(
|
|
16230
|
+
ai_miao_bi_20230801_models.RunVideoScriptGenerateResponse(),
|
|
16231
|
+
await self.call_api_async(params, req, runtime)
|
|
16232
|
+
)
|
|
16233
|
+
|
|
16234
|
+
def run_video_script_generate(
|
|
16235
|
+
self,
|
|
16236
|
+
request: ai_miao_bi_20230801_models.RunVideoScriptGenerateRequest,
|
|
16237
|
+
) -> ai_miao_bi_20230801_models.RunVideoScriptGenerateResponse:
|
|
16238
|
+
"""
|
|
16239
|
+
@summary AI生成视频剪辑脚本
|
|
16240
|
+
|
|
16241
|
+
@param request: RunVideoScriptGenerateRequest
|
|
16242
|
+
@return: RunVideoScriptGenerateResponse
|
|
16243
|
+
"""
|
|
16244
|
+
runtime = util_models.RuntimeOptions()
|
|
16245
|
+
return self.run_video_script_generate_with_options(request, runtime)
|
|
16246
|
+
|
|
16247
|
+
async def run_video_script_generate_async(
|
|
16248
|
+
self,
|
|
16249
|
+
request: ai_miao_bi_20230801_models.RunVideoScriptGenerateRequest,
|
|
16250
|
+
) -> ai_miao_bi_20230801_models.RunVideoScriptGenerateResponse:
|
|
16251
|
+
"""
|
|
16252
|
+
@summary AI生成视频剪辑脚本
|
|
16253
|
+
|
|
16254
|
+
@param request: RunVideoScriptGenerateRequest
|
|
16255
|
+
@return: RunVideoScriptGenerateResponse
|
|
16256
|
+
"""
|
|
16257
|
+
runtime = util_models.RuntimeOptions()
|
|
16258
|
+
return await self.run_video_script_generate_with_options_async(request, runtime)
|
|
16259
|
+
|
|
15924
16260
|
def run_write_tone_generation_with_options(
|
|
15925
16261
|
self,
|
|
15926
16262
|
tmp_req: ai_miao_bi_20230801_models.RunWriteToneGenerationRequest,
|
|
@@ -18217,6 +18553,106 @@ class Client(OpenApiClient):
|
|
|
18217
18553
|
runtime = util_models.RuntimeOptions()
|
|
18218
18554
|
return await self.submit_export_terms_task_with_options_async(request, runtime)
|
|
18219
18555
|
|
|
18556
|
+
def submit_fact_audit_url_with_options(
|
|
18557
|
+
self,
|
|
18558
|
+
request: ai_miao_bi_20230801_models.SubmitFactAuditUrlRequest,
|
|
18559
|
+
runtime: util_models.RuntimeOptions,
|
|
18560
|
+
) -> ai_miao_bi_20230801_models.SubmitFactAuditUrlResponse:
|
|
18561
|
+
"""
|
|
18562
|
+
@summary 妙笔为您提供了新的事实性审核能力,在联网搜索并判断正误的前提下,还支持用户自定义配置搜索来源 URL。
|
|
18563
|
+
|
|
18564
|
+
@param request: SubmitFactAuditUrlRequest
|
|
18565
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
18566
|
+
@return: SubmitFactAuditUrlResponse
|
|
18567
|
+
"""
|
|
18568
|
+
UtilClient.validate_model(request)
|
|
18569
|
+
body = {}
|
|
18570
|
+
if not UtilClient.is_unset(request.url):
|
|
18571
|
+
body['Url'] = request.url
|
|
18572
|
+
if not UtilClient.is_unset(request.workspace_id):
|
|
18573
|
+
body['WorkspaceId'] = request.workspace_id
|
|
18574
|
+
req = open_api_models.OpenApiRequest(
|
|
18575
|
+
body=OpenApiUtilClient.parse_to_map(body)
|
|
18576
|
+
)
|
|
18577
|
+
params = open_api_models.Params(
|
|
18578
|
+
action='SubmitFactAuditUrl',
|
|
18579
|
+
version='2023-08-01',
|
|
18580
|
+
protocol='HTTPS',
|
|
18581
|
+
pathname='/',
|
|
18582
|
+
method='POST',
|
|
18583
|
+
auth_type='AK',
|
|
18584
|
+
style='RPC',
|
|
18585
|
+
req_body_type='formData',
|
|
18586
|
+
body_type='json'
|
|
18587
|
+
)
|
|
18588
|
+
return TeaCore.from_map(
|
|
18589
|
+
ai_miao_bi_20230801_models.SubmitFactAuditUrlResponse(),
|
|
18590
|
+
self.call_api(params, req, runtime)
|
|
18591
|
+
)
|
|
18592
|
+
|
|
18593
|
+
async def submit_fact_audit_url_with_options_async(
|
|
18594
|
+
self,
|
|
18595
|
+
request: ai_miao_bi_20230801_models.SubmitFactAuditUrlRequest,
|
|
18596
|
+
runtime: util_models.RuntimeOptions,
|
|
18597
|
+
) -> ai_miao_bi_20230801_models.SubmitFactAuditUrlResponse:
|
|
18598
|
+
"""
|
|
18599
|
+
@summary 妙笔为您提供了新的事实性审核能力,在联网搜索并判断正误的前提下,还支持用户自定义配置搜索来源 URL。
|
|
18600
|
+
|
|
18601
|
+
@param request: SubmitFactAuditUrlRequest
|
|
18602
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
18603
|
+
@return: SubmitFactAuditUrlResponse
|
|
18604
|
+
"""
|
|
18605
|
+
UtilClient.validate_model(request)
|
|
18606
|
+
body = {}
|
|
18607
|
+
if not UtilClient.is_unset(request.url):
|
|
18608
|
+
body['Url'] = request.url
|
|
18609
|
+
if not UtilClient.is_unset(request.workspace_id):
|
|
18610
|
+
body['WorkspaceId'] = request.workspace_id
|
|
18611
|
+
req = open_api_models.OpenApiRequest(
|
|
18612
|
+
body=OpenApiUtilClient.parse_to_map(body)
|
|
18613
|
+
)
|
|
18614
|
+
params = open_api_models.Params(
|
|
18615
|
+
action='SubmitFactAuditUrl',
|
|
18616
|
+
version='2023-08-01',
|
|
18617
|
+
protocol='HTTPS',
|
|
18618
|
+
pathname='/',
|
|
18619
|
+
method='POST',
|
|
18620
|
+
auth_type='AK',
|
|
18621
|
+
style='RPC',
|
|
18622
|
+
req_body_type='formData',
|
|
18623
|
+
body_type='json'
|
|
18624
|
+
)
|
|
18625
|
+
return TeaCore.from_map(
|
|
18626
|
+
ai_miao_bi_20230801_models.SubmitFactAuditUrlResponse(),
|
|
18627
|
+
await self.call_api_async(params, req, runtime)
|
|
18628
|
+
)
|
|
18629
|
+
|
|
18630
|
+
def submit_fact_audit_url(
|
|
18631
|
+
self,
|
|
18632
|
+
request: ai_miao_bi_20230801_models.SubmitFactAuditUrlRequest,
|
|
18633
|
+
) -> ai_miao_bi_20230801_models.SubmitFactAuditUrlResponse:
|
|
18634
|
+
"""
|
|
18635
|
+
@summary 妙笔为您提供了新的事实性审核能力,在联网搜索并判断正误的前提下,还支持用户自定义配置搜索来源 URL。
|
|
18636
|
+
|
|
18637
|
+
@param request: SubmitFactAuditUrlRequest
|
|
18638
|
+
@return: SubmitFactAuditUrlResponse
|
|
18639
|
+
"""
|
|
18640
|
+
runtime = util_models.RuntimeOptions()
|
|
18641
|
+
return self.submit_fact_audit_url_with_options(request, runtime)
|
|
18642
|
+
|
|
18643
|
+
async def submit_fact_audit_url_async(
|
|
18644
|
+
self,
|
|
18645
|
+
request: ai_miao_bi_20230801_models.SubmitFactAuditUrlRequest,
|
|
18646
|
+
) -> ai_miao_bi_20230801_models.SubmitFactAuditUrlResponse:
|
|
18647
|
+
"""
|
|
18648
|
+
@summary 妙笔为您提供了新的事实性审核能力,在联网搜索并判断正误的前提下,还支持用户自定义配置搜索来源 URL。
|
|
18649
|
+
|
|
18650
|
+
@param request: SubmitFactAuditUrlRequest
|
|
18651
|
+
@return: SubmitFactAuditUrlResponse
|
|
18652
|
+
"""
|
|
18653
|
+
runtime = util_models.RuntimeOptions()
|
|
18654
|
+
return await self.submit_fact_audit_url_with_options_async(request, runtime)
|
|
18655
|
+
|
|
18220
18656
|
def submit_import_terms_task_with_options(
|
|
18221
18657
|
self,
|
|
18222
18658
|
request: ai_miao_bi_20230801_models.SubmitImportTermsTaskRequest,
|