alibabacloud-quanmiaolightapp20240801 1.3.0__tar.gz → 1.4.1__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.3.0 → alibabacloud_quanmiaolightapp20240801-1.4.1}/ChangeLog.md +12 -0
- {alibabacloud_quanmiaolightapp20240801-1.3.0 → alibabacloud_quanmiaolightapp20240801-1.4.1}/PKG-INFO +2 -2
- {alibabacloud_quanmiaolightapp20240801-1.3.0 → alibabacloud_quanmiaolightapp20240801-1.4.1}/README-CN.md +1 -1
- {alibabacloud_quanmiaolightapp20240801-1.3.0 → alibabacloud_quanmiaolightapp20240801-1.4.1}/README.md +1 -1
- alibabacloud_quanmiaolightapp20240801-1.4.1/alibabacloud_quanmiaolightapp20240801/__init__.py +1 -0
- {alibabacloud_quanmiaolightapp20240801-1.3.0 → alibabacloud_quanmiaolightapp20240801-1.4.1}/alibabacloud_quanmiaolightapp20240801/client.py +304 -0
- {alibabacloud_quanmiaolightapp20240801-1.3.0 → alibabacloud_quanmiaolightapp20240801-1.4.1}/alibabacloud_quanmiaolightapp20240801/models.py +1114 -0
- {alibabacloud_quanmiaolightapp20240801-1.3.0 → alibabacloud_quanmiaolightapp20240801-1.4.1}/alibabacloud_quanmiaolightapp20240801.egg-info/PKG-INFO +2 -2
- {alibabacloud_quanmiaolightapp20240801-1.3.0 → alibabacloud_quanmiaolightapp20240801-1.4.1}/alibabacloud_quanmiaolightapp20240801.egg-info/requires.txt +1 -1
- {alibabacloud_quanmiaolightapp20240801-1.3.0 → alibabacloud_quanmiaolightapp20240801-1.4.1}/setup.py +2 -2
- alibabacloud_quanmiaolightapp20240801-1.3.0/alibabacloud_quanmiaolightapp20240801/__init__.py +0 -1
- {alibabacloud_quanmiaolightapp20240801-1.3.0 → alibabacloud_quanmiaolightapp20240801-1.4.1}/LICENSE +0 -0
- {alibabacloud_quanmiaolightapp20240801-1.3.0 → alibabacloud_quanmiaolightapp20240801-1.4.1}/MANIFEST.in +0 -0
- {alibabacloud_quanmiaolightapp20240801-1.3.0 → alibabacloud_quanmiaolightapp20240801-1.4.1}/alibabacloud_quanmiaolightapp20240801.egg-info/SOURCES.txt +0 -0
- {alibabacloud_quanmiaolightapp20240801-1.3.0 → alibabacloud_quanmiaolightapp20240801-1.4.1}/alibabacloud_quanmiaolightapp20240801.egg-info/dependency_links.txt +0 -0
- {alibabacloud_quanmiaolightapp20240801-1.3.0 → alibabacloud_quanmiaolightapp20240801-1.4.1}/alibabacloud_quanmiaolightapp20240801.egg-info/top_level.txt +0 -0
- {alibabacloud_quanmiaolightapp20240801-1.3.0 → alibabacloud_quanmiaolightapp20240801-1.4.1}/setup.cfg +0 -0
|
@@ -1,3 +1,15 @@
|
|
|
1
|
+
2024-11-01 Version: 1.4.0
|
|
2
|
+
- Support API RunHotTopicChat.
|
|
3
|
+
- Support API RunHotTopicSummary.
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
2024-09-26 Version: 1.3.0
|
|
7
|
+
- Support API GenerateBroadcastNews.
|
|
8
|
+
- Support API RunCommentGeneration.
|
|
9
|
+
- Update API RunVideoAnalysis: add param snapshotInterval.
|
|
10
|
+
- Update API RunVideoAnalysis: add param videoExtraInfo.
|
|
11
|
+
|
|
12
|
+
|
|
1
13
|
2024-09-14 Version: 1.2.0
|
|
2
14
|
- Support API ListHotTopicSummaries.
|
|
3
15
|
- Update API RunVideoAnalysis: update response param.
|
{alibabacloud_quanmiaolightapp20240801-1.3.0 → alibabacloud_quanmiaolightapp20240801-1.4.1}/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.1
|
|
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.1'
|
|
@@ -393,6 +393,298 @@ class Client(OpenApiClient):
|
|
|
393
393
|
headers = {}
|
|
394
394
|
return await self.run_comment_generation_with_options_async(workspace_id, request, headers, runtime)
|
|
395
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
|
+
|
|
396
688
|
def run_marketing_information_extract_with_options(
|
|
397
689
|
self,
|
|
398
690
|
workspace_id: str,
|
|
@@ -538,10 +830,16 @@ class Client(OpenApiClient):
|
|
|
538
830
|
"""
|
|
539
831
|
UtilClient.validate_model(request)
|
|
540
832
|
body = {}
|
|
833
|
+
if not UtilClient.is_unset(request.custom_limitation):
|
|
834
|
+
body['customLimitation'] = request.custom_limitation
|
|
541
835
|
if not UtilClient.is_unset(request.custom_prompt):
|
|
542
836
|
body['customPrompt'] = request.custom_prompt
|
|
837
|
+
if not UtilClient.is_unset(request.input_example):
|
|
838
|
+
body['inputExample'] = request.input_example
|
|
543
839
|
if not UtilClient.is_unset(request.model_id):
|
|
544
840
|
body['modelId'] = request.model_id
|
|
841
|
+
if not UtilClient.is_unset(request.output_example):
|
|
842
|
+
body['outputExample'] = request.output_example
|
|
545
843
|
if not UtilClient.is_unset(request.source_material):
|
|
546
844
|
body['sourceMaterial'] = request.source_material
|
|
547
845
|
if not UtilClient.is_unset(request.writing_type):
|
|
@@ -583,10 +881,16 @@ class Client(OpenApiClient):
|
|
|
583
881
|
"""
|
|
584
882
|
UtilClient.validate_model(request)
|
|
585
883
|
body = {}
|
|
884
|
+
if not UtilClient.is_unset(request.custom_limitation):
|
|
885
|
+
body['customLimitation'] = request.custom_limitation
|
|
586
886
|
if not UtilClient.is_unset(request.custom_prompt):
|
|
587
887
|
body['customPrompt'] = request.custom_prompt
|
|
888
|
+
if not UtilClient.is_unset(request.input_example):
|
|
889
|
+
body['inputExample'] = request.input_example
|
|
588
890
|
if not UtilClient.is_unset(request.model_id):
|
|
589
891
|
body['modelId'] = request.model_id
|
|
892
|
+
if not UtilClient.is_unset(request.output_example):
|
|
893
|
+
body['outputExample'] = request.output_example
|
|
590
894
|
if not UtilClient.is_unset(request.source_material):
|
|
591
895
|
body['sourceMaterial'] = request.source_material
|
|
592
896
|
if not UtilClient.is_unset(request.writing_type):
|