alibabacloud-quanmiaolightapp20240801 2.0.0__tar.gz → 2.0.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-2.0.0 → alibabacloud_quanmiaolightapp20240801-2.0.1}/ChangeLog.md +5 -0
- {alibabacloud_quanmiaolightapp20240801-2.0.0 → alibabacloud_quanmiaolightapp20240801-2.0.1}/PKG-INFO +1 -1
- alibabacloud_quanmiaolightapp20240801-2.0.1/alibabacloud_quanmiaolightapp20240801/__init__.py +1 -0
- {alibabacloud_quanmiaolightapp20240801-2.0.0 → alibabacloud_quanmiaolightapp20240801-2.0.1}/alibabacloud_quanmiaolightapp20240801/client.py +8 -0
- {alibabacloud_quanmiaolightapp20240801-2.0.0 → alibabacloud_quanmiaolightapp20240801-2.0.1}/alibabacloud_quanmiaolightapp20240801/models.py +60 -0
- {alibabacloud_quanmiaolightapp20240801-2.0.0 → alibabacloud_quanmiaolightapp20240801-2.0.1}/alibabacloud_quanmiaolightapp20240801.egg-info/PKG-INFO +1 -1
- {alibabacloud_quanmiaolightapp20240801-2.0.0 → alibabacloud_quanmiaolightapp20240801-2.0.1}/setup.py +1 -1
- alibabacloud_quanmiaolightapp20240801-2.0.0/alibabacloud_quanmiaolightapp20240801/__init__.py +0 -1
- {alibabacloud_quanmiaolightapp20240801-2.0.0 → alibabacloud_quanmiaolightapp20240801-2.0.1}/LICENSE +0 -0
- {alibabacloud_quanmiaolightapp20240801-2.0.0 → alibabacloud_quanmiaolightapp20240801-2.0.1}/MANIFEST.in +0 -0
- {alibabacloud_quanmiaolightapp20240801-2.0.0 → alibabacloud_quanmiaolightapp20240801-2.0.1}/README-CN.md +0 -0
- {alibabacloud_quanmiaolightapp20240801-2.0.0 → alibabacloud_quanmiaolightapp20240801-2.0.1}/README.md +0 -0
- {alibabacloud_quanmiaolightapp20240801-2.0.0 → alibabacloud_quanmiaolightapp20240801-2.0.1}/alibabacloud_quanmiaolightapp20240801.egg-info/SOURCES.txt +0 -0
- {alibabacloud_quanmiaolightapp20240801-2.0.0 → alibabacloud_quanmiaolightapp20240801-2.0.1}/alibabacloud_quanmiaolightapp20240801.egg-info/dependency_links.txt +0 -0
- {alibabacloud_quanmiaolightapp20240801-2.0.0 → alibabacloud_quanmiaolightapp20240801-2.0.1}/alibabacloud_quanmiaolightapp20240801.egg-info/requires.txt +0 -0
- {alibabacloud_quanmiaolightapp20240801-2.0.0 → alibabacloud_quanmiaolightapp20240801-2.0.1}/alibabacloud_quanmiaolightapp20240801.egg-info/top_level.txt +0 -0
- {alibabacloud_quanmiaolightapp20240801-2.0.0 → alibabacloud_quanmiaolightapp20240801-2.0.1}/setup.cfg +0 -0
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
2024-12-05 Version: 2.0.0
|
|
2
|
+
- Delete API RunCommentGeneration.
|
|
3
|
+
- Update API RunHotTopicChat: update response param.
|
|
4
|
+
|
|
5
|
+
|
|
1
6
|
2024-11-06 Version: 1.4.1
|
|
2
7
|
- Update API RunMarketingInformationWriting: add param customLimitation.
|
|
3
8
|
- Update API RunMarketingInformationWriting: add param inputExample.
|
{alibabacloud_quanmiaolightapp20240801-2.0.0 → alibabacloud_quanmiaolightapp20240801-2.0.1}/PKG-INFO
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: alibabacloud_quanmiaolightapp20240801
|
|
3
|
-
Version: 2.0.
|
|
3
|
+
Version: 2.0.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
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = '2.0.1'
|
|
@@ -295,6 +295,8 @@ class Client(OpenApiClient):
|
|
|
295
295
|
request.generate_options_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.generate_options, 'generateOptions', 'json')
|
|
296
296
|
if not UtilClient.is_unset(tmp_req.hot_topics):
|
|
297
297
|
request.hot_topics_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.hot_topics, 'hotTopics', 'json')
|
|
298
|
+
if not UtilClient.is_unset(tmp_req.messages):
|
|
299
|
+
request.messages_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.messages, 'messages', 'json')
|
|
298
300
|
if not UtilClient.is_unset(tmp_req.step_for_broadcast_content_config):
|
|
299
301
|
request.step_for_broadcast_content_config_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.step_for_broadcast_content_config, 'stepForBroadcastContentConfig', 'json')
|
|
300
302
|
body = {}
|
|
@@ -308,6 +310,8 @@ class Client(OpenApiClient):
|
|
|
308
310
|
body['hotTopics'] = request.hot_topics_shrink
|
|
309
311
|
if not UtilClient.is_unset(request.image_count):
|
|
310
312
|
body['imageCount'] = request.image_count
|
|
313
|
+
if not UtilClient.is_unset(request.messages_shrink):
|
|
314
|
+
body['messages'] = request.messages_shrink
|
|
311
315
|
if not UtilClient.is_unset(request.model_custom_prompt_template):
|
|
312
316
|
body['modelCustomPromptTemplate'] = request.model_custom_prompt_template
|
|
313
317
|
if not UtilClient.is_unset(request.model_id):
|
|
@@ -362,6 +366,8 @@ class Client(OpenApiClient):
|
|
|
362
366
|
request.generate_options_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.generate_options, 'generateOptions', 'json')
|
|
363
367
|
if not UtilClient.is_unset(tmp_req.hot_topics):
|
|
364
368
|
request.hot_topics_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.hot_topics, 'hotTopics', 'json')
|
|
369
|
+
if not UtilClient.is_unset(tmp_req.messages):
|
|
370
|
+
request.messages_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.messages, 'messages', 'json')
|
|
365
371
|
if not UtilClient.is_unset(tmp_req.step_for_broadcast_content_config):
|
|
366
372
|
request.step_for_broadcast_content_config_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.step_for_broadcast_content_config, 'stepForBroadcastContentConfig', 'json')
|
|
367
373
|
body = {}
|
|
@@ -375,6 +381,8 @@ class Client(OpenApiClient):
|
|
|
375
381
|
body['hotTopics'] = request.hot_topics_shrink
|
|
376
382
|
if not UtilClient.is_unset(request.image_count):
|
|
377
383
|
body['imageCount'] = request.image_count
|
|
384
|
+
if not UtilClient.is_unset(request.messages_shrink):
|
|
385
|
+
body['messages'] = request.messages_shrink
|
|
378
386
|
if not UtilClient.is_unset(request.model_custom_prompt_template):
|
|
379
387
|
body['modelCustomPromptTemplate'] = request.model_custom_prompt_template
|
|
380
388
|
if not UtilClient.is_unset(request.model_id):
|
|
@@ -741,6 +741,45 @@ class ListHotTopicSummariesResponse(TeaModel):
|
|
|
741
741
|
return self
|
|
742
742
|
|
|
743
743
|
|
|
744
|
+
class RunHotTopicChatRequestMessages(TeaModel):
|
|
745
|
+
def __init__(
|
|
746
|
+
self,
|
|
747
|
+
content: str = None,
|
|
748
|
+
create_time: str = None,
|
|
749
|
+
role: str = None,
|
|
750
|
+
):
|
|
751
|
+
self.content = content
|
|
752
|
+
self.create_time = create_time
|
|
753
|
+
self.role = role
|
|
754
|
+
|
|
755
|
+
def validate(self):
|
|
756
|
+
pass
|
|
757
|
+
|
|
758
|
+
def to_map(self):
|
|
759
|
+
_map = super().to_map()
|
|
760
|
+
if _map is not None:
|
|
761
|
+
return _map
|
|
762
|
+
|
|
763
|
+
result = dict()
|
|
764
|
+
if self.content is not None:
|
|
765
|
+
result['content'] = self.content
|
|
766
|
+
if self.create_time is not None:
|
|
767
|
+
result['createTime'] = self.create_time
|
|
768
|
+
if self.role is not None:
|
|
769
|
+
result['role'] = self.role
|
|
770
|
+
return result
|
|
771
|
+
|
|
772
|
+
def from_map(self, m: dict = None):
|
|
773
|
+
m = m or dict()
|
|
774
|
+
if m.get('content') is not None:
|
|
775
|
+
self.content = m.get('content')
|
|
776
|
+
if m.get('createTime') is not None:
|
|
777
|
+
self.create_time = m.get('createTime')
|
|
778
|
+
if m.get('role') is not None:
|
|
779
|
+
self.role = m.get('role')
|
|
780
|
+
return self
|
|
781
|
+
|
|
782
|
+
|
|
744
783
|
class RunHotTopicChatRequestStepForBroadcastContentConfigCustomHotValueWeights(TeaModel):
|
|
745
784
|
def __init__(
|
|
746
785
|
self,
|
|
@@ -829,6 +868,7 @@ class RunHotTopicChatRequest(TeaModel):
|
|
|
829
868
|
hot_topic_version: str = None,
|
|
830
869
|
hot_topics: List[str] = None,
|
|
831
870
|
image_count: int = None,
|
|
871
|
+
messages: List[RunHotTopicChatRequestMessages] = None,
|
|
832
872
|
model_custom_prompt_template: str = None,
|
|
833
873
|
model_id: str = None,
|
|
834
874
|
original_session_id: str = None,
|
|
@@ -841,6 +881,7 @@ class RunHotTopicChatRequest(TeaModel):
|
|
|
841
881
|
self.hot_topic_version = hot_topic_version
|
|
842
882
|
self.hot_topics = hot_topics
|
|
843
883
|
self.image_count = image_count
|
|
884
|
+
self.messages = messages
|
|
844
885
|
self.model_custom_prompt_template = model_custom_prompt_template
|
|
845
886
|
self.model_id = model_id
|
|
846
887
|
self.original_session_id = original_session_id
|
|
@@ -849,6 +890,10 @@ class RunHotTopicChatRequest(TeaModel):
|
|
|
849
890
|
self.task_id = task_id
|
|
850
891
|
|
|
851
892
|
def validate(self):
|
|
893
|
+
if self.messages:
|
|
894
|
+
for k in self.messages:
|
|
895
|
+
if k:
|
|
896
|
+
k.validate()
|
|
852
897
|
if self.step_for_broadcast_content_config:
|
|
853
898
|
self.step_for_broadcast_content_config.validate()
|
|
854
899
|
|
|
@@ -868,6 +913,10 @@ class RunHotTopicChatRequest(TeaModel):
|
|
|
868
913
|
result['hotTopics'] = self.hot_topics
|
|
869
914
|
if self.image_count is not None:
|
|
870
915
|
result['imageCount'] = self.image_count
|
|
916
|
+
result['messages'] = []
|
|
917
|
+
if self.messages is not None:
|
|
918
|
+
for k in self.messages:
|
|
919
|
+
result['messages'].append(k.to_map() if k else None)
|
|
871
920
|
if self.model_custom_prompt_template is not None:
|
|
872
921
|
result['modelCustomPromptTemplate'] = self.model_custom_prompt_template
|
|
873
922
|
if self.model_id is not None:
|
|
@@ -894,6 +943,11 @@ class RunHotTopicChatRequest(TeaModel):
|
|
|
894
943
|
self.hot_topics = m.get('hotTopics')
|
|
895
944
|
if m.get('imageCount') is not None:
|
|
896
945
|
self.image_count = m.get('imageCount')
|
|
946
|
+
self.messages = []
|
|
947
|
+
if m.get('messages') is not None:
|
|
948
|
+
for k in m.get('messages'):
|
|
949
|
+
temp_model = RunHotTopicChatRequestMessages()
|
|
950
|
+
self.messages.append(temp_model.from_map(k))
|
|
897
951
|
if m.get('modelCustomPromptTemplate') is not None:
|
|
898
952
|
self.model_custom_prompt_template = m.get('modelCustomPromptTemplate')
|
|
899
953
|
if m.get('modelId') is not None:
|
|
@@ -918,6 +972,7 @@ class RunHotTopicChatShrinkRequest(TeaModel):
|
|
|
918
972
|
hot_topic_version: str = None,
|
|
919
973
|
hot_topics_shrink: str = None,
|
|
920
974
|
image_count: int = None,
|
|
975
|
+
messages_shrink: str = None,
|
|
921
976
|
model_custom_prompt_template: str = None,
|
|
922
977
|
model_id: str = None,
|
|
923
978
|
original_session_id: str = None,
|
|
@@ -930,6 +985,7 @@ class RunHotTopicChatShrinkRequest(TeaModel):
|
|
|
930
985
|
self.hot_topic_version = hot_topic_version
|
|
931
986
|
self.hot_topics_shrink = hot_topics_shrink
|
|
932
987
|
self.image_count = image_count
|
|
988
|
+
self.messages_shrink = messages_shrink
|
|
933
989
|
self.model_custom_prompt_template = model_custom_prompt_template
|
|
934
990
|
self.model_id = model_id
|
|
935
991
|
self.original_session_id = original_session_id
|
|
@@ -956,6 +1012,8 @@ class RunHotTopicChatShrinkRequest(TeaModel):
|
|
|
956
1012
|
result['hotTopics'] = self.hot_topics_shrink
|
|
957
1013
|
if self.image_count is not None:
|
|
958
1014
|
result['imageCount'] = self.image_count
|
|
1015
|
+
if self.messages_shrink is not None:
|
|
1016
|
+
result['messages'] = self.messages_shrink
|
|
959
1017
|
if self.model_custom_prompt_template is not None:
|
|
960
1018
|
result['modelCustomPromptTemplate'] = self.model_custom_prompt_template
|
|
961
1019
|
if self.model_id is not None:
|
|
@@ -982,6 +1040,8 @@ class RunHotTopicChatShrinkRequest(TeaModel):
|
|
|
982
1040
|
self.hot_topics_shrink = m.get('hotTopics')
|
|
983
1041
|
if m.get('imageCount') is not None:
|
|
984
1042
|
self.image_count = m.get('imageCount')
|
|
1043
|
+
if m.get('messages') is not None:
|
|
1044
|
+
self.messages_shrink = m.get('messages')
|
|
985
1045
|
if m.get('modelCustomPromptTemplate') is not None:
|
|
986
1046
|
self.model_custom_prompt_template = m.get('modelCustomPromptTemplate')
|
|
987
1047
|
if m.get('modelId') is not None:
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: alibabacloud-quanmiaolightapp20240801
|
|
3
|
-
Version: 2.0.
|
|
3
|
+
Version: 2.0.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
|
alibabacloud_quanmiaolightapp20240801-2.0.0/alibabacloud_quanmiaolightapp20240801/__init__.py
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = '2.0.0'
|
{alibabacloud_quanmiaolightapp20240801-2.0.0 → alibabacloud_quanmiaolightapp20240801-2.0.1}/LICENSE
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|