dashscope 1.15.0__py3-none-any.whl → 1.17.0__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/__init__.py +57 -10
- dashscope/aigc/code_generation.py +12 -9
- dashscope/aigc/conversation.py +3 -0
- dashscope/aigc/generation.py +3 -0
- dashscope/aigc/image_synthesis.py +21 -6
- dashscope/aigc/multimodal_conversation.py +3 -0
- dashscope/api_entities/aiohttp_request.py +1 -0
- dashscope/api_entities/api_request_factory.py +28 -12
- dashscope/api_entities/dashscope_response.py +63 -0
- dashscope/api_entities/http_request.py +18 -9
- dashscope/api_entities/websocket_request.py +3 -0
- dashscope/app/application.py +16 -23
- dashscope/assistants/__init__.py +14 -0
- dashscope/assistants/assistant_types.py +164 -0
- dashscope/assistants/assistants.py +280 -0
- dashscope/assistants/files.py +189 -0
- dashscope/audio/asr/asr_phrase_manager.py +27 -5
- dashscope/audio/asr/recognition.py +10 -2
- dashscope/audio/asr/transcription.py +21 -3
- dashscope/audio/tts/speech_synthesizer.py +3 -0
- dashscope/cli.py +7 -7
- dashscope/client/base_api.py +303 -68
- dashscope/common/base_type.py +130 -0
- dashscope/common/constants.py +1 -0
- dashscope/common/error.py +4 -0
- dashscope/common/utils.py +22 -6
- dashscope/deployment.py +40 -6
- dashscope/embeddings/batch_text_embedding.py +24 -7
- dashscope/embeddings/multimodal_embedding.py +3 -0
- dashscope/embeddings/text_embedding.py +8 -1
- dashscope/files.py +107 -0
- dashscope/finetune.py +31 -7
- dashscope/model.py +9 -2
- dashscope/models.py +47 -0
- dashscope/nlp/understanding.py +2 -2
- dashscope/rerank/__init__.py +0 -0
- dashscope/rerank/text_rerank.py +67 -0
- dashscope/threads/__init__.py +24 -0
- dashscope/threads/messages/__init__.py +0 -0
- dashscope/threads/messages/files.py +111 -0
- dashscope/threads/messages/messages.py +218 -0
- dashscope/threads/runs/__init__.py +0 -0
- dashscope/threads/runs/runs.py +408 -0
- dashscope/threads/runs/steps.py +110 -0
- dashscope/threads/thread_types.py +571 -0
- dashscope/threads/threads.py +210 -0
- dashscope/tokenizers/tokenization.py +3 -0
- dashscope/utils/oss_utils.py +11 -0
- dashscope/version.py +1 -1
- {dashscope-1.15.0.dist-info → dashscope-1.17.0.dist-info}/METADATA +2 -3
- dashscope-1.17.0.dist-info/RECORD +84 -0
- dashscope-1.15.0.dist-info/RECORD +0 -66
- {dashscope-1.15.0.dist-info → dashscope-1.17.0.dist-info}/LICENSE +0 -0
- {dashscope-1.15.0.dist-info → dashscope-1.17.0.dist-info}/WHEEL +0 -0
- {dashscope-1.15.0.dist-info → dashscope-1.17.0.dist-info}/entry_points.txt +0 -0
- {dashscope-1.15.0.dist-info → dashscope-1.17.0.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,210 @@
|
|
|
1
|
+
from typing import Dict, List, Optional
|
|
2
|
+
|
|
3
|
+
from dashscope.assistants.assistant_types import DeleteResponse
|
|
4
|
+
from dashscope.client.base_api import (CreateMixin, DeleteMixin,
|
|
5
|
+
GetStatusMixin, UpdateMixin)
|
|
6
|
+
from dashscope.common.error import InputRequired
|
|
7
|
+
from dashscope.threads.thread_types import Run, Thread
|
|
8
|
+
|
|
9
|
+
__all__ = ['Threads']
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
class Threads(CreateMixin, DeleteMixin, GetStatusMixin, UpdateMixin):
|
|
13
|
+
SUB_PATH = 'threads'
|
|
14
|
+
|
|
15
|
+
@classmethod
|
|
16
|
+
def call(cls,
|
|
17
|
+
*,
|
|
18
|
+
messages: List[Dict] = None,
|
|
19
|
+
metadata: Dict = None,
|
|
20
|
+
workspace: str = None,
|
|
21
|
+
api_key: str = None,
|
|
22
|
+
**kwargs) -> Thread:
|
|
23
|
+
"""Create a thread.
|
|
24
|
+
|
|
25
|
+
Args:
|
|
26
|
+
messages (List[Dict], optional): List of messages to start thread. Defaults to None.
|
|
27
|
+
metadata (Dict, optional): The key-value information associate with thread. Defaults to None.
|
|
28
|
+
workspace (str, optional): The DashScope workspace id. Defaults to None.
|
|
29
|
+
api_key (str, optional): Your DashScope api key. Defaults to None.
|
|
30
|
+
|
|
31
|
+
Returns:
|
|
32
|
+
Thread: The thread object.
|
|
33
|
+
"""
|
|
34
|
+
return cls.create(messages=messages,
|
|
35
|
+
metadata=metadata,
|
|
36
|
+
workspace=workspace,
|
|
37
|
+
api_key=api_key,
|
|
38
|
+
**kwargs)
|
|
39
|
+
|
|
40
|
+
@classmethod
|
|
41
|
+
def create(cls,
|
|
42
|
+
*,
|
|
43
|
+
messages: List[Dict] = None,
|
|
44
|
+
metadata: Dict = None,
|
|
45
|
+
workspace: str = None,
|
|
46
|
+
api_key: str = None,
|
|
47
|
+
**kwargs) -> Thread:
|
|
48
|
+
"""Create a thread.
|
|
49
|
+
|
|
50
|
+
Args:
|
|
51
|
+
messages (List[Dict], optional): List of messages to start thread. Defaults to None.
|
|
52
|
+
metadata (Dict, optional): The key-value information associate with thread. Defaults to None.
|
|
53
|
+
workspace (str, optional): The DashScope workspace id. Defaults to None.
|
|
54
|
+
api_key (str, optional): Your DashScope api key. Defaults to None.
|
|
55
|
+
|
|
56
|
+
Returns:
|
|
57
|
+
Thread: The thread object.
|
|
58
|
+
"""
|
|
59
|
+
data = {}
|
|
60
|
+
if messages:
|
|
61
|
+
data['messages'] = messages
|
|
62
|
+
if metadata:
|
|
63
|
+
data['metadata'] = metadata
|
|
64
|
+
response = super().call(data=data if data else '',
|
|
65
|
+
api_key=api_key,
|
|
66
|
+
flattened_output=True,
|
|
67
|
+
workspace=workspace,
|
|
68
|
+
**kwargs)
|
|
69
|
+
return Thread(**response)
|
|
70
|
+
|
|
71
|
+
@classmethod
|
|
72
|
+
def get(cls,
|
|
73
|
+
thread_id: str,
|
|
74
|
+
*,
|
|
75
|
+
workspace: str = None,
|
|
76
|
+
api_key: str = None,
|
|
77
|
+
**kwargs) -> Thread:
|
|
78
|
+
"""Retrieve the thread.
|
|
79
|
+
|
|
80
|
+
Args:
|
|
81
|
+
thread_id (str): The target thread.
|
|
82
|
+
workspace (str, optional): The DashScope workspace id. Defaults to None.
|
|
83
|
+
api_key (str, optional): Your DashScope api key. Defaults to None.
|
|
84
|
+
|
|
85
|
+
Returns:
|
|
86
|
+
Thread: The `Thread` information.
|
|
87
|
+
"""
|
|
88
|
+
return cls.retrieve(thread_id,
|
|
89
|
+
workspace=workspace,
|
|
90
|
+
api_key=api_key,
|
|
91
|
+
**kwargs)
|
|
92
|
+
|
|
93
|
+
@classmethod
|
|
94
|
+
def retrieve(cls,
|
|
95
|
+
thread_id: str,
|
|
96
|
+
*,
|
|
97
|
+
workspace: str = None,
|
|
98
|
+
api_key: str = None,
|
|
99
|
+
**kwargs) -> Thread:
|
|
100
|
+
"""Retrieve the thread.
|
|
101
|
+
|
|
102
|
+
Args:
|
|
103
|
+
thread_id (str): The target thread.
|
|
104
|
+
workspace (str, optional): The DashScope workspace id. Defaults to None.
|
|
105
|
+
api_key (str, optional): Your DashScope api key. Defaults to None.
|
|
106
|
+
|
|
107
|
+
Returns:
|
|
108
|
+
Thread: The `Thread` information.
|
|
109
|
+
"""
|
|
110
|
+
if not thread_id:
|
|
111
|
+
raise InputRequired('thread_id is required!')
|
|
112
|
+
response = super().get(thread_id,
|
|
113
|
+
api_key=api_key,
|
|
114
|
+
flattened_output=True,
|
|
115
|
+
workspace=workspace,
|
|
116
|
+
**kwargs)
|
|
117
|
+
return Thread(**response)
|
|
118
|
+
|
|
119
|
+
@classmethod
|
|
120
|
+
def update(cls,
|
|
121
|
+
thread_id: str,
|
|
122
|
+
*,
|
|
123
|
+
metadata: Dict = None,
|
|
124
|
+
workspace: str = None,
|
|
125
|
+
api_key: str = None,
|
|
126
|
+
**kwargs) -> Thread:
|
|
127
|
+
"""Update thread information.
|
|
128
|
+
|
|
129
|
+
Args:
|
|
130
|
+
thread_id (str): The thread id.
|
|
131
|
+
metadata (Dict, optional): The thread key-value information. Defaults to None.
|
|
132
|
+
workspace (str, optional): The DashScope workspace id. Defaults to None.
|
|
133
|
+
api_key (str, optional): Your DashScope api key. Defaults to None.
|
|
134
|
+
|
|
135
|
+
Returns:
|
|
136
|
+
Thread: The `Thread` information.
|
|
137
|
+
"""
|
|
138
|
+
if not thread_id:
|
|
139
|
+
raise InputRequired('thread_id is required!')
|
|
140
|
+
response = super().update(thread_id,
|
|
141
|
+
json={'metadata': metadata},
|
|
142
|
+
api_key=api_key,
|
|
143
|
+
workspace=workspace,
|
|
144
|
+
flattened_output=True,
|
|
145
|
+
method='post',
|
|
146
|
+
**kwargs)
|
|
147
|
+
return Thread(**response)
|
|
148
|
+
|
|
149
|
+
@classmethod
|
|
150
|
+
def delete(cls,
|
|
151
|
+
thread_id,
|
|
152
|
+
*,
|
|
153
|
+
workspace: str = None,
|
|
154
|
+
api_key: str = None,
|
|
155
|
+
**kwargs) -> DeleteResponse:
|
|
156
|
+
"""Delete thread.
|
|
157
|
+
|
|
158
|
+
Args:
|
|
159
|
+
thread_id (str): The thread id to delete.
|
|
160
|
+
workspace (str, optional): The DashScope workspace id. Defaults to None.
|
|
161
|
+
api_key (str, optional): Your DashScope api key. Defaults to None.
|
|
162
|
+
|
|
163
|
+
Returns:
|
|
164
|
+
AssistantsDeleteResponse: The deleted information.
|
|
165
|
+
"""
|
|
166
|
+
if not thread_id:
|
|
167
|
+
raise InputRequired('thread_id is required!')
|
|
168
|
+
response = super().delete(thread_id,
|
|
169
|
+
api_key=api_key,
|
|
170
|
+
workspace=workspace,
|
|
171
|
+
flattened_output=True,
|
|
172
|
+
**kwargs)
|
|
173
|
+
return DeleteResponse(**response)
|
|
174
|
+
|
|
175
|
+
@classmethod
|
|
176
|
+
def create_and_run(cls,
|
|
177
|
+
*,
|
|
178
|
+
assistant_id: str,
|
|
179
|
+
thread: Optional[Dict] = None,
|
|
180
|
+
model: Optional[str] = None,
|
|
181
|
+
instructions: Optional[str] = None,
|
|
182
|
+
additional_instructions: Optional[str] = None,
|
|
183
|
+
tools: Optional[List[Dict]] = None,
|
|
184
|
+
metadata: Optional[Dict] = None,
|
|
185
|
+
workspace: str = None,
|
|
186
|
+
api_key: str = None,
|
|
187
|
+
**kwargs) -> Run:
|
|
188
|
+
if not assistant_id:
|
|
189
|
+
raise InputRequired('assistant_id is required')
|
|
190
|
+
data = {'assistant_id': assistant_id}
|
|
191
|
+
if thread:
|
|
192
|
+
data['thread'] = thread
|
|
193
|
+
if model:
|
|
194
|
+
data['model'] = model
|
|
195
|
+
if instructions:
|
|
196
|
+
data['instructions'] = instructions
|
|
197
|
+
if additional_instructions:
|
|
198
|
+
data['additional_instructions'] = additional_instructions
|
|
199
|
+
if tools:
|
|
200
|
+
data['tools'] = tools
|
|
201
|
+
if metadata:
|
|
202
|
+
data['metadata'] = metadata
|
|
203
|
+
|
|
204
|
+
response = super().call(data=data,
|
|
205
|
+
path='threads/runs',
|
|
206
|
+
api_key=api_key,
|
|
207
|
+
flattened_output=True,
|
|
208
|
+
workspace=workspace,
|
|
209
|
+
**kwargs)
|
|
210
|
+
return Run(**response)
|
|
@@ -36,6 +36,7 @@ class Tokenization(BaseApi):
|
|
|
36
36
|
history: list = None,
|
|
37
37
|
api_key: str = None,
|
|
38
38
|
messages: List[Message] = None,
|
|
39
|
+
workspace: str = None,
|
|
39
40
|
**kwargs) -> DashScopeAPIResponse:
|
|
40
41
|
"""Call tokenization.
|
|
41
42
|
|
|
@@ -56,6 +57,7 @@ class Tokenization(BaseApi):
|
|
|
56
57
|
[{'role': 'user',
|
|
57
58
|
'content': 'The weather is fine today.'},
|
|
58
59
|
{'role': 'assistant', 'content': 'Suitable for outings'}]
|
|
60
|
+
workspace (str): The dashscope workspace id.
|
|
59
61
|
**kwargs:
|
|
60
62
|
see model input.
|
|
61
63
|
|
|
@@ -87,6 +89,7 @@ class Tokenization(BaseApi):
|
|
|
87
89
|
api_key=api_key,
|
|
88
90
|
input=input,
|
|
89
91
|
is_service=False,
|
|
92
|
+
workspace=workspace,
|
|
90
93
|
**parameters)
|
|
91
94
|
|
|
92
95
|
@classmethod
|
dashscope/utils/oss_utils.py
CHANGED
|
@@ -144,6 +144,17 @@ def check_and_upload(model, elem: dict, key: str, api_key):
|
|
|
144
144
|
is_upload = True
|
|
145
145
|
else:
|
|
146
146
|
raise InvalidInput('The file: %s is not exists!' % file_path)
|
|
147
|
+
elif not content.startswith('http'):
|
|
148
|
+
if os.path.exists(content):
|
|
149
|
+
file_url = OssUtils.upload(model=model,
|
|
150
|
+
file_path=content,
|
|
151
|
+
api_key=api_key)
|
|
152
|
+
if file_url is None:
|
|
153
|
+
raise UploadFileException('Uploading file: %s failed' %
|
|
154
|
+
content)
|
|
155
|
+
elem[key] = file_url
|
|
156
|
+
is_upload = True
|
|
157
|
+
|
|
147
158
|
return is_upload
|
|
148
159
|
|
|
149
160
|
|
dashscope/version.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
__version__ = '1.
|
|
1
|
+
__version__ = '1.17.0'
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: dashscope
|
|
3
|
-
Version: 1.
|
|
3
|
+
Version: 1.17.0
|
|
4
4
|
Summary: dashscope client sdk library
|
|
5
5
|
Home-page: https://dashscope.aliyun.com/
|
|
6
6
|
Author: Alibaba Cloud
|
|
@@ -12,12 +12,11 @@ Classifier: Intended Audience :: Developers
|
|
|
12
12
|
Classifier: License :: OSI Approved :: Apache Software License
|
|
13
13
|
Classifier: Programming Language :: Python
|
|
14
14
|
Classifier: Programming Language :: Python :: 3
|
|
15
|
-
Classifier: Programming Language :: Python :: 3.7
|
|
16
15
|
Classifier: Programming Language :: Python :: 3.8
|
|
17
16
|
Classifier: Programming Language :: Python :: 3.9
|
|
18
17
|
Classifier: Programming Language :: Python :: 3.10
|
|
19
18
|
Classifier: Programming Language :: Python :: 3.11
|
|
20
|
-
Requires-Python: >=3.
|
|
19
|
+
Requires-Python: >=3.8.0
|
|
21
20
|
Description-Content-Type: text/markdown
|
|
22
21
|
Requires-Dist: aiohttp
|
|
23
22
|
Requires-Dist: requests
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
dashscope/__init__.py,sha256=HCJ9LaQb66YfHUlTuUEEJJ2_DF-9LaJa6OJZx_iKN8Q,2870
|
|
2
|
+
dashscope/cli.py,sha256=4xNf9K9ncob-KUys2mkryUcqs_IpaiwoEP13rM2UyJk,23924
|
|
3
|
+
dashscope/deployment.py,sha256=ljmVi-ny6SjEs8v4oIGNWIw8UQTorE7dl5QJv7dEPIQ,5728
|
|
4
|
+
dashscope/file.py,sha256=Dv2Fz3DLbcye2uuQxyQwRM7ky27OthouLXIpSQagQy4,3324
|
|
5
|
+
dashscope/files.py,sha256=QgJjwhtn9F548nCA8jD8OvE6aQEj-20hZqJgYXsUdQU,3930
|
|
6
|
+
dashscope/finetune.py,sha256=_tflDUvu0KagSoCzLaf0hofpG_P8NU6PylL8CPjVhrA,6243
|
|
7
|
+
dashscope/model.py,sha256=UPOn1qMYFhX-ovXi3BMxZEBk8qOK7WLJOYHMbPZwYBo,1440
|
|
8
|
+
dashscope/models.py,sha256=UPOn1qMYFhX-ovXi3BMxZEBk8qOK7WLJOYHMbPZwYBo,1440
|
|
9
|
+
dashscope/version.py,sha256=U6ZR0tatDYFB2QLb4J_eI-DLS9Pd8RCafZF8BQcrTYE,23
|
|
10
|
+
dashscope/aigc/__init__.py,sha256=s-MCA87KYiVumYtKtJi5IMN7xelSF6TqEU3s3_7RF-Y,327
|
|
11
|
+
dashscope/aigc/code_generation.py,sha256=KAJVrGp6tiNFBBg64Ovs9RfcP5SrIhrbW3wdA89NKso,10885
|
|
12
|
+
dashscope/aigc/conversation.py,sha256=xRoJlCR-IXHjSdkDrK74a9ut1FJg0FZhTNXZAJC18MA,14231
|
|
13
|
+
dashscope/aigc/generation.py,sha256=9PMAhSy5Ht5eizUGXnDdk8Jl3yIDM4fR8eSxn1W4c-U,10051
|
|
14
|
+
dashscope/aigc/image_synthesis.py,sha256=b7813Yz9Ivv2KijXfBSycRE1rer4uVRS2Ntx_lPts1A,9791
|
|
15
|
+
dashscope/aigc/multimodal_conversation.py,sha256=SlNnnsUPV19gdx8fYJAtsMFWPNGY6vhk5IGHZ5ZczpI,5369
|
|
16
|
+
dashscope/api_entities/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
17
|
+
dashscope/api_entities/aiohttp_request.py,sha256=aE3AeWba8Ig_xHMYjrAdkq0N61l_L2VFTG6HYh912X0,10229
|
|
18
|
+
dashscope/api_entities/api_request_data.py,sha256=JUMcfpJjKXEZLCBSFIDpgoaeQYk5uK9-CwhM4OHIHFQ,5463
|
|
19
|
+
dashscope/api_entities/api_request_factory.py,sha256=4p-qxMuvCA0CmUHdH19QaUCaHmlLHAM1X2Jd4YKt5c0,4661
|
|
20
|
+
dashscope/api_entities/base_request.py,sha256=cXUL7xqSV8wBr5d-1kx65AO3IsRR9A_ps6Lok-v-MKM,926
|
|
21
|
+
dashscope/api_entities/dashscope_response.py,sha256=Bp1T7HwVlkOvpMNg-AEjz-BScxhLUXMXlE8ApXTtfhQ,17872
|
|
22
|
+
dashscope/api_entities/http_request.py,sha256=Y25LeW3Sq73AbjP-Zsvs1CYMsSBPEBTFXcthbFkV0dI,9834
|
|
23
|
+
dashscope/api_entities/websocket_request.py,sha256=IaydqRvOSr5IdSSpnX8Vc8rRoVldjfcrLvDxTnPep9g,14676
|
|
24
|
+
dashscope/app/__init__.py,sha256=OOV2rFy0QlA9Gu3XVPtWJoBwK1J11BdGhkEdX_sdYGU,68
|
|
25
|
+
dashscope/app/application.py,sha256=Lk6d00PEZvnzlfJkMI1xQaQr9PKZknrONw9aQQFR1zA,7755
|
|
26
|
+
dashscope/app/application_response.py,sha256=pIuDSu_SAcX1Y_gK6ZYaadaMXV52XBZoM1uN4tTZ3FA,6739
|
|
27
|
+
dashscope/assistants/__init__.py,sha256=i9N5OxHgY7edlOhTdPyC0N5Uc0uMCkB2vbMPDCD1zX0,383
|
|
28
|
+
dashscope/assistants/assistant_types.py,sha256=1jNL30TOlrkiYhvCaB3E8jkPLG8CnQ6I3tHpYXZCsD0,4211
|
|
29
|
+
dashscope/assistants/assistants.py,sha256=NYahIDqhtnOcQOmnhZsjc5F5jvBUQcce8-fbrJXHVnQ,10833
|
|
30
|
+
dashscope/assistants/files.py,sha256=pwLVJ_pjpRFWyfI_MRvhH7Si7FzGDj4ChzZgWTpLOhg,6699
|
|
31
|
+
dashscope/audio/__init__.py,sha256=vlw0TFVRdeRWfzmJxhzarVUqkMs-DZNf4GiMtm3C8XE,45
|
|
32
|
+
dashscope/audio/asr/__init__.py,sha256=-s180qWn_JPSpCo1q0aDJJ5HQ3zTzD4z5yUwsRqH4aU,275
|
|
33
|
+
dashscope/audio/asr/asr_phrase_manager.py,sha256=4-tj9jxo5yUCcRktxXGgB_dggUk9oOtWGNyjBJj1wm8,7590
|
|
34
|
+
dashscope/audio/asr/recognition.py,sha256=F2iz6hyXg16Z6DGlPwGpKfRNcAZIIsqXnNPtaZp4Fzo,17369
|
|
35
|
+
dashscope/audio/asr/transcription.py,sha256=e5O1U51GT-OQPu-wWN2w_T7l6IopWuGMVkheOGdNCkk,8836
|
|
36
|
+
dashscope/audio/tts/__init__.py,sha256=fbnieZX9yNFNh5BsxLpLXb63jlxzxrdCJakV3ignjlQ,194
|
|
37
|
+
dashscope/audio/tts/speech_synthesizer.py,sha256=dnKx9FDDdO_ETHAjhK8zaMVaH6SfoTtN5YxXXqgY1JA,7571
|
|
38
|
+
dashscope/client/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
39
|
+
dashscope/client/base_api.py,sha256=k6DS7dtVGTeavAzKOl_DDruyRN8UzvjAtjhSRbXgiNQ,40587
|
|
40
|
+
dashscope/common/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
41
|
+
dashscope/common/api_key.py,sha256=5Stp0odL5JSuIO3qJBp23QNppuGbqhhvKPS66qbMs0I,1986
|
|
42
|
+
dashscope/common/base_type.py,sha256=wKqLGrr2o9bpI43ws1P0YCuJmoS17J9_Rw_uuYHjIFQ,4531
|
|
43
|
+
dashscope/common/constants.py,sha256=86Zc45f1-OEgNdLTu-4_Pl0U3wRyi5qFt4E7dLlaglU,2327
|
|
44
|
+
dashscope/common/env.py,sha256=oQOZW5JyEeTSde394un2lpDJ5RBh4fMU9hBfbtrKKkc,869
|
|
45
|
+
dashscope/common/error.py,sha256=eFUSBNERfXYQ4g3bVka_IGuRG1A06Zf6njObBtR2z6E,1951
|
|
46
|
+
dashscope/common/logging.py,sha256=ecGxylG3bWES_Xv5-BD6ep4_0Ciu7F6ZPBjiZtu9Jx4,984
|
|
47
|
+
dashscope/common/message_manager.py,sha256=i5149WzDk6nWmdFaHzYx4USXMBeX18GKSI-F4fLwbN0,1097
|
|
48
|
+
dashscope/common/utils.py,sha256=oGwoDgO31-Filg64GrhyR14lxORhE3esVPJvnOgtpvw,7365
|
|
49
|
+
dashscope/embeddings/__init__.py,sha256=-dxHaoxZZVuP-wAGUIa3sNNh8CQwaeWj2UlqsDy1sV4,240
|
|
50
|
+
dashscope/embeddings/batch_text_embedding.py,sha256=P32LFO9v7ehdJsl0c32In94hUET6K6AaGJ_pDRtFqco,8791
|
|
51
|
+
dashscope/embeddings/batch_text_embedding_response.py,sha256=WziXlQsFIkL1kPc_7lRG1HtqgkO5vVThtnNqExJggNU,2000
|
|
52
|
+
dashscope/embeddings/multimodal_embedding.py,sha256=yojtGNoT2N54g0jcAYUwNIiwzueun1ouqS0S0tvnyQc,3966
|
|
53
|
+
dashscope/embeddings/text_embedding.py,sha256=xjG5wE97apwNPHrDNqjwfXuet1dCTkVLIr90O1IeYVc,1961
|
|
54
|
+
dashscope/io/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
55
|
+
dashscope/io/input_output.py,sha256=iZ1X1x1btdoZK2VeC9JsKkag2eaXwqfNT3Q6SrmRi2w,3941
|
|
56
|
+
dashscope/nlp/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
57
|
+
dashscope/nlp/understanding.py,sha256=KanXjijRUNTxMc0uRisDzelffreYwd9N2NR64-nkLfs,2829
|
|
58
|
+
dashscope/protocol/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
59
|
+
dashscope/protocol/websocket.py,sha256=z-v6PGx3L4zYBANuC48s7SWSQSwRCDoh0zcfhv9Bf8U,561
|
|
60
|
+
dashscope/rerank/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
61
|
+
dashscope/rerank/text_rerank.py,sha256=1L-RLUxMCvNhbMud1FUG6YFWT7ZV979fzhMEuVjJ1oI,2398
|
|
62
|
+
dashscope/resources/qwen.tiktoken,sha256=srG437XMXwJLr8NzEhxquj9m-aWgJp4kNHCh3hajMYY,2561218
|
|
63
|
+
dashscope/threads/__init__.py,sha256=md5bsHekHHGOg3uQrBCk8f4BCNnA1AuI_-LDf92pNVU,621
|
|
64
|
+
dashscope/threads/thread_types.py,sha256=h1fYspH_ppCv32ffjTXIiGKBSgzEVtOdwT57xlcEd_Q,16028
|
|
65
|
+
dashscope/threads/threads.py,sha256=dD72xklN71KFGBVoBVHEbCbZADwLbi9yGS9LbFpnlAI,7665
|
|
66
|
+
dashscope/threads/messages/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
67
|
+
dashscope/threads/messages/files.py,sha256=wi0nJ2zsPWOw2Jn-ZkxA3URZBIrkGxqM_uAPfXY1xv0,3820
|
|
68
|
+
dashscope/threads/messages/messages.py,sha256=Zjmyf3rT1XSdn33hPrqOY6DSWUVL7pDEapG03FREPV8,8419
|
|
69
|
+
dashscope/threads/runs/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
70
|
+
dashscope/threads/runs/runs.py,sha256=Fyny9GyCgxL0CRBht84f7sFjYKBwyZBC-HMCW1tx_3k,15529
|
|
71
|
+
dashscope/threads/runs/steps.py,sha256=pLNR-5g7zvYkvC-p4sZGVgYHd1jqxBerM2WFyB358H8,3638
|
|
72
|
+
dashscope/tokenizers/__init__.py,sha256=Oy5FMT37Non6e1YxdHQ89U93Dy3CG1Ez0gBa771KZo0,200
|
|
73
|
+
dashscope/tokenizers/qwen_tokenizer.py,sha256=dCnT9-9NrqPS85bEhjlPULUfDADVRhlleYwM_ILgCeI,4111
|
|
74
|
+
dashscope/tokenizers/tokenization.py,sha256=G6cSEmVLr3pjXUC3EOU9ot8MYxNnOQ4wOB2mI1OqmCE,4773
|
|
75
|
+
dashscope/tokenizers/tokenizer.py,sha256=y6P91qTCYo__pEx_0VHAcj9YECfbUdRqZU1fdGTjF4o,1154
|
|
76
|
+
dashscope/tokenizers/tokenizer_base.py,sha256=REDhzRyDT13iequ61-a6_KcTy0GFKlihQve5HkyoyRs,656
|
|
77
|
+
dashscope/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
78
|
+
dashscope/utils/oss_utils.py,sha256=fi8-PPsN-iR-iv5k2NS5Z8nlWkpgUhr56FRWm4BDh4A,6984
|
|
79
|
+
dashscope-1.17.0.dist-info/LICENSE,sha256=Izp5L1DF1Mbza6qojkqNNWlE_mYLnr4rmzx2EBF8YFw,11413
|
|
80
|
+
dashscope-1.17.0.dist-info/METADATA,sha256=EbZoYp1sVHD7WzeWQL-P9JvJkd3gaPdzkE2G5--G2GA,6609
|
|
81
|
+
dashscope-1.17.0.dist-info/WHEEL,sha256=G16H4A3IeoQmnOrYV4ueZGKSjhipXx8zc8nu9FGlvMA,92
|
|
82
|
+
dashscope-1.17.0.dist-info/entry_points.txt,sha256=raEp5dOuj8whJ7yqZlDM8WQ5p2RfnGrGNo0QLQEnatY,50
|
|
83
|
+
dashscope-1.17.0.dist-info/top_level.txt,sha256=woqavFJK9zas5xTqynmALqOtlafghjsk63Xk86powTU,10
|
|
84
|
+
dashscope-1.17.0.dist-info/RECORD,,
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
dashscope/__init__.py,sha256=zochMrwoyyQyf62XbUZaFhFpkIwULQCSNHCd2lcb7pY,2081
|
|
2
|
-
dashscope/cli.py,sha256=7CnUZqaaUc0FxbmXHMiqOALl9YzZmSrFS23A7hbR0w0,23917
|
|
3
|
-
dashscope/deployment.py,sha256=uhlQYOiu1baMQxQnFmRwI6ces0I-_DKp8uej_L0v1eY,4400
|
|
4
|
-
dashscope/file.py,sha256=Dv2Fz3DLbcye2uuQxyQwRM7ky27OthouLXIpSQagQy4,3324
|
|
5
|
-
dashscope/finetune.py,sha256=5QlIcnFCfSjN3gn9A2FO0kLUDa9Rx_jSc44ezT3aBEo,5118
|
|
6
|
-
dashscope/model.py,sha256=iuIfal-vOo0yav0HXPdA7f93vd5JNTGIAdCG_WIYkW8,1158
|
|
7
|
-
dashscope/version.py,sha256=qiatipDCHB37xXqNBOc2sezBvX8WXTRFhAGZHwi0CXc,23
|
|
8
|
-
dashscope/aigc/__init__.py,sha256=s-MCA87KYiVumYtKtJi5IMN7xelSF6TqEU3s3_7RF-Y,327
|
|
9
|
-
dashscope/aigc/code_generation.py,sha256=bizJb3zGZx3pB74FKMIcnOi_6jkxpKgx__6urzqhQ_E,10627
|
|
10
|
-
dashscope/aigc/conversation.py,sha256=_sAWhQjLgJENqRAXh-i2dw8bt_i69fJv9KZYVIi4CEg,14090
|
|
11
|
-
dashscope/aigc/generation.py,sha256=SgOtVsd0DaMOuHmJ2EcA3E_hcU1Bqah1Q-Ztnb3TcC8,9910
|
|
12
|
-
dashscope/aigc/image_synthesis.py,sha256=Y20B_hpCe-uLKR661hvFpjQVk9jFfNtiPpiBkYiHAA0,8996
|
|
13
|
-
dashscope/aigc/multimodal_conversation.py,sha256=D5JYLLxwdGsgCrYeF0gNvE1kR5Vbmq1g0MiRU-4hlZQ,5228
|
|
14
|
-
dashscope/api_entities/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
15
|
-
dashscope/api_entities/aiohttp_request.py,sha256=ZFbdpJh7SwHnBzbYLhqr_FdcDVRgLVMLhLUS_vXbUGs,10228
|
|
16
|
-
dashscope/api_entities/api_request_data.py,sha256=JUMcfpJjKXEZLCBSFIDpgoaeQYk5uK9-CwhM4OHIHFQ,5463
|
|
17
|
-
dashscope/api_entities/api_request_factory.py,sha256=MCJOGgUzaWTaLZ5d8m8dck7QdSUNX7XLbKYyB3pT23E,4067
|
|
18
|
-
dashscope/api_entities/base_request.py,sha256=cXUL7xqSV8wBr5d-1kx65AO3IsRR9A_ps6Lok-v-MKM,926
|
|
19
|
-
dashscope/api_entities/dashscope_response.py,sha256=1KdBib5xOftcKXLzTETe5LElGy2mB8IG8E3JZrGOaAY,15814
|
|
20
|
-
dashscope/api_entities/http_request.py,sha256=MzaTznVJUbyA8u6cLegxVSEM3JWlAhPHbSh4uDCX0-A,9506
|
|
21
|
-
dashscope/api_entities/websocket_request.py,sha256=zU7OskAHaNlKcR9s_6Hlnhr5N3oam4w0sUD5E9N-4BQ,14586
|
|
22
|
-
dashscope/app/__init__.py,sha256=OOV2rFy0QlA9Gu3XVPtWJoBwK1J11BdGhkEdX_sdYGU,68
|
|
23
|
-
dashscope/app/application.py,sha256=nr27hXX8Es_6IWAPKO-Yzj7GF-sxC6JbL2P9U6UhqcE,7911
|
|
24
|
-
dashscope/app/application_response.py,sha256=pIuDSu_SAcX1Y_gK6ZYaadaMXV52XBZoM1uN4tTZ3FA,6739
|
|
25
|
-
dashscope/audio/__init__.py,sha256=vlw0TFVRdeRWfzmJxhzarVUqkMs-DZNf4GiMtm3C8XE,45
|
|
26
|
-
dashscope/audio/asr/__init__.py,sha256=-s180qWn_JPSpCo1q0aDJJ5HQ3zTzD4z5yUwsRqH4aU,275
|
|
27
|
-
dashscope/audio/asr/asr_phrase_manager.py,sha256=BNrRBGGoAW_rcxoi_euh6bRktJO6asTiGroE8PMh1Xg,6641
|
|
28
|
-
dashscope/audio/asr/recognition.py,sha256=Rw88mdZuHV2pTb_aa8uc3NMVHODpdK8kdNZ9KcYOzPk,17112
|
|
29
|
-
dashscope/audio/asr/transcription.py,sha256=o2EAxwwEF9exQLFlcLakMJ8w76pksPrWzbybq5IFq2M,7964
|
|
30
|
-
dashscope/audio/tts/__init__.py,sha256=fbnieZX9yNFNh5BsxLpLXb63jlxzxrdCJakV3ignjlQ,194
|
|
31
|
-
dashscope/audio/tts/speech_synthesizer.py,sha256=wKcpUo6L1yc0OZUajUh0xbtYubTkm-M89IGSAyDwLBo,7425
|
|
32
|
-
dashscope/client/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
33
|
-
dashscope/client/base_api.py,sha256=1YTlwY2_tlvMLaz6oGh1BNQt5GT_Xx3obS6nKOvnpkY,31749
|
|
34
|
-
dashscope/common/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
35
|
-
dashscope/common/api_key.py,sha256=5Stp0odL5JSuIO3qJBp23QNppuGbqhhvKPS66qbMs0I,1986
|
|
36
|
-
dashscope/common/constants.py,sha256=OCe3UNGH05sTEsffipWDYpUL_bz__AaYm9lSDB-ZkRI,2297
|
|
37
|
-
dashscope/common/env.py,sha256=oQOZW5JyEeTSde394un2lpDJ5RBh4fMU9hBfbtrKKkc,869
|
|
38
|
-
dashscope/common/error.py,sha256=5Ndi6w38fSHX6qcPgr9udKISf1RbRJVL8hjDPtU4lJ4,1896
|
|
39
|
-
dashscope/common/logging.py,sha256=ecGxylG3bWES_Xv5-BD6ep4_0Ciu7F6ZPBjiZtu9Jx4,984
|
|
40
|
-
dashscope/common/message_manager.py,sha256=i5149WzDk6nWmdFaHzYx4USXMBeX18GKSI-F4fLwbN0,1097
|
|
41
|
-
dashscope/common/utils.py,sha256=xsY36zXGnProdkgarbFu30rX9rmdQNZHcHbvEuVXoss,6697
|
|
42
|
-
dashscope/embeddings/__init__.py,sha256=-dxHaoxZZVuP-wAGUIa3sNNh8CQwaeWj2UlqsDy1sV4,240
|
|
43
|
-
dashscope/embeddings/batch_text_embedding.py,sha256=M8jvdz304Oh5ZwegHWGwTda9AezYsgVC59HnweuCagY,7977
|
|
44
|
-
dashscope/embeddings/batch_text_embedding_response.py,sha256=WziXlQsFIkL1kPc_7lRG1HtqgkO5vVThtnNqExJggNU,2000
|
|
45
|
-
dashscope/embeddings/multimodal_embedding.py,sha256=Wgh80k-mI0DJiapWxM27H1rwkCPoFqunca2JHvwTE68,3824
|
|
46
|
-
dashscope/embeddings/text_embedding.py,sha256=X7_FBM57gQQCu8xb-W-jTlSsathaCiAtW0mdb19N-PM,1714
|
|
47
|
-
dashscope/io/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
48
|
-
dashscope/io/input_output.py,sha256=iZ1X1x1btdoZK2VeC9JsKkag2eaXwqfNT3Q6SrmRi2w,3941
|
|
49
|
-
dashscope/nlp/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
50
|
-
dashscope/nlp/understanding.py,sha256=uVkf_4iULnlnuGmEX3taKiHgzxu173vvgVwY5EO2C2Y,2803
|
|
51
|
-
dashscope/protocol/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
52
|
-
dashscope/protocol/websocket.py,sha256=z-v6PGx3L4zYBANuC48s7SWSQSwRCDoh0zcfhv9Bf8U,561
|
|
53
|
-
dashscope/resources/qwen.tiktoken,sha256=srG437XMXwJLr8NzEhxquj9m-aWgJp4kNHCh3hajMYY,2561218
|
|
54
|
-
dashscope/tokenizers/__init__.py,sha256=Oy5FMT37Non6e1YxdHQ89U93Dy3CG1Ez0gBa771KZo0,200
|
|
55
|
-
dashscope/tokenizers/qwen_tokenizer.py,sha256=dCnT9-9NrqPS85bEhjlPULUfDADVRhlleYwM_ILgCeI,4111
|
|
56
|
-
dashscope/tokenizers/tokenization.py,sha256=q-mx2ufZAXyelLyPZdjsKieYHC6tJU19t7lC5bEz6kU,4631
|
|
57
|
-
dashscope/tokenizers/tokenizer.py,sha256=y6P91qTCYo__pEx_0VHAcj9YECfbUdRqZU1fdGTjF4o,1154
|
|
58
|
-
dashscope/tokenizers/tokenizer_base.py,sha256=REDhzRyDT13iequ61-a6_KcTy0GFKlihQve5HkyoyRs,656
|
|
59
|
-
dashscope/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
60
|
-
dashscope/utils/oss_utils.py,sha256=iCF5fLqIXDCS2zkE96t2DEUxCI76ArnQH2DiY2hgHu0,6522
|
|
61
|
-
dashscope-1.15.0.dist-info/LICENSE,sha256=Izp5L1DF1Mbza6qojkqNNWlE_mYLnr4rmzx2EBF8YFw,11413
|
|
62
|
-
dashscope-1.15.0.dist-info/METADATA,sha256=Fgl_zE_G36nWNnB7UuE5Yh-soXFqps3ysxWqs-K_T3k,6659
|
|
63
|
-
dashscope-1.15.0.dist-info/WHEEL,sha256=G16H4A3IeoQmnOrYV4ueZGKSjhipXx8zc8nu9FGlvMA,92
|
|
64
|
-
dashscope-1.15.0.dist-info/entry_points.txt,sha256=raEp5dOuj8whJ7yqZlDM8WQ5p2RfnGrGNo0QLQEnatY,50
|
|
65
|
-
dashscope-1.15.0.dist-info/top_level.txt,sha256=woqavFJK9zas5xTqynmALqOtlafghjsk63Xk86powTU,10
|
|
66
|
-
dashscope-1.15.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|