alibabacloud-quanmiaolightapp20240801 1.2.0__tar.gz → 1.4.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_quanmiaolightapp20240801-1.4.0/ChangeLog.md +20 -0
- {alibabacloud_quanmiaolightapp20240801-1.2.0 → alibabacloud_quanmiaolightapp20240801-1.4.0}/PKG-INFO +2 -2
- {alibabacloud_quanmiaolightapp20240801-1.2.0 → alibabacloud_quanmiaolightapp20240801-1.4.0}/README-CN.md +1 -1
- {alibabacloud_quanmiaolightapp20240801-1.2.0 → alibabacloud_quanmiaolightapp20240801-1.4.0}/README.md +1 -1
- alibabacloud_quanmiaolightapp20240801-1.4.0/alibabacloud_quanmiaolightapp20240801/__init__.py +1 -0
- {alibabacloud_quanmiaolightapp20240801-1.2.0 → alibabacloud_quanmiaolightapp20240801-1.4.0}/alibabacloud_quanmiaolightapp20240801/client.py +528 -0
- {alibabacloud_quanmiaolightapp20240801-1.2.0 → alibabacloud_quanmiaolightapp20240801-1.4.0}/alibabacloud_quanmiaolightapp20240801/models.py +1946 -208
- {alibabacloud_quanmiaolightapp20240801-1.2.0 → alibabacloud_quanmiaolightapp20240801-1.4.0}/alibabacloud_quanmiaolightapp20240801.egg-info/PKG-INFO +2 -2
- {alibabacloud_quanmiaolightapp20240801-1.2.0 → alibabacloud_quanmiaolightapp20240801-1.4.0}/alibabacloud_quanmiaolightapp20240801.egg-info/requires.txt +1 -1
- {alibabacloud_quanmiaolightapp20240801-1.2.0 → alibabacloud_quanmiaolightapp20240801-1.4.0}/setup.py +2 -2
- alibabacloud_quanmiaolightapp20240801-1.2.0/ChangeLog.md +0 -8
- alibabacloud_quanmiaolightapp20240801-1.2.0/alibabacloud_quanmiaolightapp20240801/__init__.py +0 -1
- {alibabacloud_quanmiaolightapp20240801-1.2.0 → alibabacloud_quanmiaolightapp20240801-1.4.0}/LICENSE +0 -0
- {alibabacloud_quanmiaolightapp20240801-1.2.0 → alibabacloud_quanmiaolightapp20240801-1.4.0}/MANIFEST.in +0 -0
- {alibabacloud_quanmiaolightapp20240801-1.2.0 → alibabacloud_quanmiaolightapp20240801-1.4.0}/alibabacloud_quanmiaolightapp20240801.egg-info/SOURCES.txt +0 -0
- {alibabacloud_quanmiaolightapp20240801-1.2.0 → alibabacloud_quanmiaolightapp20240801-1.4.0}/alibabacloud_quanmiaolightapp20240801.egg-info/dependency_links.txt +0 -0
- {alibabacloud_quanmiaolightapp20240801-1.2.0 → alibabacloud_quanmiaolightapp20240801-1.4.0}/alibabacloud_quanmiaolightapp20240801.egg-info/top_level.txt +0 -0
- {alibabacloud_quanmiaolightapp20240801-1.2.0 → alibabacloud_quanmiaolightapp20240801-1.4.0}/setup.cfg +0 -0
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
2024-09-26 Version: 1.3.0
|
|
2
|
+
- Support API GenerateBroadcastNews.
|
|
3
|
+
- Support API RunCommentGeneration.
|
|
4
|
+
- Update API RunVideoAnalysis: add param snapshotInterval.
|
|
5
|
+
- Update API RunVideoAnalysis: add param videoExtraInfo.
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
2024-09-14 Version: 1.2.0
|
|
9
|
+
- Support API ListHotTopicSummaries.
|
|
10
|
+
- Update API RunVideoAnalysis: update response param.
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
2024-09-14 Version: 1.1.0
|
|
14
|
+
- Support API ListHotTopicSummaries.
|
|
15
|
+
- Update API RunVideoAnalysis: update response param.
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
2024-09-05 Version: 1.0.0
|
|
19
|
+
- Generated python 2024-08-01 for QuanMiaoLightApp.
|
|
20
|
+
|
{alibabacloud_quanmiaolightapp20240801-1.2.0 → alibabacloud_quanmiaolightapp20240801-1.4.0}/PKG-INFO
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: alibabacloud_quanmiaolightapp20240801
|
|
3
|
-
Version: 1.
|
|
3
|
+
Version: 1.4.0
|
|
4
4
|
Summary: Alibaba Cloud QuanMiaoLightApp (20240801) SDK Library for Python
|
|
5
5
|
Home-page: https://github.com/aliyun/alibabacloud-python-sdk
|
|
6
6
|
Author: Alibaba Cloud SDK
|
|
@@ -29,7 +29,7 @@ English | [简体中文](README-CN.md)
|
|
|
29
29
|
|
|
30
30
|
## Requirements
|
|
31
31
|
|
|
32
|
-
- Python >= 3.
|
|
32
|
+
- Python >= 3.7
|
|
33
33
|
|
|
34
34
|
## Installation
|
|
35
35
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = '1.4.0'
|
|
@@ -41,6 +41,114 @@ class Client(OpenApiClient):
|
|
|
41
41
|
return endpoint_map.get(region_id)
|
|
42
42
|
return EndpointUtilClient.get_endpoint_rules(product_id, region_id, endpoint_rule, network, suffix)
|
|
43
43
|
|
|
44
|
+
def generate_broadcast_news_with_options(
|
|
45
|
+
self,
|
|
46
|
+
workspace_id: str,
|
|
47
|
+
request: quan_miao_light_app_20240801_models.GenerateBroadcastNewsRequest,
|
|
48
|
+
headers: Dict[str, str],
|
|
49
|
+
runtime: util_models.RuntimeOptions,
|
|
50
|
+
) -> quan_miao_light_app_20240801_models.GenerateBroadcastNewsResponse:
|
|
51
|
+
"""
|
|
52
|
+
@summary 新闻播报-抽取分类获取播报热点
|
|
53
|
+
|
|
54
|
+
@param request: GenerateBroadcastNewsRequest
|
|
55
|
+
@param headers: map
|
|
56
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
57
|
+
@return: GenerateBroadcastNewsResponse
|
|
58
|
+
"""
|
|
59
|
+
UtilClient.validate_model(request)
|
|
60
|
+
body = {}
|
|
61
|
+
if not UtilClient.is_unset(request.prompt):
|
|
62
|
+
body['prompt'] = request.prompt
|
|
63
|
+
req = open_api_models.OpenApiRequest(
|
|
64
|
+
headers=headers,
|
|
65
|
+
body=OpenApiUtilClient.parse_to_map(body)
|
|
66
|
+
)
|
|
67
|
+
params = open_api_models.Params(
|
|
68
|
+
action='GenerateBroadcastNews',
|
|
69
|
+
version='2024-08-01',
|
|
70
|
+
protocol='HTTPS',
|
|
71
|
+
pathname=f'/{OpenApiUtilClient.get_encode_param(workspace_id)}/quanmiao/lightapp/GenerateBroadcastNews',
|
|
72
|
+
method='POST',
|
|
73
|
+
auth_type='AK',
|
|
74
|
+
style='ROA',
|
|
75
|
+
req_body_type='formData',
|
|
76
|
+
body_type='json'
|
|
77
|
+
)
|
|
78
|
+
return TeaCore.from_map(
|
|
79
|
+
quan_miao_light_app_20240801_models.GenerateBroadcastNewsResponse(),
|
|
80
|
+
self.call_api(params, req, runtime)
|
|
81
|
+
)
|
|
82
|
+
|
|
83
|
+
async def generate_broadcast_news_with_options_async(
|
|
84
|
+
self,
|
|
85
|
+
workspace_id: str,
|
|
86
|
+
request: quan_miao_light_app_20240801_models.GenerateBroadcastNewsRequest,
|
|
87
|
+
headers: Dict[str, str],
|
|
88
|
+
runtime: util_models.RuntimeOptions,
|
|
89
|
+
) -> quan_miao_light_app_20240801_models.GenerateBroadcastNewsResponse:
|
|
90
|
+
"""
|
|
91
|
+
@summary 新闻播报-抽取分类获取播报热点
|
|
92
|
+
|
|
93
|
+
@param request: GenerateBroadcastNewsRequest
|
|
94
|
+
@param headers: map
|
|
95
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
96
|
+
@return: GenerateBroadcastNewsResponse
|
|
97
|
+
"""
|
|
98
|
+
UtilClient.validate_model(request)
|
|
99
|
+
body = {}
|
|
100
|
+
if not UtilClient.is_unset(request.prompt):
|
|
101
|
+
body['prompt'] = request.prompt
|
|
102
|
+
req = open_api_models.OpenApiRequest(
|
|
103
|
+
headers=headers,
|
|
104
|
+
body=OpenApiUtilClient.parse_to_map(body)
|
|
105
|
+
)
|
|
106
|
+
params = open_api_models.Params(
|
|
107
|
+
action='GenerateBroadcastNews',
|
|
108
|
+
version='2024-08-01',
|
|
109
|
+
protocol='HTTPS',
|
|
110
|
+
pathname=f'/{OpenApiUtilClient.get_encode_param(workspace_id)}/quanmiao/lightapp/GenerateBroadcastNews',
|
|
111
|
+
method='POST',
|
|
112
|
+
auth_type='AK',
|
|
113
|
+
style='ROA',
|
|
114
|
+
req_body_type='formData',
|
|
115
|
+
body_type='json'
|
|
116
|
+
)
|
|
117
|
+
return TeaCore.from_map(
|
|
118
|
+
quan_miao_light_app_20240801_models.GenerateBroadcastNewsResponse(),
|
|
119
|
+
await self.call_api_async(params, req, runtime)
|
|
120
|
+
)
|
|
121
|
+
|
|
122
|
+
def generate_broadcast_news(
|
|
123
|
+
self,
|
|
124
|
+
workspace_id: str,
|
|
125
|
+
request: quan_miao_light_app_20240801_models.GenerateBroadcastNewsRequest,
|
|
126
|
+
) -> quan_miao_light_app_20240801_models.GenerateBroadcastNewsResponse:
|
|
127
|
+
"""
|
|
128
|
+
@summary 新闻播报-抽取分类获取播报热点
|
|
129
|
+
|
|
130
|
+
@param request: GenerateBroadcastNewsRequest
|
|
131
|
+
@return: GenerateBroadcastNewsResponse
|
|
132
|
+
"""
|
|
133
|
+
runtime = util_models.RuntimeOptions()
|
|
134
|
+
headers = {}
|
|
135
|
+
return self.generate_broadcast_news_with_options(workspace_id, request, headers, runtime)
|
|
136
|
+
|
|
137
|
+
async def generate_broadcast_news_async(
|
|
138
|
+
self,
|
|
139
|
+
workspace_id: str,
|
|
140
|
+
request: quan_miao_light_app_20240801_models.GenerateBroadcastNewsRequest,
|
|
141
|
+
) -> quan_miao_light_app_20240801_models.GenerateBroadcastNewsResponse:
|
|
142
|
+
"""
|
|
143
|
+
@summary 新闻播报-抽取分类获取播报热点
|
|
144
|
+
|
|
145
|
+
@param request: GenerateBroadcastNewsRequest
|
|
146
|
+
@return: GenerateBroadcastNewsResponse
|
|
147
|
+
"""
|
|
148
|
+
runtime = util_models.RuntimeOptions()
|
|
149
|
+
headers = {}
|
|
150
|
+
return await self.generate_broadcast_news_with_options_async(workspace_id, request, headers, runtime)
|
|
151
|
+
|
|
44
152
|
def list_hot_topic_summaries_with_options(
|
|
45
153
|
self,
|
|
46
154
|
workspace_id: str,
|
|
@@ -165,6 +273,418 @@ class Client(OpenApiClient):
|
|
|
165
273
|
headers = {}
|
|
166
274
|
return await self.list_hot_topic_summaries_with_options_async(workspace_id, request, headers, runtime)
|
|
167
275
|
|
|
276
|
+
def run_comment_generation_with_options(
|
|
277
|
+
self,
|
|
278
|
+
workspace_id: str,
|
|
279
|
+
request: quan_miao_light_app_20240801_models.RunCommentGenerationRequest,
|
|
280
|
+
headers: Dict[str, str],
|
|
281
|
+
runtime: util_models.RuntimeOptions,
|
|
282
|
+
) -> quan_miao_light_app_20240801_models.RunCommentGenerationResponse:
|
|
283
|
+
"""
|
|
284
|
+
@summary 评论生成服务
|
|
285
|
+
|
|
286
|
+
@param request: RunCommentGenerationRequest
|
|
287
|
+
@param headers: map
|
|
288
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
289
|
+
@return: RunCommentGenerationResponse
|
|
290
|
+
"""
|
|
291
|
+
UtilClient.validate_model(request)
|
|
292
|
+
body = {}
|
|
293
|
+
if not UtilClient.is_unset(request.length):
|
|
294
|
+
body['length'] = request.length
|
|
295
|
+
if not UtilClient.is_unset(request.num_comments):
|
|
296
|
+
body['numComments'] = request.num_comments
|
|
297
|
+
if not UtilClient.is_unset(request.source_material):
|
|
298
|
+
body['sourceMaterial'] = request.source_material
|
|
299
|
+
if not UtilClient.is_unset(request.style):
|
|
300
|
+
body['style'] = request.style
|
|
301
|
+
req = open_api_models.OpenApiRequest(
|
|
302
|
+
headers=headers,
|
|
303
|
+
body=OpenApiUtilClient.parse_to_map(body)
|
|
304
|
+
)
|
|
305
|
+
params = open_api_models.Params(
|
|
306
|
+
action='RunCommentGeneration',
|
|
307
|
+
version='2024-08-01',
|
|
308
|
+
protocol='HTTPS',
|
|
309
|
+
pathname=f'/{OpenApiUtilClient.get_encode_param(workspace_id)}/quanmiao/lightapp/runCommentGeneration',
|
|
310
|
+
method='POST',
|
|
311
|
+
auth_type='AK',
|
|
312
|
+
style='ROA',
|
|
313
|
+
req_body_type='formData',
|
|
314
|
+
body_type='json'
|
|
315
|
+
)
|
|
316
|
+
return TeaCore.from_map(
|
|
317
|
+
quan_miao_light_app_20240801_models.RunCommentGenerationResponse(),
|
|
318
|
+
self.call_api(params, req, runtime)
|
|
319
|
+
)
|
|
320
|
+
|
|
321
|
+
async def run_comment_generation_with_options_async(
|
|
322
|
+
self,
|
|
323
|
+
workspace_id: str,
|
|
324
|
+
request: quan_miao_light_app_20240801_models.RunCommentGenerationRequest,
|
|
325
|
+
headers: Dict[str, str],
|
|
326
|
+
runtime: util_models.RuntimeOptions,
|
|
327
|
+
) -> quan_miao_light_app_20240801_models.RunCommentGenerationResponse:
|
|
328
|
+
"""
|
|
329
|
+
@summary 评论生成服务
|
|
330
|
+
|
|
331
|
+
@param request: RunCommentGenerationRequest
|
|
332
|
+
@param headers: map
|
|
333
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
334
|
+
@return: RunCommentGenerationResponse
|
|
335
|
+
"""
|
|
336
|
+
UtilClient.validate_model(request)
|
|
337
|
+
body = {}
|
|
338
|
+
if not UtilClient.is_unset(request.length):
|
|
339
|
+
body['length'] = request.length
|
|
340
|
+
if not UtilClient.is_unset(request.num_comments):
|
|
341
|
+
body['numComments'] = request.num_comments
|
|
342
|
+
if not UtilClient.is_unset(request.source_material):
|
|
343
|
+
body['sourceMaterial'] = request.source_material
|
|
344
|
+
if not UtilClient.is_unset(request.style):
|
|
345
|
+
body['style'] = request.style
|
|
346
|
+
req = open_api_models.OpenApiRequest(
|
|
347
|
+
headers=headers,
|
|
348
|
+
body=OpenApiUtilClient.parse_to_map(body)
|
|
349
|
+
)
|
|
350
|
+
params = open_api_models.Params(
|
|
351
|
+
action='RunCommentGeneration',
|
|
352
|
+
version='2024-08-01',
|
|
353
|
+
protocol='HTTPS',
|
|
354
|
+
pathname=f'/{OpenApiUtilClient.get_encode_param(workspace_id)}/quanmiao/lightapp/runCommentGeneration',
|
|
355
|
+
method='POST',
|
|
356
|
+
auth_type='AK',
|
|
357
|
+
style='ROA',
|
|
358
|
+
req_body_type='formData',
|
|
359
|
+
body_type='json'
|
|
360
|
+
)
|
|
361
|
+
return TeaCore.from_map(
|
|
362
|
+
quan_miao_light_app_20240801_models.RunCommentGenerationResponse(),
|
|
363
|
+
await self.call_api_async(params, req, runtime)
|
|
364
|
+
)
|
|
365
|
+
|
|
366
|
+
def run_comment_generation(
|
|
367
|
+
self,
|
|
368
|
+
workspace_id: str,
|
|
369
|
+
request: quan_miao_light_app_20240801_models.RunCommentGenerationRequest,
|
|
370
|
+
) -> quan_miao_light_app_20240801_models.RunCommentGenerationResponse:
|
|
371
|
+
"""
|
|
372
|
+
@summary 评论生成服务
|
|
373
|
+
|
|
374
|
+
@param request: RunCommentGenerationRequest
|
|
375
|
+
@return: RunCommentGenerationResponse
|
|
376
|
+
"""
|
|
377
|
+
runtime = util_models.RuntimeOptions()
|
|
378
|
+
headers = {}
|
|
379
|
+
return self.run_comment_generation_with_options(workspace_id, request, headers, runtime)
|
|
380
|
+
|
|
381
|
+
async def run_comment_generation_async(
|
|
382
|
+
self,
|
|
383
|
+
workspace_id: str,
|
|
384
|
+
request: quan_miao_light_app_20240801_models.RunCommentGenerationRequest,
|
|
385
|
+
) -> quan_miao_light_app_20240801_models.RunCommentGenerationResponse:
|
|
386
|
+
"""
|
|
387
|
+
@summary 评论生成服务
|
|
388
|
+
|
|
389
|
+
@param request: RunCommentGenerationRequest
|
|
390
|
+
@return: RunCommentGenerationResponse
|
|
391
|
+
"""
|
|
392
|
+
runtime = util_models.RuntimeOptions()
|
|
393
|
+
headers = {}
|
|
394
|
+
return await self.run_comment_generation_with_options_async(workspace_id, request, headers, runtime)
|
|
395
|
+
|
|
396
|
+
def run_hot_topic_chat_with_options(
|
|
397
|
+
self,
|
|
398
|
+
workspace_id: str,
|
|
399
|
+
tmp_req: quan_miao_light_app_20240801_models.RunHotTopicChatRequest,
|
|
400
|
+
headers: Dict[str, str],
|
|
401
|
+
runtime: util_models.RuntimeOptions,
|
|
402
|
+
) -> quan_miao_light_app_20240801_models.RunHotTopicChatResponse:
|
|
403
|
+
"""
|
|
404
|
+
@summary 轻应用-热点播报-问答
|
|
405
|
+
|
|
406
|
+
@param tmp_req: RunHotTopicChatRequest
|
|
407
|
+
@param headers: map
|
|
408
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
409
|
+
@return: RunHotTopicChatResponse
|
|
410
|
+
"""
|
|
411
|
+
UtilClient.validate_model(tmp_req)
|
|
412
|
+
request = quan_miao_light_app_20240801_models.RunHotTopicChatShrinkRequest()
|
|
413
|
+
OpenApiUtilClient.convert(tmp_req, request)
|
|
414
|
+
if not UtilClient.is_unset(tmp_req.generate_options):
|
|
415
|
+
request.generate_options_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.generate_options, 'generateOptions', 'json')
|
|
416
|
+
if not UtilClient.is_unset(tmp_req.hot_topics):
|
|
417
|
+
request.hot_topics_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.hot_topics, 'hotTopics', 'json')
|
|
418
|
+
if not UtilClient.is_unset(tmp_req.step_for_broadcast_content_config):
|
|
419
|
+
request.step_for_broadcast_content_config_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.step_for_broadcast_content_config, 'stepForBroadcastContentConfig', 'json')
|
|
420
|
+
body = {}
|
|
421
|
+
if not UtilClient.is_unset(request.category):
|
|
422
|
+
body['category'] = request.category
|
|
423
|
+
if not UtilClient.is_unset(request.generate_options_shrink):
|
|
424
|
+
body['generateOptions'] = request.generate_options_shrink
|
|
425
|
+
if not UtilClient.is_unset(request.hot_topic_version):
|
|
426
|
+
body['hotTopicVersion'] = request.hot_topic_version
|
|
427
|
+
if not UtilClient.is_unset(request.hot_topics_shrink):
|
|
428
|
+
body['hotTopics'] = request.hot_topics_shrink
|
|
429
|
+
if not UtilClient.is_unset(request.image_count):
|
|
430
|
+
body['imageCount'] = request.image_count
|
|
431
|
+
if not UtilClient.is_unset(request.model_custom_prompt_template):
|
|
432
|
+
body['modelCustomPromptTemplate'] = request.model_custom_prompt_template
|
|
433
|
+
if not UtilClient.is_unset(request.model_id):
|
|
434
|
+
body['modelId'] = request.model_id
|
|
435
|
+
if not UtilClient.is_unset(request.original_session_id):
|
|
436
|
+
body['originalSessionId'] = request.original_session_id
|
|
437
|
+
if not UtilClient.is_unset(request.prompt):
|
|
438
|
+
body['prompt'] = request.prompt
|
|
439
|
+
if not UtilClient.is_unset(request.step_for_broadcast_content_config_shrink):
|
|
440
|
+
body['stepForBroadcastContentConfig'] = request.step_for_broadcast_content_config_shrink
|
|
441
|
+
if not UtilClient.is_unset(request.task_id):
|
|
442
|
+
body['taskId'] = request.task_id
|
|
443
|
+
req = open_api_models.OpenApiRequest(
|
|
444
|
+
headers=headers,
|
|
445
|
+
body=OpenApiUtilClient.parse_to_map(body)
|
|
446
|
+
)
|
|
447
|
+
params = open_api_models.Params(
|
|
448
|
+
action='RunHotTopicChat',
|
|
449
|
+
version='2024-08-01',
|
|
450
|
+
protocol='HTTPS',
|
|
451
|
+
pathname=f'/{OpenApiUtilClient.get_encode_param(workspace_id)}/quanmiao/lightapp/runHotTopicChat',
|
|
452
|
+
method='POST',
|
|
453
|
+
auth_type='AK',
|
|
454
|
+
style='ROA',
|
|
455
|
+
req_body_type='formData',
|
|
456
|
+
body_type='json'
|
|
457
|
+
)
|
|
458
|
+
return TeaCore.from_map(
|
|
459
|
+
quan_miao_light_app_20240801_models.RunHotTopicChatResponse(),
|
|
460
|
+
self.call_api(params, req, runtime)
|
|
461
|
+
)
|
|
462
|
+
|
|
463
|
+
async def run_hot_topic_chat_with_options_async(
|
|
464
|
+
self,
|
|
465
|
+
workspace_id: str,
|
|
466
|
+
tmp_req: quan_miao_light_app_20240801_models.RunHotTopicChatRequest,
|
|
467
|
+
headers: Dict[str, str],
|
|
468
|
+
runtime: util_models.RuntimeOptions,
|
|
469
|
+
) -> quan_miao_light_app_20240801_models.RunHotTopicChatResponse:
|
|
470
|
+
"""
|
|
471
|
+
@summary 轻应用-热点播报-问答
|
|
472
|
+
|
|
473
|
+
@param tmp_req: RunHotTopicChatRequest
|
|
474
|
+
@param headers: map
|
|
475
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
476
|
+
@return: RunHotTopicChatResponse
|
|
477
|
+
"""
|
|
478
|
+
UtilClient.validate_model(tmp_req)
|
|
479
|
+
request = quan_miao_light_app_20240801_models.RunHotTopicChatShrinkRequest()
|
|
480
|
+
OpenApiUtilClient.convert(tmp_req, request)
|
|
481
|
+
if not UtilClient.is_unset(tmp_req.generate_options):
|
|
482
|
+
request.generate_options_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.generate_options, 'generateOptions', 'json')
|
|
483
|
+
if not UtilClient.is_unset(tmp_req.hot_topics):
|
|
484
|
+
request.hot_topics_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.hot_topics, 'hotTopics', 'json')
|
|
485
|
+
if not UtilClient.is_unset(tmp_req.step_for_broadcast_content_config):
|
|
486
|
+
request.step_for_broadcast_content_config_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.step_for_broadcast_content_config, 'stepForBroadcastContentConfig', 'json')
|
|
487
|
+
body = {}
|
|
488
|
+
if not UtilClient.is_unset(request.category):
|
|
489
|
+
body['category'] = request.category
|
|
490
|
+
if not UtilClient.is_unset(request.generate_options_shrink):
|
|
491
|
+
body['generateOptions'] = request.generate_options_shrink
|
|
492
|
+
if not UtilClient.is_unset(request.hot_topic_version):
|
|
493
|
+
body['hotTopicVersion'] = request.hot_topic_version
|
|
494
|
+
if not UtilClient.is_unset(request.hot_topics_shrink):
|
|
495
|
+
body['hotTopics'] = request.hot_topics_shrink
|
|
496
|
+
if not UtilClient.is_unset(request.image_count):
|
|
497
|
+
body['imageCount'] = request.image_count
|
|
498
|
+
if not UtilClient.is_unset(request.model_custom_prompt_template):
|
|
499
|
+
body['modelCustomPromptTemplate'] = request.model_custom_prompt_template
|
|
500
|
+
if not UtilClient.is_unset(request.model_id):
|
|
501
|
+
body['modelId'] = request.model_id
|
|
502
|
+
if not UtilClient.is_unset(request.original_session_id):
|
|
503
|
+
body['originalSessionId'] = request.original_session_id
|
|
504
|
+
if not UtilClient.is_unset(request.prompt):
|
|
505
|
+
body['prompt'] = request.prompt
|
|
506
|
+
if not UtilClient.is_unset(request.step_for_broadcast_content_config_shrink):
|
|
507
|
+
body['stepForBroadcastContentConfig'] = request.step_for_broadcast_content_config_shrink
|
|
508
|
+
if not UtilClient.is_unset(request.task_id):
|
|
509
|
+
body['taskId'] = request.task_id
|
|
510
|
+
req = open_api_models.OpenApiRequest(
|
|
511
|
+
headers=headers,
|
|
512
|
+
body=OpenApiUtilClient.parse_to_map(body)
|
|
513
|
+
)
|
|
514
|
+
params = open_api_models.Params(
|
|
515
|
+
action='RunHotTopicChat',
|
|
516
|
+
version='2024-08-01',
|
|
517
|
+
protocol='HTTPS',
|
|
518
|
+
pathname=f'/{OpenApiUtilClient.get_encode_param(workspace_id)}/quanmiao/lightapp/runHotTopicChat',
|
|
519
|
+
method='POST',
|
|
520
|
+
auth_type='AK',
|
|
521
|
+
style='ROA',
|
|
522
|
+
req_body_type='formData',
|
|
523
|
+
body_type='json'
|
|
524
|
+
)
|
|
525
|
+
return TeaCore.from_map(
|
|
526
|
+
quan_miao_light_app_20240801_models.RunHotTopicChatResponse(),
|
|
527
|
+
await self.call_api_async(params, req, runtime)
|
|
528
|
+
)
|
|
529
|
+
|
|
530
|
+
def run_hot_topic_chat(
|
|
531
|
+
self,
|
|
532
|
+
workspace_id: str,
|
|
533
|
+
request: quan_miao_light_app_20240801_models.RunHotTopicChatRequest,
|
|
534
|
+
) -> quan_miao_light_app_20240801_models.RunHotTopicChatResponse:
|
|
535
|
+
"""
|
|
536
|
+
@summary 轻应用-热点播报-问答
|
|
537
|
+
|
|
538
|
+
@param request: RunHotTopicChatRequest
|
|
539
|
+
@return: RunHotTopicChatResponse
|
|
540
|
+
"""
|
|
541
|
+
runtime = util_models.RuntimeOptions()
|
|
542
|
+
headers = {}
|
|
543
|
+
return self.run_hot_topic_chat_with_options(workspace_id, request, headers, runtime)
|
|
544
|
+
|
|
545
|
+
async def run_hot_topic_chat_async(
|
|
546
|
+
self,
|
|
547
|
+
workspace_id: str,
|
|
548
|
+
request: quan_miao_light_app_20240801_models.RunHotTopicChatRequest,
|
|
549
|
+
) -> quan_miao_light_app_20240801_models.RunHotTopicChatResponse:
|
|
550
|
+
"""
|
|
551
|
+
@summary 轻应用-热点播报-问答
|
|
552
|
+
|
|
553
|
+
@param request: RunHotTopicChatRequest
|
|
554
|
+
@return: RunHotTopicChatResponse
|
|
555
|
+
"""
|
|
556
|
+
runtime = util_models.RuntimeOptions()
|
|
557
|
+
headers = {}
|
|
558
|
+
return await self.run_hot_topic_chat_with_options_async(workspace_id, request, headers, runtime)
|
|
559
|
+
|
|
560
|
+
def run_hot_topic_summary_with_options(
|
|
561
|
+
self,
|
|
562
|
+
workspace_id: str,
|
|
563
|
+
tmp_req: quan_miao_light_app_20240801_models.RunHotTopicSummaryRequest,
|
|
564
|
+
headers: Dict[str, str],
|
|
565
|
+
runtime: util_models.RuntimeOptions,
|
|
566
|
+
) -> quan_miao_light_app_20240801_models.RunHotTopicSummaryResponse:
|
|
567
|
+
"""
|
|
568
|
+
@summary 轻应用-热点播报-热点摘要生成
|
|
569
|
+
|
|
570
|
+
@param tmp_req: RunHotTopicSummaryRequest
|
|
571
|
+
@param headers: map
|
|
572
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
573
|
+
@return: RunHotTopicSummaryResponse
|
|
574
|
+
"""
|
|
575
|
+
UtilClient.validate_model(tmp_req)
|
|
576
|
+
request = quan_miao_light_app_20240801_models.RunHotTopicSummaryShrinkRequest()
|
|
577
|
+
OpenApiUtilClient.convert(tmp_req, request)
|
|
578
|
+
if not UtilClient.is_unset(tmp_req.step_for_custom_summary_style_config):
|
|
579
|
+
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')
|
|
580
|
+
if not UtilClient.is_unset(tmp_req.topic_ids):
|
|
581
|
+
request.topic_ids_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.topic_ids, 'topicIds', 'json')
|
|
582
|
+
body = {}
|
|
583
|
+
if not UtilClient.is_unset(request.hot_topic_version):
|
|
584
|
+
body['hotTopicVersion'] = request.hot_topic_version
|
|
585
|
+
if not UtilClient.is_unset(request.step_for_custom_summary_style_config_shrink):
|
|
586
|
+
body['stepForCustomSummaryStyleConfig'] = request.step_for_custom_summary_style_config_shrink
|
|
587
|
+
if not UtilClient.is_unset(request.topic_ids_shrink):
|
|
588
|
+
body['topicIds'] = request.topic_ids_shrink
|
|
589
|
+
req = open_api_models.OpenApiRequest(
|
|
590
|
+
headers=headers,
|
|
591
|
+
body=OpenApiUtilClient.parse_to_map(body)
|
|
592
|
+
)
|
|
593
|
+
params = open_api_models.Params(
|
|
594
|
+
action='RunHotTopicSummary',
|
|
595
|
+
version='2024-08-01',
|
|
596
|
+
protocol='HTTPS',
|
|
597
|
+
pathname=f'/{OpenApiUtilClient.get_encode_param(workspace_id)}/quanmiao/lightapp/runHotTopicSummary',
|
|
598
|
+
method='POST',
|
|
599
|
+
auth_type='AK',
|
|
600
|
+
style='ROA',
|
|
601
|
+
req_body_type='formData',
|
|
602
|
+
body_type='json'
|
|
603
|
+
)
|
|
604
|
+
return TeaCore.from_map(
|
|
605
|
+
quan_miao_light_app_20240801_models.RunHotTopicSummaryResponse(),
|
|
606
|
+
self.call_api(params, req, runtime)
|
|
607
|
+
)
|
|
608
|
+
|
|
609
|
+
async def run_hot_topic_summary_with_options_async(
|
|
610
|
+
self,
|
|
611
|
+
workspace_id: str,
|
|
612
|
+
tmp_req: quan_miao_light_app_20240801_models.RunHotTopicSummaryRequest,
|
|
613
|
+
headers: Dict[str, str],
|
|
614
|
+
runtime: util_models.RuntimeOptions,
|
|
615
|
+
) -> quan_miao_light_app_20240801_models.RunHotTopicSummaryResponse:
|
|
616
|
+
"""
|
|
617
|
+
@summary 轻应用-热点播报-热点摘要生成
|
|
618
|
+
|
|
619
|
+
@param tmp_req: RunHotTopicSummaryRequest
|
|
620
|
+
@param headers: map
|
|
621
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
622
|
+
@return: RunHotTopicSummaryResponse
|
|
623
|
+
"""
|
|
624
|
+
UtilClient.validate_model(tmp_req)
|
|
625
|
+
request = quan_miao_light_app_20240801_models.RunHotTopicSummaryShrinkRequest()
|
|
626
|
+
OpenApiUtilClient.convert(tmp_req, request)
|
|
627
|
+
if not UtilClient.is_unset(tmp_req.step_for_custom_summary_style_config):
|
|
628
|
+
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')
|
|
629
|
+
if not UtilClient.is_unset(tmp_req.topic_ids):
|
|
630
|
+
request.topic_ids_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.topic_ids, 'topicIds', 'json')
|
|
631
|
+
body = {}
|
|
632
|
+
if not UtilClient.is_unset(request.hot_topic_version):
|
|
633
|
+
body['hotTopicVersion'] = request.hot_topic_version
|
|
634
|
+
if not UtilClient.is_unset(request.step_for_custom_summary_style_config_shrink):
|
|
635
|
+
body['stepForCustomSummaryStyleConfig'] = request.step_for_custom_summary_style_config_shrink
|
|
636
|
+
if not UtilClient.is_unset(request.topic_ids_shrink):
|
|
637
|
+
body['topicIds'] = request.topic_ids_shrink
|
|
638
|
+
req = open_api_models.OpenApiRequest(
|
|
639
|
+
headers=headers,
|
|
640
|
+
body=OpenApiUtilClient.parse_to_map(body)
|
|
641
|
+
)
|
|
642
|
+
params = open_api_models.Params(
|
|
643
|
+
action='RunHotTopicSummary',
|
|
644
|
+
version='2024-08-01',
|
|
645
|
+
protocol='HTTPS',
|
|
646
|
+
pathname=f'/{OpenApiUtilClient.get_encode_param(workspace_id)}/quanmiao/lightapp/runHotTopicSummary',
|
|
647
|
+
method='POST',
|
|
648
|
+
auth_type='AK',
|
|
649
|
+
style='ROA',
|
|
650
|
+
req_body_type='formData',
|
|
651
|
+
body_type='json'
|
|
652
|
+
)
|
|
653
|
+
return TeaCore.from_map(
|
|
654
|
+
quan_miao_light_app_20240801_models.RunHotTopicSummaryResponse(),
|
|
655
|
+
await self.call_api_async(params, req, runtime)
|
|
656
|
+
)
|
|
657
|
+
|
|
658
|
+
def run_hot_topic_summary(
|
|
659
|
+
self,
|
|
660
|
+
workspace_id: str,
|
|
661
|
+
request: quan_miao_light_app_20240801_models.RunHotTopicSummaryRequest,
|
|
662
|
+
) -> quan_miao_light_app_20240801_models.RunHotTopicSummaryResponse:
|
|
663
|
+
"""
|
|
664
|
+
@summary 轻应用-热点播报-热点摘要生成
|
|
665
|
+
|
|
666
|
+
@param request: RunHotTopicSummaryRequest
|
|
667
|
+
@return: RunHotTopicSummaryResponse
|
|
668
|
+
"""
|
|
669
|
+
runtime = util_models.RuntimeOptions()
|
|
670
|
+
headers = {}
|
|
671
|
+
return self.run_hot_topic_summary_with_options(workspace_id, request, headers, runtime)
|
|
672
|
+
|
|
673
|
+
async def run_hot_topic_summary_async(
|
|
674
|
+
self,
|
|
675
|
+
workspace_id: str,
|
|
676
|
+
request: quan_miao_light_app_20240801_models.RunHotTopicSummaryRequest,
|
|
677
|
+
) -> quan_miao_light_app_20240801_models.RunHotTopicSummaryResponse:
|
|
678
|
+
"""
|
|
679
|
+
@summary 轻应用-热点播报-热点摘要生成
|
|
680
|
+
|
|
681
|
+
@param request: RunHotTopicSummaryRequest
|
|
682
|
+
@return: RunHotTopicSummaryResponse
|
|
683
|
+
"""
|
|
684
|
+
runtime = util_models.RuntimeOptions()
|
|
685
|
+
headers = {}
|
|
686
|
+
return await self.run_hot_topic_summary_with_options_async(workspace_id, request, headers, runtime)
|
|
687
|
+
|
|
168
688
|
def run_marketing_information_extract_with_options(
|
|
169
689
|
self,
|
|
170
690
|
workspace_id: str,
|
|
@@ -824,8 +1344,12 @@ class Client(OpenApiClient):
|
|
|
824
1344
|
body['modelId'] = request.model_id
|
|
825
1345
|
if not UtilClient.is_unset(request.original_session_id):
|
|
826
1346
|
body['originalSessionId'] = request.original_session_id
|
|
1347
|
+
if not UtilClient.is_unset(request.snapshot_interval):
|
|
1348
|
+
body['snapshotInterval'] = request.snapshot_interval
|
|
827
1349
|
if not UtilClient.is_unset(request.task_id):
|
|
828
1350
|
body['taskId'] = request.task_id
|
|
1351
|
+
if not UtilClient.is_unset(request.video_extra_info):
|
|
1352
|
+
body['videoExtraInfo'] = request.video_extra_info
|
|
829
1353
|
if not UtilClient.is_unset(request.video_model_custom_prompt_template):
|
|
830
1354
|
body['videoModelCustomPromptTemplate'] = request.video_model_custom_prompt_template
|
|
831
1355
|
if not UtilClient.is_unset(request.video_model_id):
|
|
@@ -883,8 +1407,12 @@ class Client(OpenApiClient):
|
|
|
883
1407
|
body['modelId'] = request.model_id
|
|
884
1408
|
if not UtilClient.is_unset(request.original_session_id):
|
|
885
1409
|
body['originalSessionId'] = request.original_session_id
|
|
1410
|
+
if not UtilClient.is_unset(request.snapshot_interval):
|
|
1411
|
+
body['snapshotInterval'] = request.snapshot_interval
|
|
886
1412
|
if not UtilClient.is_unset(request.task_id):
|
|
887
1413
|
body['taskId'] = request.task_id
|
|
1414
|
+
if not UtilClient.is_unset(request.video_extra_info):
|
|
1415
|
+
body['videoExtraInfo'] = request.video_extra_info
|
|
888
1416
|
if not UtilClient.is_unset(request.video_model_custom_prompt_template):
|
|
889
1417
|
body['videoModelCustomPromptTemplate'] = request.video_model_custom_prompt_template
|
|
890
1418
|
if not UtilClient.is_unset(request.video_model_id):
|