dashscope 1.20.10__py3-none-any.whl → 1.20.12__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/app/application.py +6 -0
- dashscope/common/utils.py +1 -1
- dashscope/version.py +1 -1
- {dashscope-1.20.10.dist-info → dashscope-1.20.12.dist-info}/METADATA +1 -1
- {dashscope-1.20.10.dist-info → dashscope-1.20.12.dist-info}/RECORD +9 -9
- {dashscope-1.20.10.dist-info → dashscope-1.20.12.dist-info}/LICENSE +0 -0
- {dashscope-1.20.10.dist-info → dashscope-1.20.12.dist-info}/WHEEL +0 -0
- {dashscope-1.20.10.dist-info → dashscope-1.20.12.dist-info}/entry_points.txt +0 -0
- {dashscope-1.20.10.dist-info → dashscope-1.20.12.dist-info}/top_level.txt +0 -0
dashscope/app/application.py
CHANGED
|
@@ -99,6 +99,8 @@ class Application(BaseApi):
|
|
|
99
99
|
simple: simple format of doc retrival which not include index in response text but in doc reference list.
|
|
100
100
|
indexed: include both index in response text and doc reference list
|
|
101
101
|
memory_id(str, `optional`): Used to store long term context summary between end users and assistant.
|
|
102
|
+
image_list(list, `optional`): Used to pass image url list.
|
|
103
|
+
rag_options(dict, `optional`): Rag options for retrieval augmented generation options.
|
|
102
104
|
Raises:
|
|
103
105
|
InvalidInput: The history and auto_history are mutually exclusive.
|
|
104
106
|
|
|
@@ -169,4 +171,8 @@ class Application(BaseApi):
|
|
|
169
171
|
if biz_params is not None and biz_params:
|
|
170
172
|
input_param['biz_params'] = biz_params
|
|
171
173
|
|
|
174
|
+
image_list = kwargs.pop('image_list', None)
|
|
175
|
+
if image_list is not None and image_list:
|
|
176
|
+
input_param['image_list'] = image_list
|
|
177
|
+
|
|
172
178
|
return input_param, {**parameters, **kwargs}
|
dashscope/common/utils.py
CHANGED
|
@@ -314,7 +314,7 @@ async def _handle_aiohttp_failed_response(
|
|
|
314
314
|
flattened_output: bool = False) -> DashScopeAPIResponse:
|
|
315
315
|
request_id = ''
|
|
316
316
|
if 'application/json' in response.content_type:
|
|
317
|
-
error = response.json()
|
|
317
|
+
error = await response.json()
|
|
318
318
|
return _handle_error_message(error, response.status, flattened_output)
|
|
319
319
|
elif SSE_CONTENT_TYPE in response.content_type:
|
|
320
320
|
async for _, _, data in _handle_aio_stream(response):
|
dashscope/version.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
__version__ = '1.20.
|
|
1
|
+
__version__ = '1.20.12'
|
|
@@ -6,7 +6,7 @@ dashscope/files.py,sha256=QgJjwhtn9F548nCA8jD8OvE6aQEj-20hZqJgYXsUdQU,3930
|
|
|
6
6
|
dashscope/finetune.py,sha256=_tflDUvu0KagSoCzLaf0hofpG_P8NU6PylL8CPjVhrA,6243
|
|
7
7
|
dashscope/model.py,sha256=UPOn1qMYFhX-ovXi3BMxZEBk8qOK7WLJOYHMbPZwYBo,1440
|
|
8
8
|
dashscope/models.py,sha256=1-bc-Ue68zurgu_y6RhfFr9uzeQMF5AZq-C32lJGMGU,1224
|
|
9
|
-
dashscope/version.py,sha256=
|
|
9
|
+
dashscope/version.py,sha256=uB1teRfVXUYl5Yy0XW6UC7CjR0jMRi-VsJVZlJGu290,24
|
|
10
10
|
dashscope/aigc/__init__.py,sha256=s-MCA87KYiVumYtKtJi5IMN7xelSF6TqEU3s3_7RF-Y,327
|
|
11
11
|
dashscope/aigc/code_generation.py,sha256=KAJVrGp6tiNFBBg64Ovs9RfcP5SrIhrbW3wdA89NKso,10885
|
|
12
12
|
dashscope/aigc/conversation.py,sha256=xRoJlCR-IXHjSdkDrK74a9ut1FJg0FZhTNXZAJC18MA,14231
|
|
@@ -22,7 +22,7 @@ dashscope/api_entities/dashscope_response.py,sha256=Bp1T7HwVlkOvpMNg-AEjz-BScxhL
|
|
|
22
22
|
dashscope/api_entities/http_request.py,sha256=pYE8qRMu9CaQDiugPlXeYoaj_diBv-ZDExCD3WNhehI,13259
|
|
23
23
|
dashscope/api_entities/websocket_request.py,sha256=Xr6IJ9WqrIw5ouBQLpgoRSwL1C09jkb4u1EZdxhVQy0,15039
|
|
24
24
|
dashscope/app/__init__.py,sha256=UiN_9i--z84Dw5wUehOh_Tkk_9Gq_td_Kbz1dobBEKg,62
|
|
25
|
-
dashscope/app/application.py,sha256=
|
|
25
|
+
dashscope/app/application.py,sha256=QdFSUgQCDDwEaJtlKkbrxrw1lXBCZB7eOX7P1D3GNgU,8532
|
|
26
26
|
dashscope/app/application_response.py,sha256=U5I8Yb1IlXzj2L5a1OAl55i0MCB3kG9Qp4aY17_73pI,6886
|
|
27
27
|
dashscope/assistants/__init__.py,sha256=i9N5OxHgY7edlOhTdPyC0N5Uc0uMCkB2vbMPDCD1zX0,383
|
|
28
28
|
dashscope/assistants/assistant_types.py,sha256=1jNL30TOlrkiYhvCaB3E8jkPLG8CnQ6I3tHpYXZCsD0,4211
|
|
@@ -50,7 +50,7 @@ dashscope/common/env.py,sha256=oQOZW5JyEeTSde394un2lpDJ5RBh4fMU9hBfbtrKKkc,869
|
|
|
50
50
|
dashscope/common/error.py,sha256=Q7GRhniP-7ap4HBpU69frRdKgKLwmH4ySYxCtupsr60,2638
|
|
51
51
|
dashscope/common/logging.py,sha256=ecGxylG3bWES_Xv5-BD6ep4_0Ciu7F6ZPBjiZtu9Jx4,984
|
|
52
52
|
dashscope/common/message_manager.py,sha256=i5149WzDk6nWmdFaHzYx4USXMBeX18GKSI-F4fLwbN0,1097
|
|
53
|
-
dashscope/common/utils.py,sha256=
|
|
53
|
+
dashscope/common/utils.py,sha256=pMrJJWO3YV77VUFRhoKT7SdCMlopmXx0TgSzPuI3OYM,15388
|
|
54
54
|
dashscope/customize/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
55
55
|
dashscope/customize/customize_types.py,sha256=ZtEwSXA4dbjIYr5vgQQNkMuXyC2BNmznGuaF6b7jwr0,4803
|
|
56
56
|
dashscope/customize/deployments.py,sha256=LIkM-hmJHcJZCKV6WJIPSXQ5CAhB5PUxnt5mqKbVbfE,5189
|
|
@@ -85,9 +85,9 @@ dashscope/tokenizers/tokenizer.py,sha256=y6P91qTCYo__pEx_0VHAcj9YECfbUdRqZU1fdGT
|
|
|
85
85
|
dashscope/tokenizers/tokenizer_base.py,sha256=REDhzRyDT13iequ61-a6_KcTy0GFKlihQve5HkyoyRs,656
|
|
86
86
|
dashscope/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
87
87
|
dashscope/utils/oss_utils.py,sha256=7vZ2Lypxwiit8VcAqAvr3cCyhVfaLapDiNuF-H3ZCD4,7332
|
|
88
|
-
dashscope-1.20.
|
|
89
|
-
dashscope-1.20.
|
|
90
|
-
dashscope-1.20.
|
|
91
|
-
dashscope-1.20.
|
|
92
|
-
dashscope-1.20.
|
|
93
|
-
dashscope-1.20.
|
|
88
|
+
dashscope-1.20.12.dist-info/LICENSE,sha256=Izp5L1DF1Mbza6qojkqNNWlE_mYLnr4rmzx2EBF8YFw,11413
|
|
89
|
+
dashscope-1.20.12.dist-info/METADATA,sha256=OKwphrQ3jfnoXFgBOcMvf4cYu3UcM7WTPNfDeUBuNcA,6642
|
|
90
|
+
dashscope-1.20.12.dist-info/WHEEL,sha256=G16H4A3IeoQmnOrYV4ueZGKSjhipXx8zc8nu9FGlvMA,92
|
|
91
|
+
dashscope-1.20.12.dist-info/entry_points.txt,sha256=raEp5dOuj8whJ7yqZlDM8WQ5p2RfnGrGNo0QLQEnatY,50
|
|
92
|
+
dashscope-1.20.12.dist-info/top_level.txt,sha256=woqavFJK9zas5xTqynmALqOtlafghjsk63Xk86powTU,10
|
|
93
|
+
dashscope-1.20.12.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|