alibabacloud-aimiaobi20230801 1.20.0__py3-none-any.whl → 1.20.3__py3-none-any.whl
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/__init__.py +1 -1
- alibabacloud_aimiaobi20230801/client.py +220 -0
- alibabacloud_aimiaobi20230801/models.py +635 -2
- {alibabacloud_aimiaobi20230801-1.20.0.dist-info → alibabacloud_aimiaobi20230801-1.20.3.dist-info}/METADATA +1 -1
- alibabacloud_aimiaobi20230801-1.20.3.dist-info/RECORD +8 -0
- alibabacloud_aimiaobi20230801-1.20.0.dist-info/RECORD +0 -8
- {alibabacloud_aimiaobi20230801-1.20.0.dist-info → alibabacloud_aimiaobi20230801-1.20.3.dist-info}/LICENSE +0 -0
- {alibabacloud_aimiaobi20230801-1.20.0.dist-info → alibabacloud_aimiaobi20230801-1.20.3.dist-info}/WHEEL +0 -0
- {alibabacloud_aimiaobi20230801-1.20.0.dist-info → alibabacloud_aimiaobi20230801-1.20.3.dist-info}/top_level.txt +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
__version__ = '1.20.
|
|
1
|
+
__version__ = '1.20.3'
|
|
@@ -4544,6 +4544,8 @@ class Client(OpenApiClient):
|
|
|
4544
4544
|
UtilClient.validate_model(tmp_req)
|
|
4545
4545
|
request = ai_miao_bi_20230801_models.GetHotTopicBroadcastShrinkRequest()
|
|
4546
4546
|
OpenApiUtilClient.convert(tmp_req, request)
|
|
4547
|
+
if not UtilClient.is_unset(tmp_req.locations):
|
|
4548
|
+
request.locations_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.locations, 'Locations', 'json')
|
|
4547
4549
|
if not UtilClient.is_unset(tmp_req.step_for_custom_summary_style_config):
|
|
4548
4550
|
request.step_for_custom_summary_style_config_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.step_for_custom_summary_style_config, 'StepForCustomSummaryStyleConfig', 'json')
|
|
4549
4551
|
if not UtilClient.is_unset(tmp_req.step_for_news_broadcast_content_config):
|
|
@@ -4559,6 +4561,12 @@ class Client(OpenApiClient):
|
|
|
4559
4561
|
body['Current'] = request.current
|
|
4560
4562
|
if not UtilClient.is_unset(request.hot_topic_version):
|
|
4561
4563
|
body['HotTopicVersion'] = request.hot_topic_version
|
|
4564
|
+
if not UtilClient.is_unset(request.location_query):
|
|
4565
|
+
body['LocationQuery'] = request.location_query
|
|
4566
|
+
if not UtilClient.is_unset(request.locations_shrink):
|
|
4567
|
+
body['Locations'] = request.locations_shrink
|
|
4568
|
+
if not UtilClient.is_unset(request.query):
|
|
4569
|
+
body['Query'] = request.query
|
|
4562
4570
|
if not UtilClient.is_unset(request.size):
|
|
4563
4571
|
body['Size'] = request.size
|
|
4564
4572
|
if not UtilClient.is_unset(request.step_for_custom_summary_style_config_shrink):
|
|
@@ -4609,6 +4617,8 @@ class Client(OpenApiClient):
|
|
|
4609
4617
|
UtilClient.validate_model(tmp_req)
|
|
4610
4618
|
request = ai_miao_bi_20230801_models.GetHotTopicBroadcastShrinkRequest()
|
|
4611
4619
|
OpenApiUtilClient.convert(tmp_req, request)
|
|
4620
|
+
if not UtilClient.is_unset(tmp_req.locations):
|
|
4621
|
+
request.locations_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.locations, 'Locations', 'json')
|
|
4612
4622
|
if not UtilClient.is_unset(tmp_req.step_for_custom_summary_style_config):
|
|
4613
4623
|
request.step_for_custom_summary_style_config_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.step_for_custom_summary_style_config, 'StepForCustomSummaryStyleConfig', 'json')
|
|
4614
4624
|
if not UtilClient.is_unset(tmp_req.step_for_news_broadcast_content_config):
|
|
@@ -4624,6 +4634,12 @@ class Client(OpenApiClient):
|
|
|
4624
4634
|
body['Current'] = request.current
|
|
4625
4635
|
if not UtilClient.is_unset(request.hot_topic_version):
|
|
4626
4636
|
body['HotTopicVersion'] = request.hot_topic_version
|
|
4637
|
+
if not UtilClient.is_unset(request.location_query):
|
|
4638
|
+
body['LocationQuery'] = request.location_query
|
|
4639
|
+
if not UtilClient.is_unset(request.locations_shrink):
|
|
4640
|
+
body['Locations'] = request.locations_shrink
|
|
4641
|
+
if not UtilClient.is_unset(request.query):
|
|
4642
|
+
body['Query'] = request.query
|
|
4627
4643
|
if not UtilClient.is_unset(request.size):
|
|
4628
4644
|
body['Size'] = request.size
|
|
4629
4645
|
if not UtilClient.is_unset(request.step_for_custom_summary_style_config_shrink):
|
|
@@ -10489,8 +10505,12 @@ class Client(OpenApiClient):
|
|
|
10489
10505
|
body = {}
|
|
10490
10506
|
if not UtilClient.is_unset(request.doc_id):
|
|
10491
10507
|
body['DocId'] = request.doc_id
|
|
10508
|
+
if not UtilClient.is_unset(request.key_point_prompt):
|
|
10509
|
+
body['KeyPointPrompt'] = request.key_point_prompt
|
|
10492
10510
|
if not UtilClient.is_unset(request.session_id):
|
|
10493
10511
|
body['SessionId'] = request.session_id
|
|
10512
|
+
if not UtilClient.is_unset(request.summary_prompt):
|
|
10513
|
+
body['SummaryPrompt'] = request.summary_prompt
|
|
10494
10514
|
if not UtilClient.is_unset(request.workspace_id):
|
|
10495
10515
|
body['WorkspaceId'] = request.workspace_id
|
|
10496
10516
|
req = open_api_models.OpenApiRequest(
|
|
@@ -10534,8 +10554,12 @@ class Client(OpenApiClient):
|
|
|
10534
10554
|
body = {}
|
|
10535
10555
|
if not UtilClient.is_unset(request.doc_id):
|
|
10536
10556
|
body['DocId'] = request.doc_id
|
|
10557
|
+
if not UtilClient.is_unset(request.key_point_prompt):
|
|
10558
|
+
body['KeyPointPrompt'] = request.key_point_prompt
|
|
10537
10559
|
if not UtilClient.is_unset(request.session_id):
|
|
10538
10560
|
body['SessionId'] = request.session_id
|
|
10561
|
+
if not UtilClient.is_unset(request.summary_prompt):
|
|
10562
|
+
body['SummaryPrompt'] = request.summary_prompt
|
|
10539
10563
|
if not UtilClient.is_unset(request.workspace_id):
|
|
10540
10564
|
body['WorkspaceId'] = request.workspace_id
|
|
10541
10565
|
req = open_api_models.OpenApiRequest(
|
|
@@ -10739,6 +10763,8 @@ class Client(OpenApiClient):
|
|
|
10739
10763
|
body['NumComments'] = request.num_comments
|
|
10740
10764
|
if not UtilClient.is_unset(request.sentiment_shrink):
|
|
10741
10765
|
body['Sentiment'] = request.sentiment_shrink
|
|
10766
|
+
if not UtilClient.is_unset(request.session_id):
|
|
10767
|
+
body['SessionId'] = request.session_id
|
|
10742
10768
|
if not UtilClient.is_unset(request.source_material):
|
|
10743
10769
|
body['SourceMaterial'] = request.source_material
|
|
10744
10770
|
if not UtilClient.is_unset(request.style):
|
|
@@ -10806,6 +10832,8 @@ class Client(OpenApiClient):
|
|
|
10806
10832
|
body['NumComments'] = request.num_comments
|
|
10807
10833
|
if not UtilClient.is_unset(request.sentiment_shrink):
|
|
10808
10834
|
body['Sentiment'] = request.sentiment_shrink
|
|
10835
|
+
if not UtilClient.is_unset(request.session_id):
|
|
10836
|
+
body['SessionId'] = request.session_id
|
|
10809
10837
|
if not UtilClient.is_unset(request.source_material):
|
|
10810
10838
|
body['SourceMaterial'] = request.source_material
|
|
10811
10839
|
if not UtilClient.is_unset(request.style):
|
|
@@ -11267,10 +11295,18 @@ class Client(OpenApiClient):
|
|
|
11267
11295
|
"""
|
|
11268
11296
|
UtilClient.validate_model(request)
|
|
11269
11297
|
body = {}
|
|
11298
|
+
if not UtilClient.is_unset(request.clean_cache):
|
|
11299
|
+
body['CleanCache'] = request.clean_cache
|
|
11270
11300
|
if not UtilClient.is_unset(request.doc_id):
|
|
11271
11301
|
body['DocId'] = request.doc_id
|
|
11302
|
+
if not UtilClient.is_unset(request.node_number):
|
|
11303
|
+
body['NodeNumber'] = request.node_number
|
|
11304
|
+
if not UtilClient.is_unset(request.prompt):
|
|
11305
|
+
body['Prompt'] = request.prompt
|
|
11272
11306
|
if not UtilClient.is_unset(request.session_id):
|
|
11273
11307
|
body['SessionId'] = request.session_id
|
|
11308
|
+
if not UtilClient.is_unset(request.word_number):
|
|
11309
|
+
body['WordNumber'] = request.word_number
|
|
11274
11310
|
if not UtilClient.is_unset(request.workspace_id):
|
|
11275
11311
|
body['WorkspaceId'] = request.workspace_id
|
|
11276
11312
|
req = open_api_models.OpenApiRequest(
|
|
@@ -11312,10 +11348,18 @@ class Client(OpenApiClient):
|
|
|
11312
11348
|
"""
|
|
11313
11349
|
UtilClient.validate_model(request)
|
|
11314
11350
|
body = {}
|
|
11351
|
+
if not UtilClient.is_unset(request.clean_cache):
|
|
11352
|
+
body['CleanCache'] = request.clean_cache
|
|
11315
11353
|
if not UtilClient.is_unset(request.doc_id):
|
|
11316
11354
|
body['DocId'] = request.doc_id
|
|
11355
|
+
if not UtilClient.is_unset(request.node_number):
|
|
11356
|
+
body['NodeNumber'] = request.node_number
|
|
11357
|
+
if not UtilClient.is_unset(request.prompt):
|
|
11358
|
+
body['Prompt'] = request.prompt
|
|
11317
11359
|
if not UtilClient.is_unset(request.session_id):
|
|
11318
11360
|
body['SessionId'] = request.session_id
|
|
11361
|
+
if not UtilClient.is_unset(request.word_number):
|
|
11362
|
+
body['WordNumber'] = request.word_number
|
|
11319
11363
|
if not UtilClient.is_unset(request.workspace_id):
|
|
11320
11364
|
body['WorkspaceId'] = request.workspace_id
|
|
11321
11365
|
req = open_api_models.OpenApiRequest(
|
|
@@ -11382,14 +11426,24 @@ class Client(OpenApiClient):
|
|
|
11382
11426
|
@return: RunDocIntroductionResponse
|
|
11383
11427
|
"""
|
|
11384
11428
|
UtilClient.validate_model(request)
|
|
11429
|
+
query = {}
|
|
11430
|
+
if not UtilClient.is_unset(request.clean_cache):
|
|
11431
|
+
query['CleanCache'] = request.clean_cache
|
|
11385
11432
|
body = {}
|
|
11386
11433
|
if not UtilClient.is_unset(request.doc_id):
|
|
11387
11434
|
body['DocId'] = request.doc_id
|
|
11435
|
+
if not UtilClient.is_unset(request.introduction_prompt):
|
|
11436
|
+
body['IntroductionPrompt'] = request.introduction_prompt
|
|
11437
|
+
if not UtilClient.is_unset(request.key_point_prompt):
|
|
11438
|
+
body['KeyPointPrompt'] = request.key_point_prompt
|
|
11388
11439
|
if not UtilClient.is_unset(request.session_id):
|
|
11389
11440
|
body['SessionId'] = request.session_id
|
|
11441
|
+
if not UtilClient.is_unset(request.summary_prompt):
|
|
11442
|
+
body['SummaryPrompt'] = request.summary_prompt
|
|
11390
11443
|
if not UtilClient.is_unset(request.workspace_id):
|
|
11391
11444
|
body['WorkspaceId'] = request.workspace_id
|
|
11392
11445
|
req = open_api_models.OpenApiRequest(
|
|
11446
|
+
query=OpenApiUtilClient.query(query),
|
|
11393
11447
|
body=OpenApiUtilClient.parse_to_map(body)
|
|
11394
11448
|
)
|
|
11395
11449
|
params = open_api_models.Params(
|
|
@@ -11427,14 +11481,24 @@ class Client(OpenApiClient):
|
|
|
11427
11481
|
@return: RunDocIntroductionResponse
|
|
11428
11482
|
"""
|
|
11429
11483
|
UtilClient.validate_model(request)
|
|
11484
|
+
query = {}
|
|
11485
|
+
if not UtilClient.is_unset(request.clean_cache):
|
|
11486
|
+
query['CleanCache'] = request.clean_cache
|
|
11430
11487
|
body = {}
|
|
11431
11488
|
if not UtilClient.is_unset(request.doc_id):
|
|
11432
11489
|
body['DocId'] = request.doc_id
|
|
11490
|
+
if not UtilClient.is_unset(request.introduction_prompt):
|
|
11491
|
+
body['IntroductionPrompt'] = request.introduction_prompt
|
|
11492
|
+
if not UtilClient.is_unset(request.key_point_prompt):
|
|
11493
|
+
body['KeyPointPrompt'] = request.key_point_prompt
|
|
11433
11494
|
if not UtilClient.is_unset(request.session_id):
|
|
11434
11495
|
body['SessionId'] = request.session_id
|
|
11496
|
+
if not UtilClient.is_unset(request.summary_prompt):
|
|
11497
|
+
body['SummaryPrompt'] = request.summary_prompt
|
|
11435
11498
|
if not UtilClient.is_unset(request.workspace_id):
|
|
11436
11499
|
body['WorkspaceId'] = request.workspace_id
|
|
11437
11500
|
req = open_api_models.OpenApiRequest(
|
|
11501
|
+
query=OpenApiUtilClient.query(query),
|
|
11438
11502
|
body=OpenApiUtilClient.parse_to_map(body)
|
|
11439
11503
|
)
|
|
11440
11504
|
params = open_api_models.Params(
|
|
@@ -11767,6 +11831,8 @@ class Client(OpenApiClient):
|
|
|
11767
11831
|
"""
|
|
11768
11832
|
UtilClient.validate_model(request)
|
|
11769
11833
|
body = {}
|
|
11834
|
+
if not UtilClient.is_unset(request.clean_cache):
|
|
11835
|
+
body['CleanCache'] = request.clean_cache
|
|
11770
11836
|
if not UtilClient.is_unset(request.doc_id):
|
|
11771
11837
|
body['DocId'] = request.doc_id
|
|
11772
11838
|
if not UtilClient.is_unset(request.query):
|
|
@@ -11816,6 +11882,8 @@ class Client(OpenApiClient):
|
|
|
11816
11882
|
"""
|
|
11817
11883
|
UtilClient.validate_model(request)
|
|
11818
11884
|
body = {}
|
|
11885
|
+
if not UtilClient.is_unset(request.clean_cache):
|
|
11886
|
+
body['CleanCache'] = request.clean_cache
|
|
11819
11887
|
if not UtilClient.is_unset(request.doc_id):
|
|
11820
11888
|
body['DocId'] = request.doc_id
|
|
11821
11889
|
if not UtilClient.is_unset(request.query):
|
|
@@ -11891,6 +11959,8 @@ class Client(OpenApiClient):
|
|
|
11891
11959
|
"""
|
|
11892
11960
|
UtilClient.validate_model(request)
|
|
11893
11961
|
body = {}
|
|
11962
|
+
if not UtilClient.is_unset(request.clean_cache):
|
|
11963
|
+
body['CleanCache'] = request.clean_cache
|
|
11894
11964
|
if not UtilClient.is_unset(request.doc_id):
|
|
11895
11965
|
body['DocId'] = request.doc_id
|
|
11896
11966
|
if not UtilClient.is_unset(request.recommend_content):
|
|
@@ -11940,6 +12010,8 @@ class Client(OpenApiClient):
|
|
|
11940
12010
|
"""
|
|
11941
12011
|
UtilClient.validate_model(request)
|
|
11942
12012
|
body = {}
|
|
12013
|
+
if not UtilClient.is_unset(request.clean_cache):
|
|
12014
|
+
body['CleanCache'] = request.clean_cache
|
|
11943
12015
|
if not UtilClient.is_unset(request.doc_id):
|
|
11944
12016
|
body['DocId'] = request.doc_id
|
|
11945
12017
|
if not UtilClient.is_unset(request.recommend_content):
|
|
@@ -12001,6 +12073,142 @@ class Client(OpenApiClient):
|
|
|
12001
12073
|
runtime = util_models.RuntimeOptions()
|
|
12002
12074
|
return await self.run_doc_translation_with_options_async(request, runtime)
|
|
12003
12075
|
|
|
12076
|
+
def run_doc_washing_with_options(
|
|
12077
|
+
self,
|
|
12078
|
+
request: ai_miao_bi_20230801_models.RunDocWashingRequest,
|
|
12079
|
+
runtime: util_models.RuntimeOptions,
|
|
12080
|
+
) -> ai_miao_bi_20230801_models.RunDocWashingResponse:
|
|
12081
|
+
"""
|
|
12082
|
+
@summary 文档改写
|
|
12083
|
+
|
|
12084
|
+
@param request: RunDocWashingRequest
|
|
12085
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
12086
|
+
@return: RunDocWashingResponse
|
|
12087
|
+
"""
|
|
12088
|
+
UtilClient.validate_model(request)
|
|
12089
|
+
body = {}
|
|
12090
|
+
if not UtilClient.is_unset(request.prompt):
|
|
12091
|
+
body['Prompt'] = request.prompt
|
|
12092
|
+
if not UtilClient.is_unset(request.reference_content):
|
|
12093
|
+
body['ReferenceContent'] = request.reference_content
|
|
12094
|
+
if not UtilClient.is_unset(request.session_id):
|
|
12095
|
+
body['SessionId'] = request.session_id
|
|
12096
|
+
if not UtilClient.is_unset(request.topic):
|
|
12097
|
+
body['Topic'] = request.topic
|
|
12098
|
+
if not UtilClient.is_unset(request.word_number):
|
|
12099
|
+
body['WordNumber'] = request.word_number
|
|
12100
|
+
if not UtilClient.is_unset(request.workspace_id):
|
|
12101
|
+
body['WorkspaceId'] = request.workspace_id
|
|
12102
|
+
if not UtilClient.is_unset(request.writing_type_name):
|
|
12103
|
+
body['WritingTypeName'] = request.writing_type_name
|
|
12104
|
+
if not UtilClient.is_unset(request.writing_type_ref_doc):
|
|
12105
|
+
body['WritingTypeRefDoc'] = request.writing_type_ref_doc
|
|
12106
|
+
req = open_api_models.OpenApiRequest(
|
|
12107
|
+
body=OpenApiUtilClient.parse_to_map(body)
|
|
12108
|
+
)
|
|
12109
|
+
params = open_api_models.Params(
|
|
12110
|
+
action='RunDocWashing',
|
|
12111
|
+
version='2023-08-01',
|
|
12112
|
+
protocol='HTTPS',
|
|
12113
|
+
pathname='/',
|
|
12114
|
+
method='POST',
|
|
12115
|
+
auth_type='AK',
|
|
12116
|
+
style='RPC',
|
|
12117
|
+
req_body_type='formData',
|
|
12118
|
+
body_type='json'
|
|
12119
|
+
)
|
|
12120
|
+
if UtilClient.is_unset(self._signature_version) or not UtilClient.equal_string(self._signature_version, 'v4'):
|
|
12121
|
+
return TeaCore.from_map(
|
|
12122
|
+
ai_miao_bi_20230801_models.RunDocWashingResponse(),
|
|
12123
|
+
self.call_api(params, req, runtime)
|
|
12124
|
+
)
|
|
12125
|
+
else:
|
|
12126
|
+
return TeaCore.from_map(
|
|
12127
|
+
ai_miao_bi_20230801_models.RunDocWashingResponse(),
|
|
12128
|
+
self.execute(params, req, runtime)
|
|
12129
|
+
)
|
|
12130
|
+
|
|
12131
|
+
async def run_doc_washing_with_options_async(
|
|
12132
|
+
self,
|
|
12133
|
+
request: ai_miao_bi_20230801_models.RunDocWashingRequest,
|
|
12134
|
+
runtime: util_models.RuntimeOptions,
|
|
12135
|
+
) -> ai_miao_bi_20230801_models.RunDocWashingResponse:
|
|
12136
|
+
"""
|
|
12137
|
+
@summary 文档改写
|
|
12138
|
+
|
|
12139
|
+
@param request: RunDocWashingRequest
|
|
12140
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
12141
|
+
@return: RunDocWashingResponse
|
|
12142
|
+
"""
|
|
12143
|
+
UtilClient.validate_model(request)
|
|
12144
|
+
body = {}
|
|
12145
|
+
if not UtilClient.is_unset(request.prompt):
|
|
12146
|
+
body['Prompt'] = request.prompt
|
|
12147
|
+
if not UtilClient.is_unset(request.reference_content):
|
|
12148
|
+
body['ReferenceContent'] = request.reference_content
|
|
12149
|
+
if not UtilClient.is_unset(request.session_id):
|
|
12150
|
+
body['SessionId'] = request.session_id
|
|
12151
|
+
if not UtilClient.is_unset(request.topic):
|
|
12152
|
+
body['Topic'] = request.topic
|
|
12153
|
+
if not UtilClient.is_unset(request.word_number):
|
|
12154
|
+
body['WordNumber'] = request.word_number
|
|
12155
|
+
if not UtilClient.is_unset(request.workspace_id):
|
|
12156
|
+
body['WorkspaceId'] = request.workspace_id
|
|
12157
|
+
if not UtilClient.is_unset(request.writing_type_name):
|
|
12158
|
+
body['WritingTypeName'] = request.writing_type_name
|
|
12159
|
+
if not UtilClient.is_unset(request.writing_type_ref_doc):
|
|
12160
|
+
body['WritingTypeRefDoc'] = request.writing_type_ref_doc
|
|
12161
|
+
req = open_api_models.OpenApiRequest(
|
|
12162
|
+
body=OpenApiUtilClient.parse_to_map(body)
|
|
12163
|
+
)
|
|
12164
|
+
params = open_api_models.Params(
|
|
12165
|
+
action='RunDocWashing',
|
|
12166
|
+
version='2023-08-01',
|
|
12167
|
+
protocol='HTTPS',
|
|
12168
|
+
pathname='/',
|
|
12169
|
+
method='POST',
|
|
12170
|
+
auth_type='AK',
|
|
12171
|
+
style='RPC',
|
|
12172
|
+
req_body_type='formData',
|
|
12173
|
+
body_type='json'
|
|
12174
|
+
)
|
|
12175
|
+
if UtilClient.is_unset(self._signature_version) or not UtilClient.equal_string(self._signature_version, 'v4'):
|
|
12176
|
+
return TeaCore.from_map(
|
|
12177
|
+
ai_miao_bi_20230801_models.RunDocWashingResponse(),
|
|
12178
|
+
await self.call_api_async(params, req, runtime)
|
|
12179
|
+
)
|
|
12180
|
+
else:
|
|
12181
|
+
return TeaCore.from_map(
|
|
12182
|
+
ai_miao_bi_20230801_models.RunDocWashingResponse(),
|
|
12183
|
+
await self.execute_async(params, req, runtime)
|
|
12184
|
+
)
|
|
12185
|
+
|
|
12186
|
+
def run_doc_washing(
|
|
12187
|
+
self,
|
|
12188
|
+
request: ai_miao_bi_20230801_models.RunDocWashingRequest,
|
|
12189
|
+
) -> ai_miao_bi_20230801_models.RunDocWashingResponse:
|
|
12190
|
+
"""
|
|
12191
|
+
@summary 文档改写
|
|
12192
|
+
|
|
12193
|
+
@param request: RunDocWashingRequest
|
|
12194
|
+
@return: RunDocWashingResponse
|
|
12195
|
+
"""
|
|
12196
|
+
runtime = util_models.RuntimeOptions()
|
|
12197
|
+
return self.run_doc_washing_with_options(request, runtime)
|
|
12198
|
+
|
|
12199
|
+
async def run_doc_washing_async(
|
|
12200
|
+
self,
|
|
12201
|
+
request: ai_miao_bi_20230801_models.RunDocWashingRequest,
|
|
12202
|
+
) -> ai_miao_bi_20230801_models.RunDocWashingResponse:
|
|
12203
|
+
"""
|
|
12204
|
+
@summary 文档改写
|
|
12205
|
+
|
|
12206
|
+
@param request: RunDocWashingRequest
|
|
12207
|
+
@return: RunDocWashingResponse
|
|
12208
|
+
"""
|
|
12209
|
+
runtime = util_models.RuntimeOptions()
|
|
12210
|
+
return await self.run_doc_washing_with_options_async(request, runtime)
|
|
12211
|
+
|
|
12004
12212
|
def run_expand_content_with_options(
|
|
12005
12213
|
self,
|
|
12006
12214
|
request: ai_miao_bi_20230801_models.RunExpandContentRequest,
|
|
@@ -13400,13 +13608,19 @@ class Client(OpenApiClient):
|
|
|
13400
13608
|
UtilClient.validate_model(tmp_req)
|
|
13401
13609
|
request = ai_miao_bi_20230801_models.RunTitleGenerationShrinkRequest()
|
|
13402
13610
|
OpenApiUtilClient.convert(tmp_req, request)
|
|
13611
|
+
if not UtilClient.is_unset(tmp_req.deduplicated_titles):
|
|
13612
|
+
request.deduplicated_titles_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.deduplicated_titles, 'DeduplicatedTitles', 'json')
|
|
13403
13613
|
if not UtilClient.is_unset(tmp_req.reference_data):
|
|
13404
13614
|
request.reference_data_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.reference_data, 'ReferenceData', 'json')
|
|
13405
13615
|
body = {}
|
|
13616
|
+
if not UtilClient.is_unset(request.deduplicated_titles_shrink):
|
|
13617
|
+
body['DeduplicatedTitles'] = request.deduplicated_titles_shrink
|
|
13406
13618
|
if not UtilClient.is_unset(request.reference_data_shrink):
|
|
13407
13619
|
body['ReferenceData'] = request.reference_data_shrink
|
|
13408
13620
|
if not UtilClient.is_unset(request.task_id):
|
|
13409
13621
|
body['TaskId'] = request.task_id
|
|
13622
|
+
if not UtilClient.is_unset(request.title_count):
|
|
13623
|
+
body['TitleCount'] = request.title_count
|
|
13410
13624
|
if not UtilClient.is_unset(request.workspace_id):
|
|
13411
13625
|
body['WorkspaceId'] = request.workspace_id
|
|
13412
13626
|
req = open_api_models.OpenApiRequest(
|
|
@@ -13449,13 +13663,19 @@ class Client(OpenApiClient):
|
|
|
13449
13663
|
UtilClient.validate_model(tmp_req)
|
|
13450
13664
|
request = ai_miao_bi_20230801_models.RunTitleGenerationShrinkRequest()
|
|
13451
13665
|
OpenApiUtilClient.convert(tmp_req, request)
|
|
13666
|
+
if not UtilClient.is_unset(tmp_req.deduplicated_titles):
|
|
13667
|
+
request.deduplicated_titles_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.deduplicated_titles, 'DeduplicatedTitles', 'json')
|
|
13452
13668
|
if not UtilClient.is_unset(tmp_req.reference_data):
|
|
13453
13669
|
request.reference_data_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.reference_data, 'ReferenceData', 'json')
|
|
13454
13670
|
body = {}
|
|
13671
|
+
if not UtilClient.is_unset(request.deduplicated_titles_shrink):
|
|
13672
|
+
body['DeduplicatedTitles'] = request.deduplicated_titles_shrink
|
|
13455
13673
|
if not UtilClient.is_unset(request.reference_data_shrink):
|
|
13456
13674
|
body['ReferenceData'] = request.reference_data_shrink
|
|
13457
13675
|
if not UtilClient.is_unset(request.task_id):
|
|
13458
13676
|
body['TaskId'] = request.task_id
|
|
13677
|
+
if not UtilClient.is_unset(request.title_count):
|
|
13678
|
+
body['TitleCount'] = request.title_count
|
|
13459
13679
|
if not UtilClient.is_unset(request.workspace_id):
|
|
13460
13680
|
body['WorkspaceId'] = request.workspace_id
|
|
13461
13681
|
req = open_api_models.OpenApiRequest(
|