dashscope 1.23.1__py3-none-any.whl → 1.23.2__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.
Potentially problematic release.
This version of dashscope might be problematic. Click here for more details.
- dashscope/api_entities/dashscope_response.py +2 -2
- dashscope/version.py +1 -1
- {dashscope-1.23.1.dist-info → dashscope-1.23.2.dist-info}/METADATA +1 -1
- {dashscope-1.23.1.dist-info → dashscope-1.23.2.dist-info}/RECORD +8 -8
- {dashscope-1.23.1.dist-info → dashscope-1.23.2.dist-info}/LICENSE +0 -0
- {dashscope-1.23.1.dist-info → dashscope-1.23.2.dist-info}/WHEEL +0 -0
- {dashscope-1.23.1.dist-info → dashscope-1.23.2.dist-info}/entry_points.txt +0 -0
- {dashscope-1.23.1.dist-info → dashscope-1.23.2.dist-info}/top_level.txt +0 -0
|
@@ -119,7 +119,7 @@ class Message(DictMixin):
|
|
|
119
119
|
role: str
|
|
120
120
|
content: Union[str, List]
|
|
121
121
|
|
|
122
|
-
def __init__(self, role: str, content: str, **kwargs):
|
|
122
|
+
def __init__(self, role: str, content: str = None, **kwargs):
|
|
123
123
|
super().__init__(role=role, content=content, **kwargs)
|
|
124
124
|
|
|
125
125
|
@classmethod
|
|
@@ -145,7 +145,7 @@ class Choice(DictMixin):
|
|
|
145
145
|
message: Message = None,
|
|
146
146
|
**kwargs):
|
|
147
147
|
msgObject = None
|
|
148
|
-
if message is not None:
|
|
148
|
+
if message is not None and message:
|
|
149
149
|
msgObject = Message(**message)
|
|
150
150
|
super().__init__(finish_reason=finish_reason,
|
|
151
151
|
message=msgObject,
|
dashscope/version.py
CHANGED
|
@@ -3,7 +3,7 @@ dashscope/cli.py,sha256=amegoTkGOs6TlHMdoo4JVOqBePo3lGs745rc7leEyrE,24020
|
|
|
3
3
|
dashscope/files.py,sha256=vRDQygm3lOqBZR73o7KNHs1iTBVuvLncuwJNxIYjzAU,3981
|
|
4
4
|
dashscope/model.py,sha256=B5v_BtYLPqj6raClejBgdKg6WTGwhH_f-20pvsQqmsk,1491
|
|
5
5
|
dashscope/models.py,sha256=dE4mzXkl85G343qVylSGpURPRdA5pZSqXlx6PcxqC_Q,1275
|
|
6
|
-
dashscope/version.py,sha256=
|
|
6
|
+
dashscope/version.py,sha256=YDam49_qwmBkRWD73B92gu3W0y8bXTa_nlWVVLFu0-Y,74
|
|
7
7
|
dashscope/aigc/__init__.py,sha256=AuRhu_vA1K0tbs_C6DgcZYhTvxMuzDgpwHJNHzEPIHg,442
|
|
8
8
|
dashscope/aigc/chat_completion.py,sha256=ONlyyssIbfaKKcFo7cEKhHx5OCF2XX810HFzIExW1ho,14813
|
|
9
9
|
dashscope/aigc/code_generation.py,sha256=p_mxDKJLQMW0IjFD46JRlZuEZCRESSVKEfLlAevBtqw,10936
|
|
@@ -18,7 +18,7 @@ dashscope/api_entities/api_request_data.py,sha256=04rpYPNK1HkT3iTPJmZpquH621xcBb
|
|
|
18
18
|
dashscope/api_entities/api_request_factory.py,sha256=yRzRKlFeoEyTyiXwyw_1hTKbkf6Sb5SaKZJU--Gfm3w,5112
|
|
19
19
|
dashscope/api_entities/base_request.py,sha256=W2SzrSAGFS6V8DErfSrayQtSL0T4iO7BrC8flr7nt1w,977
|
|
20
20
|
dashscope/api_entities/chat_completion_types.py,sha256=1WMWPszhM3HaJBVz-ZXx-El4D8-RfVUL3ym65xsDRLk,11435
|
|
21
|
-
dashscope/api_entities/dashscope_response.py,sha256=
|
|
21
|
+
dashscope/api_entities/dashscope_response.py,sha256=qNNB86h5Gb_4uHjBD_4lx6UckyQzSdaTgjze1prc12M,22073
|
|
22
22
|
dashscope/api_entities/http_request.py,sha256=vgfykwSOdPom4bQVFOtXIEPYTuE_4QVNGtZ2EJ0t9lM,13310
|
|
23
23
|
dashscope/api_entities/websocket_request.py,sha256=PS0FU854-HjTbKa68f4GHa7-noFRMzKySJGfPkrrBjw,16146
|
|
24
24
|
dashscope/app/__init__.py,sha256=xvSvU8O7m5u7vgIvJXTJektJZxmjT2Rpt_YwePH88XE,113
|
|
@@ -87,9 +87,9 @@ dashscope/tokenizers/tokenizer.py,sha256=3FQVDvMNkCW9ccYeJdjrd_PIMMD3Xv7aNZkaYOE
|
|
|
87
87
|
dashscope/tokenizers/tokenizer_base.py,sha256=5EJIFuizMWESEmLmbd38yJnfeHmPnzZPwsO4aOGjpl4,707
|
|
88
88
|
dashscope/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
89
89
|
dashscope/utils/oss_utils.py,sha256=L5LN3lN8etVxSL_jkZydstvEKpnTG9CY0zcvPGQ5LBo,7383
|
|
90
|
-
dashscope-1.23.
|
|
91
|
-
dashscope-1.23.
|
|
92
|
-
dashscope-1.23.
|
|
93
|
-
dashscope-1.23.
|
|
94
|
-
dashscope-1.23.
|
|
95
|
-
dashscope-1.23.
|
|
90
|
+
dashscope-1.23.2.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
|
91
|
+
dashscope-1.23.2.dist-info/METADATA,sha256=m__F7jlB_AiVIUOhHBvweN5P-jIpl170DhyvA5QEleE,6798
|
|
92
|
+
dashscope-1.23.2.dist-info/WHEEL,sha256=G16H4A3IeoQmnOrYV4ueZGKSjhipXx8zc8nu9FGlvMA,92
|
|
93
|
+
dashscope-1.23.2.dist-info/entry_points.txt,sha256=raEp5dOuj8whJ7yqZlDM8WQ5p2RfnGrGNo0QLQEnatY,50
|
|
94
|
+
dashscope-1.23.2.dist-info/top_level.txt,sha256=woqavFJK9zas5xTqynmALqOtlafghjsk63Xk86powTU,10
|
|
95
|
+
dashscope-1.23.2.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|