alibabacloud-aimiaobi20230801 1.22.6__tar.gz → 1.23.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.22.6 → alibabacloud_aimiaobi20230801-1.23.0}/ChangeLog.md +17 -0
- {alibabacloud_aimiaobi20230801-1.22.6 → alibabacloud_aimiaobi20230801-1.23.0}/PKG-INFO +1 -1
- alibabacloud_aimiaobi20230801-1.23.0/alibabacloud_aimiaobi20230801/__init__.py +1 -0
- {alibabacloud_aimiaobi20230801-1.22.6 → alibabacloud_aimiaobi20230801-1.23.0}/alibabacloud_aimiaobi20230801/client.py +424 -0
- {alibabacloud_aimiaobi20230801-1.22.6 → alibabacloud_aimiaobi20230801-1.23.0}/alibabacloud_aimiaobi20230801/models.py +2550 -414
- {alibabacloud_aimiaobi20230801-1.22.6 → alibabacloud_aimiaobi20230801-1.23.0}/alibabacloud_aimiaobi20230801.egg-info/PKG-INFO +1 -1
- {alibabacloud_aimiaobi20230801-1.22.6 → alibabacloud_aimiaobi20230801-1.23.0}/setup.py +1 -1
- alibabacloud_aimiaobi20230801-1.22.6/alibabacloud_aimiaobi20230801/__init__.py +0 -1
- {alibabacloud_aimiaobi20230801-1.22.6 → alibabacloud_aimiaobi20230801-1.23.0}/LICENSE +0 -0
- {alibabacloud_aimiaobi20230801-1.22.6 → alibabacloud_aimiaobi20230801-1.23.0}/MANIFEST.in +0 -0
- {alibabacloud_aimiaobi20230801-1.22.6 → alibabacloud_aimiaobi20230801-1.23.0}/README-CN.md +0 -0
- {alibabacloud_aimiaobi20230801-1.22.6 → alibabacloud_aimiaobi20230801-1.23.0}/README.md +0 -0
- {alibabacloud_aimiaobi20230801-1.22.6 → alibabacloud_aimiaobi20230801-1.23.0}/alibabacloud_aimiaobi20230801.egg-info/SOURCES.txt +0 -0
- {alibabacloud_aimiaobi20230801-1.22.6 → alibabacloud_aimiaobi20230801-1.23.0}/alibabacloud_aimiaobi20230801.egg-info/dependency_links.txt +0 -0
- {alibabacloud_aimiaobi20230801-1.22.6 → alibabacloud_aimiaobi20230801-1.23.0}/alibabacloud_aimiaobi20230801.egg-info/requires.txt +0 -0
- {alibabacloud_aimiaobi20230801-1.22.6 → alibabacloud_aimiaobi20230801-1.23.0}/alibabacloud_aimiaobi20230801.egg-info/top_level.txt +0 -0
- {alibabacloud_aimiaobi20230801-1.22.6 → alibabacloud_aimiaobi20230801-1.23.0}/setup.cfg +0 -0
|
@@ -1,3 +1,20 @@
|
|
|
1
|
+
2025-05-12 Version: 1.22.7
|
|
2
|
+
- Update API ListGeneratedContents: add request parameters DataType.
|
|
3
|
+
- Update API ListGeneratedContents: add response parameters Body.Data.$.FileAttr.
|
|
4
|
+
- Update API ListGeneratedContents: add response parameters Body.Data.$.FileKey.
|
|
5
|
+
- Update API ListMaterialDocuments: add response parameters Body.Data.$.FileAttr.
|
|
6
|
+
- Update API ListMaterialDocuments: add response parameters Body.Data.$.FileKey.
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
2025-05-08 Version: 1.22.6
|
|
10
|
+
- Update API ListDatasetDocuments: add response parameters Body.Data.$.CreateTime.
|
|
11
|
+
- Update API ListDatasetDocuments: add response parameters Body.Data.$.UpdateTime.
|
|
12
|
+
- Update API ListDatasets: add request parameters IncludeConfig.
|
|
13
|
+
- Update API ListDatasets: add response parameters Body.CustomSemanticSearchConfig.
|
|
14
|
+
- Update API ListDatasets: add response parameters Body.ThirdSearchConfig.
|
|
15
|
+
- Update API ListDatasets: add response parameters Body.Data.$.DocUsedQuota.
|
|
16
|
+
|
|
17
|
+
|
|
1
18
|
2025-05-08 Version: 1.22.5
|
|
2
19
|
- Generated python 2023-08-01 for AiMiaoBi.
|
|
3
20
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = '1.23.0'
|
|
@@ -4953,6 +4953,110 @@ class Client(OpenApiClient):
|
|
|
4953
4953
|
runtime = util_models.RuntimeOptions()
|
|
4954
4954
|
return await self.get_smart_clip_task_with_options_async(request, runtime)
|
|
4955
4955
|
|
|
4956
|
+
def get_style_learning_result_with_options(
|
|
4957
|
+
self,
|
|
4958
|
+
request: ai_miao_bi_20230801_models.GetStyleLearningResultRequest,
|
|
4959
|
+
runtime: util_models.RuntimeOptions,
|
|
4960
|
+
) -> ai_miao_bi_20230801_models.GetStyleLearningResultResponse:
|
|
4961
|
+
"""
|
|
4962
|
+
@summary 获取文体学习分析结果
|
|
4963
|
+
|
|
4964
|
+
@param request: GetStyleLearningResultRequest
|
|
4965
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
4966
|
+
@return: GetStyleLearningResultResponse
|
|
4967
|
+
"""
|
|
4968
|
+
UtilClient.validate_model(request)
|
|
4969
|
+
query = {}
|
|
4970
|
+
if not UtilClient.is_unset(request.agent_key):
|
|
4971
|
+
query['AgentKey'] = request.agent_key
|
|
4972
|
+
body = {}
|
|
4973
|
+
if not UtilClient.is_unset(request.id):
|
|
4974
|
+
body['Id'] = request.id
|
|
4975
|
+
req = open_api_models.OpenApiRequest(
|
|
4976
|
+
query=OpenApiUtilClient.query(query),
|
|
4977
|
+
body=OpenApiUtilClient.parse_to_map(body)
|
|
4978
|
+
)
|
|
4979
|
+
params = open_api_models.Params(
|
|
4980
|
+
action='GetStyleLearningResult',
|
|
4981
|
+
version='2023-08-01',
|
|
4982
|
+
protocol='HTTPS',
|
|
4983
|
+
pathname='/',
|
|
4984
|
+
method='POST',
|
|
4985
|
+
auth_type='AK',
|
|
4986
|
+
style='RPC',
|
|
4987
|
+
req_body_type='formData',
|
|
4988
|
+
body_type='json'
|
|
4989
|
+
)
|
|
4990
|
+
return TeaCore.from_map(
|
|
4991
|
+
ai_miao_bi_20230801_models.GetStyleLearningResultResponse(),
|
|
4992
|
+
self.call_api(params, req, runtime)
|
|
4993
|
+
)
|
|
4994
|
+
|
|
4995
|
+
async def get_style_learning_result_with_options_async(
|
|
4996
|
+
self,
|
|
4997
|
+
request: ai_miao_bi_20230801_models.GetStyleLearningResultRequest,
|
|
4998
|
+
runtime: util_models.RuntimeOptions,
|
|
4999
|
+
) -> ai_miao_bi_20230801_models.GetStyleLearningResultResponse:
|
|
5000
|
+
"""
|
|
5001
|
+
@summary 获取文体学习分析结果
|
|
5002
|
+
|
|
5003
|
+
@param request: GetStyleLearningResultRequest
|
|
5004
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
5005
|
+
@return: GetStyleLearningResultResponse
|
|
5006
|
+
"""
|
|
5007
|
+
UtilClient.validate_model(request)
|
|
5008
|
+
query = {}
|
|
5009
|
+
if not UtilClient.is_unset(request.agent_key):
|
|
5010
|
+
query['AgentKey'] = request.agent_key
|
|
5011
|
+
body = {}
|
|
5012
|
+
if not UtilClient.is_unset(request.id):
|
|
5013
|
+
body['Id'] = request.id
|
|
5014
|
+
req = open_api_models.OpenApiRequest(
|
|
5015
|
+
query=OpenApiUtilClient.query(query),
|
|
5016
|
+
body=OpenApiUtilClient.parse_to_map(body)
|
|
5017
|
+
)
|
|
5018
|
+
params = open_api_models.Params(
|
|
5019
|
+
action='GetStyleLearningResult',
|
|
5020
|
+
version='2023-08-01',
|
|
5021
|
+
protocol='HTTPS',
|
|
5022
|
+
pathname='/',
|
|
5023
|
+
method='POST',
|
|
5024
|
+
auth_type='AK',
|
|
5025
|
+
style='RPC',
|
|
5026
|
+
req_body_type='formData',
|
|
5027
|
+
body_type='json'
|
|
5028
|
+
)
|
|
5029
|
+
return TeaCore.from_map(
|
|
5030
|
+
ai_miao_bi_20230801_models.GetStyleLearningResultResponse(),
|
|
5031
|
+
await self.call_api_async(params, req, runtime)
|
|
5032
|
+
)
|
|
5033
|
+
|
|
5034
|
+
def get_style_learning_result(
|
|
5035
|
+
self,
|
|
5036
|
+
request: ai_miao_bi_20230801_models.GetStyleLearningResultRequest,
|
|
5037
|
+
) -> ai_miao_bi_20230801_models.GetStyleLearningResultResponse:
|
|
5038
|
+
"""
|
|
5039
|
+
@summary 获取文体学习分析结果
|
|
5040
|
+
|
|
5041
|
+
@param request: GetStyleLearningResultRequest
|
|
5042
|
+
@return: GetStyleLearningResultResponse
|
|
5043
|
+
"""
|
|
5044
|
+
runtime = util_models.RuntimeOptions()
|
|
5045
|
+
return self.get_style_learning_result_with_options(request, runtime)
|
|
5046
|
+
|
|
5047
|
+
async def get_style_learning_result_async(
|
|
5048
|
+
self,
|
|
5049
|
+
request: ai_miao_bi_20230801_models.GetStyleLearningResultRequest,
|
|
5050
|
+
) -> ai_miao_bi_20230801_models.GetStyleLearningResultResponse:
|
|
5051
|
+
"""
|
|
5052
|
+
@summary 获取文体学习分析结果
|
|
5053
|
+
|
|
5054
|
+
@param request: GetStyleLearningResultRequest
|
|
5055
|
+
@return: GetStyleLearningResultResponse
|
|
5056
|
+
"""
|
|
5057
|
+
runtime = util_models.RuntimeOptions()
|
|
5058
|
+
return await self.get_style_learning_result_with_options_async(request, runtime)
|
|
5059
|
+
|
|
4956
5060
|
def get_topic_by_id_with_options(
|
|
4957
5061
|
self,
|
|
4958
5062
|
request: ai_miao_bi_20230801_models.GetTopicByIdRequest,
|
|
@@ -6918,6 +7022,8 @@ class Client(OpenApiClient):
|
|
|
6918
7022
|
body['ContentDomain'] = request.content_domain
|
|
6919
7023
|
if not UtilClient.is_unset(request.current):
|
|
6920
7024
|
body['Current'] = request.current
|
|
7025
|
+
if not UtilClient.is_unset(request.data_type):
|
|
7026
|
+
body['DataType'] = request.data_type
|
|
6921
7027
|
if not UtilClient.is_unset(request.end_time):
|
|
6922
7028
|
body['EndTime'] = request.end_time
|
|
6923
7029
|
if not UtilClient.is_unset(request.query):
|
|
@@ -6971,6 +7077,8 @@ class Client(OpenApiClient):
|
|
|
6971
7077
|
body['ContentDomain'] = request.content_domain
|
|
6972
7078
|
if not UtilClient.is_unset(request.current):
|
|
6973
7079
|
body['Current'] = request.current
|
|
7080
|
+
if not UtilClient.is_unset(request.data_type):
|
|
7081
|
+
body['DataType'] = request.data_type
|
|
6974
7082
|
if not UtilClient.is_unset(request.end_time):
|
|
6975
7083
|
body['EndTime'] = request.end_time
|
|
6976
7084
|
if not UtilClient.is_unset(request.query):
|
|
@@ -9301,6 +9409,118 @@ class Client(OpenApiClient):
|
|
|
9301
9409
|
runtime = util_models.RuntimeOptions()
|
|
9302
9410
|
return await self.list_web_review_points_with_options_async(request, runtime)
|
|
9303
9411
|
|
|
9412
|
+
def list_writing_styles_with_options(
|
|
9413
|
+
self,
|
|
9414
|
+
request: ai_miao_bi_20230801_models.ListWritingStylesRequest,
|
|
9415
|
+
runtime: util_models.RuntimeOptions,
|
|
9416
|
+
) -> ai_miao_bi_20230801_models.ListWritingStylesResponse:
|
|
9417
|
+
"""
|
|
9418
|
+
@summary 获取文体列表
|
|
9419
|
+
|
|
9420
|
+
@param request: ListWritingStylesRequest
|
|
9421
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
9422
|
+
@return: ListWritingStylesResponse
|
|
9423
|
+
"""
|
|
9424
|
+
UtilClient.validate_model(request)
|
|
9425
|
+
query = {}
|
|
9426
|
+
if not UtilClient.is_unset(request.workspace_id):
|
|
9427
|
+
query['WorkspaceId'] = request.workspace_id
|
|
9428
|
+
body = {}
|
|
9429
|
+
if not UtilClient.is_unset(request.max_results):
|
|
9430
|
+
body['MaxResults'] = request.max_results
|
|
9431
|
+
if not UtilClient.is_unset(request.next_token):
|
|
9432
|
+
body['NextToken'] = request.next_token
|
|
9433
|
+
if not UtilClient.is_unset(request.scene):
|
|
9434
|
+
body['Scene'] = request.scene
|
|
9435
|
+
req = open_api_models.OpenApiRequest(
|
|
9436
|
+
query=OpenApiUtilClient.query(query),
|
|
9437
|
+
body=OpenApiUtilClient.parse_to_map(body)
|
|
9438
|
+
)
|
|
9439
|
+
params = open_api_models.Params(
|
|
9440
|
+
action='ListWritingStyles',
|
|
9441
|
+
version='2023-08-01',
|
|
9442
|
+
protocol='HTTPS',
|
|
9443
|
+
pathname='/',
|
|
9444
|
+
method='POST',
|
|
9445
|
+
auth_type='AK',
|
|
9446
|
+
style='RPC',
|
|
9447
|
+
req_body_type='formData',
|
|
9448
|
+
body_type='json'
|
|
9449
|
+
)
|
|
9450
|
+
return TeaCore.from_map(
|
|
9451
|
+
ai_miao_bi_20230801_models.ListWritingStylesResponse(),
|
|
9452
|
+
self.call_api(params, req, runtime)
|
|
9453
|
+
)
|
|
9454
|
+
|
|
9455
|
+
async def list_writing_styles_with_options_async(
|
|
9456
|
+
self,
|
|
9457
|
+
request: ai_miao_bi_20230801_models.ListWritingStylesRequest,
|
|
9458
|
+
runtime: util_models.RuntimeOptions,
|
|
9459
|
+
) -> ai_miao_bi_20230801_models.ListWritingStylesResponse:
|
|
9460
|
+
"""
|
|
9461
|
+
@summary 获取文体列表
|
|
9462
|
+
|
|
9463
|
+
@param request: ListWritingStylesRequest
|
|
9464
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
9465
|
+
@return: ListWritingStylesResponse
|
|
9466
|
+
"""
|
|
9467
|
+
UtilClient.validate_model(request)
|
|
9468
|
+
query = {}
|
|
9469
|
+
if not UtilClient.is_unset(request.workspace_id):
|
|
9470
|
+
query['WorkspaceId'] = request.workspace_id
|
|
9471
|
+
body = {}
|
|
9472
|
+
if not UtilClient.is_unset(request.max_results):
|
|
9473
|
+
body['MaxResults'] = request.max_results
|
|
9474
|
+
if not UtilClient.is_unset(request.next_token):
|
|
9475
|
+
body['NextToken'] = request.next_token
|
|
9476
|
+
if not UtilClient.is_unset(request.scene):
|
|
9477
|
+
body['Scene'] = request.scene
|
|
9478
|
+
req = open_api_models.OpenApiRequest(
|
|
9479
|
+
query=OpenApiUtilClient.query(query),
|
|
9480
|
+
body=OpenApiUtilClient.parse_to_map(body)
|
|
9481
|
+
)
|
|
9482
|
+
params = open_api_models.Params(
|
|
9483
|
+
action='ListWritingStyles',
|
|
9484
|
+
version='2023-08-01',
|
|
9485
|
+
protocol='HTTPS',
|
|
9486
|
+
pathname='/',
|
|
9487
|
+
method='POST',
|
|
9488
|
+
auth_type='AK',
|
|
9489
|
+
style='RPC',
|
|
9490
|
+
req_body_type='formData',
|
|
9491
|
+
body_type='json'
|
|
9492
|
+
)
|
|
9493
|
+
return TeaCore.from_map(
|
|
9494
|
+
ai_miao_bi_20230801_models.ListWritingStylesResponse(),
|
|
9495
|
+
await self.call_api_async(params, req, runtime)
|
|
9496
|
+
)
|
|
9497
|
+
|
|
9498
|
+
def list_writing_styles(
|
|
9499
|
+
self,
|
|
9500
|
+
request: ai_miao_bi_20230801_models.ListWritingStylesRequest,
|
|
9501
|
+
) -> ai_miao_bi_20230801_models.ListWritingStylesResponse:
|
|
9502
|
+
"""
|
|
9503
|
+
@summary 获取文体列表
|
|
9504
|
+
|
|
9505
|
+
@param request: ListWritingStylesRequest
|
|
9506
|
+
@return: ListWritingStylesResponse
|
|
9507
|
+
"""
|
|
9508
|
+
runtime = util_models.RuntimeOptions()
|
|
9509
|
+
return self.list_writing_styles_with_options(request, runtime)
|
|
9510
|
+
|
|
9511
|
+
async def list_writing_styles_async(
|
|
9512
|
+
self,
|
|
9513
|
+
request: ai_miao_bi_20230801_models.ListWritingStylesRequest,
|
|
9514
|
+
) -> ai_miao_bi_20230801_models.ListWritingStylesResponse:
|
|
9515
|
+
"""
|
|
9516
|
+
@summary 获取文体列表
|
|
9517
|
+
|
|
9518
|
+
@param request: ListWritingStylesRequest
|
|
9519
|
+
@return: ListWritingStylesResponse
|
|
9520
|
+
"""
|
|
9521
|
+
runtime = util_models.RuntimeOptions()
|
|
9522
|
+
return await self.list_writing_styles_with_options_async(request, runtime)
|
|
9523
|
+
|
|
9304
9524
|
def query_async_task_with_options(
|
|
9305
9525
|
self,
|
|
9306
9526
|
request: ai_miao_bi_20230801_models.QueryAsyncTaskRequest,
|
|
@@ -12817,6 +13037,210 @@ class Client(OpenApiClient):
|
|
|
12817
13037
|
runtime = util_models.RuntimeOptions()
|
|
12818
13038
|
return await self.run_writing_with_options_async(request, runtime)
|
|
12819
13039
|
|
|
13040
|
+
def run_writing_v2with_options(
|
|
13041
|
+
self,
|
|
13042
|
+
tmp_req: ai_miao_bi_20230801_models.RunWritingV2Request,
|
|
13043
|
+
runtime: util_models.RuntimeOptions,
|
|
13044
|
+
) -> ai_miao_bi_20230801_models.RunWritingV2Response:
|
|
13045
|
+
"""
|
|
13046
|
+
@summary 直接写作
|
|
13047
|
+
|
|
13048
|
+
@param tmp_req: RunWritingV2Request
|
|
13049
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
13050
|
+
@return: RunWritingV2Response
|
|
13051
|
+
"""
|
|
13052
|
+
UtilClient.validate_model(tmp_req)
|
|
13053
|
+
request = ai_miao_bi_20230801_models.RunWritingV2ShrinkRequest()
|
|
13054
|
+
OpenApiUtilClient.convert(tmp_req, request)
|
|
13055
|
+
if not UtilClient.is_unset(tmp_req.articles):
|
|
13056
|
+
request.articles_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.articles, 'Articles', 'json')
|
|
13057
|
+
if not UtilClient.is_unset(tmp_req.keywords):
|
|
13058
|
+
request.keywords_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.keywords, 'Keywords', 'json')
|
|
13059
|
+
if not UtilClient.is_unset(tmp_req.mini_docs):
|
|
13060
|
+
request.mini_docs_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.mini_docs, 'MiniDocs', 'json')
|
|
13061
|
+
if not UtilClient.is_unset(tmp_req.outlines):
|
|
13062
|
+
request.outlines_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.outlines, 'Outlines', 'json')
|
|
13063
|
+
if not UtilClient.is_unset(tmp_req.search_sources):
|
|
13064
|
+
request.search_sources_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.search_sources, 'SearchSources', 'json')
|
|
13065
|
+
if not UtilClient.is_unset(tmp_req.summarization):
|
|
13066
|
+
request.summarization_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.summarization, 'Summarization', 'json')
|
|
13067
|
+
if not UtilClient.is_unset(tmp_req.writing_params):
|
|
13068
|
+
request.writing_params_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.writing_params, 'WritingParams', 'json')
|
|
13069
|
+
body = {}
|
|
13070
|
+
if not UtilClient.is_unset(request.articles_shrink):
|
|
13071
|
+
body['Articles'] = request.articles_shrink
|
|
13072
|
+
if not UtilClient.is_unset(request.distribute_writing):
|
|
13073
|
+
body['DistributeWriting'] = request.distribute_writing
|
|
13074
|
+
if not UtilClient.is_unset(request.gc_number_size):
|
|
13075
|
+
body['GcNumberSize'] = request.gc_number_size
|
|
13076
|
+
if not UtilClient.is_unset(request.gc_number_size_tag):
|
|
13077
|
+
body['GcNumberSizeTag'] = request.gc_number_size_tag
|
|
13078
|
+
if not UtilClient.is_unset(request.keywords_shrink):
|
|
13079
|
+
body['Keywords'] = request.keywords_shrink
|
|
13080
|
+
if not UtilClient.is_unset(request.language):
|
|
13081
|
+
body['Language'] = request.language
|
|
13082
|
+
if not UtilClient.is_unset(request.mini_docs_shrink):
|
|
13083
|
+
body['MiniDocs'] = request.mini_docs_shrink
|
|
13084
|
+
if not UtilClient.is_unset(request.outlines_shrink):
|
|
13085
|
+
body['Outlines'] = request.outlines_shrink
|
|
13086
|
+
if not UtilClient.is_unset(request.prompt):
|
|
13087
|
+
body['Prompt'] = request.prompt
|
|
13088
|
+
if not UtilClient.is_unset(request.prompt_mode):
|
|
13089
|
+
body['PromptMode'] = request.prompt_mode
|
|
13090
|
+
if not UtilClient.is_unset(request.search_sources_shrink):
|
|
13091
|
+
body['SearchSources'] = request.search_sources_shrink
|
|
13092
|
+
if not UtilClient.is_unset(request.session_id):
|
|
13093
|
+
body['SessionId'] = request.session_id
|
|
13094
|
+
if not UtilClient.is_unset(request.step):
|
|
13095
|
+
body['Step'] = request.step
|
|
13096
|
+
if not UtilClient.is_unset(request.summarization_shrink):
|
|
13097
|
+
body['Summarization'] = request.summarization_shrink
|
|
13098
|
+
if not UtilClient.is_unset(request.task_id):
|
|
13099
|
+
body['TaskId'] = request.task_id
|
|
13100
|
+
if not UtilClient.is_unset(request.use_search):
|
|
13101
|
+
body['UseSearch'] = request.use_search
|
|
13102
|
+
if not UtilClient.is_unset(request.workspace_id):
|
|
13103
|
+
body['WorkspaceId'] = request.workspace_id
|
|
13104
|
+
if not UtilClient.is_unset(request.writing_params_shrink):
|
|
13105
|
+
body['WritingParams'] = request.writing_params_shrink
|
|
13106
|
+
if not UtilClient.is_unset(request.writing_scene):
|
|
13107
|
+
body['WritingScene'] = request.writing_scene
|
|
13108
|
+
if not UtilClient.is_unset(request.writing_style):
|
|
13109
|
+
body['WritingStyle'] = request.writing_style
|
|
13110
|
+
req = open_api_models.OpenApiRequest(
|
|
13111
|
+
body=OpenApiUtilClient.parse_to_map(body)
|
|
13112
|
+
)
|
|
13113
|
+
params = open_api_models.Params(
|
|
13114
|
+
action='RunWritingV2',
|
|
13115
|
+
version='2023-08-01',
|
|
13116
|
+
protocol='HTTPS',
|
|
13117
|
+
pathname='/',
|
|
13118
|
+
method='POST',
|
|
13119
|
+
auth_type='AK',
|
|
13120
|
+
style='RPC',
|
|
13121
|
+
req_body_type='formData',
|
|
13122
|
+
body_type='json'
|
|
13123
|
+
)
|
|
13124
|
+
return TeaCore.from_map(
|
|
13125
|
+
ai_miao_bi_20230801_models.RunWritingV2Response(),
|
|
13126
|
+
self.call_api(params, req, runtime)
|
|
13127
|
+
)
|
|
13128
|
+
|
|
13129
|
+
async def run_writing_v2with_options_async(
|
|
13130
|
+
self,
|
|
13131
|
+
tmp_req: ai_miao_bi_20230801_models.RunWritingV2Request,
|
|
13132
|
+
runtime: util_models.RuntimeOptions,
|
|
13133
|
+
) -> ai_miao_bi_20230801_models.RunWritingV2Response:
|
|
13134
|
+
"""
|
|
13135
|
+
@summary 直接写作
|
|
13136
|
+
|
|
13137
|
+
@param tmp_req: RunWritingV2Request
|
|
13138
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
13139
|
+
@return: RunWritingV2Response
|
|
13140
|
+
"""
|
|
13141
|
+
UtilClient.validate_model(tmp_req)
|
|
13142
|
+
request = ai_miao_bi_20230801_models.RunWritingV2ShrinkRequest()
|
|
13143
|
+
OpenApiUtilClient.convert(tmp_req, request)
|
|
13144
|
+
if not UtilClient.is_unset(tmp_req.articles):
|
|
13145
|
+
request.articles_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.articles, 'Articles', 'json')
|
|
13146
|
+
if not UtilClient.is_unset(tmp_req.keywords):
|
|
13147
|
+
request.keywords_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.keywords, 'Keywords', 'json')
|
|
13148
|
+
if not UtilClient.is_unset(tmp_req.mini_docs):
|
|
13149
|
+
request.mini_docs_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.mini_docs, 'MiniDocs', 'json')
|
|
13150
|
+
if not UtilClient.is_unset(tmp_req.outlines):
|
|
13151
|
+
request.outlines_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.outlines, 'Outlines', 'json')
|
|
13152
|
+
if not UtilClient.is_unset(tmp_req.search_sources):
|
|
13153
|
+
request.search_sources_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.search_sources, 'SearchSources', 'json')
|
|
13154
|
+
if not UtilClient.is_unset(tmp_req.summarization):
|
|
13155
|
+
request.summarization_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.summarization, 'Summarization', 'json')
|
|
13156
|
+
if not UtilClient.is_unset(tmp_req.writing_params):
|
|
13157
|
+
request.writing_params_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.writing_params, 'WritingParams', 'json')
|
|
13158
|
+
body = {}
|
|
13159
|
+
if not UtilClient.is_unset(request.articles_shrink):
|
|
13160
|
+
body['Articles'] = request.articles_shrink
|
|
13161
|
+
if not UtilClient.is_unset(request.distribute_writing):
|
|
13162
|
+
body['DistributeWriting'] = request.distribute_writing
|
|
13163
|
+
if not UtilClient.is_unset(request.gc_number_size):
|
|
13164
|
+
body['GcNumberSize'] = request.gc_number_size
|
|
13165
|
+
if not UtilClient.is_unset(request.gc_number_size_tag):
|
|
13166
|
+
body['GcNumberSizeTag'] = request.gc_number_size_tag
|
|
13167
|
+
if not UtilClient.is_unset(request.keywords_shrink):
|
|
13168
|
+
body['Keywords'] = request.keywords_shrink
|
|
13169
|
+
if not UtilClient.is_unset(request.language):
|
|
13170
|
+
body['Language'] = request.language
|
|
13171
|
+
if not UtilClient.is_unset(request.mini_docs_shrink):
|
|
13172
|
+
body['MiniDocs'] = request.mini_docs_shrink
|
|
13173
|
+
if not UtilClient.is_unset(request.outlines_shrink):
|
|
13174
|
+
body['Outlines'] = request.outlines_shrink
|
|
13175
|
+
if not UtilClient.is_unset(request.prompt):
|
|
13176
|
+
body['Prompt'] = request.prompt
|
|
13177
|
+
if not UtilClient.is_unset(request.prompt_mode):
|
|
13178
|
+
body['PromptMode'] = request.prompt_mode
|
|
13179
|
+
if not UtilClient.is_unset(request.search_sources_shrink):
|
|
13180
|
+
body['SearchSources'] = request.search_sources_shrink
|
|
13181
|
+
if not UtilClient.is_unset(request.session_id):
|
|
13182
|
+
body['SessionId'] = request.session_id
|
|
13183
|
+
if not UtilClient.is_unset(request.step):
|
|
13184
|
+
body['Step'] = request.step
|
|
13185
|
+
if not UtilClient.is_unset(request.summarization_shrink):
|
|
13186
|
+
body['Summarization'] = request.summarization_shrink
|
|
13187
|
+
if not UtilClient.is_unset(request.task_id):
|
|
13188
|
+
body['TaskId'] = request.task_id
|
|
13189
|
+
if not UtilClient.is_unset(request.use_search):
|
|
13190
|
+
body['UseSearch'] = request.use_search
|
|
13191
|
+
if not UtilClient.is_unset(request.workspace_id):
|
|
13192
|
+
body['WorkspaceId'] = request.workspace_id
|
|
13193
|
+
if not UtilClient.is_unset(request.writing_params_shrink):
|
|
13194
|
+
body['WritingParams'] = request.writing_params_shrink
|
|
13195
|
+
if not UtilClient.is_unset(request.writing_scene):
|
|
13196
|
+
body['WritingScene'] = request.writing_scene
|
|
13197
|
+
if not UtilClient.is_unset(request.writing_style):
|
|
13198
|
+
body['WritingStyle'] = request.writing_style
|
|
13199
|
+
req = open_api_models.OpenApiRequest(
|
|
13200
|
+
body=OpenApiUtilClient.parse_to_map(body)
|
|
13201
|
+
)
|
|
13202
|
+
params = open_api_models.Params(
|
|
13203
|
+
action='RunWritingV2',
|
|
13204
|
+
version='2023-08-01',
|
|
13205
|
+
protocol='HTTPS',
|
|
13206
|
+
pathname='/',
|
|
13207
|
+
method='POST',
|
|
13208
|
+
auth_type='AK',
|
|
13209
|
+
style='RPC',
|
|
13210
|
+
req_body_type='formData',
|
|
13211
|
+
body_type='json'
|
|
13212
|
+
)
|
|
13213
|
+
return TeaCore.from_map(
|
|
13214
|
+
ai_miao_bi_20230801_models.RunWritingV2Response(),
|
|
13215
|
+
await self.call_api_async(params, req, runtime)
|
|
13216
|
+
)
|
|
13217
|
+
|
|
13218
|
+
def run_writing_v2(
|
|
13219
|
+
self,
|
|
13220
|
+
request: ai_miao_bi_20230801_models.RunWritingV2Request,
|
|
13221
|
+
) -> ai_miao_bi_20230801_models.RunWritingV2Response:
|
|
13222
|
+
"""
|
|
13223
|
+
@summary 直接写作
|
|
13224
|
+
|
|
13225
|
+
@param request: RunWritingV2Request
|
|
13226
|
+
@return: RunWritingV2Response
|
|
13227
|
+
"""
|
|
13228
|
+
runtime = util_models.RuntimeOptions()
|
|
13229
|
+
return self.run_writing_v2with_options(request, runtime)
|
|
13230
|
+
|
|
13231
|
+
async def run_writing_v2_async(
|
|
13232
|
+
self,
|
|
13233
|
+
request: ai_miao_bi_20230801_models.RunWritingV2Request,
|
|
13234
|
+
) -> ai_miao_bi_20230801_models.RunWritingV2Response:
|
|
13235
|
+
"""
|
|
13236
|
+
@summary 直接写作
|
|
13237
|
+
|
|
13238
|
+
@param request: RunWritingV2Request
|
|
13239
|
+
@return: RunWritingV2Response
|
|
13240
|
+
"""
|
|
13241
|
+
runtime = util_models.RuntimeOptions()
|
|
13242
|
+
return await self.run_writing_v2with_options_async(request, runtime)
|
|
13243
|
+
|
|
12820
13244
|
def save_custom_text_with_options(
|
|
12821
13245
|
self,
|
|
12822
13246
|
request: ai_miao_bi_20230801_models.SaveCustomTextRequest,
|