dashscope 1.20.8__py3-none-any.whl → 1.20.9__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/aigc/image_synthesis.py +17 -1
- dashscope/audio/asr/transcribe.py +270 -0
- dashscope/threads/runs/runs.py +0 -6
- dashscope/utils/oss_utils.py +50 -31
- dashscope/version.py +1 -1
- {dashscope-1.20.8.dist-info → dashscope-1.20.9.dist-info}/METADATA +1 -1
- {dashscope-1.20.8.dist-info → dashscope-1.20.9.dist-info}/RECORD +11 -10
- {dashscope-1.20.8.dist-info → dashscope-1.20.9.dist-info}/LICENSE +0 -0
- {dashscope-1.20.8.dist-info → dashscope-1.20.9.dist-info}/WHEEL +0 -0
- {dashscope-1.20.8.dist-info → dashscope-1.20.9.dist-info}/entry_points.txt +0 -0
- {dashscope-1.20.8.dist-info → dashscope-1.20.9.dist-info}/top_level.txt +0 -0
|
@@ -6,6 +6,7 @@ from dashscope.client.base_api import BaseAsyncApi
|
|
|
6
6
|
from dashscope.common.constants import IMAGES, NEGATIVE_PROMPT, PROMPT
|
|
7
7
|
from dashscope.common.error import InputRequired
|
|
8
8
|
from dashscope.common.utils import _get_task_group_and_task
|
|
9
|
+
from dashscope.utils.oss_utils import check_and_upload_local
|
|
9
10
|
|
|
10
11
|
|
|
11
12
|
class ImageSynthesis(BaseAsyncApi):
|
|
@@ -38,7 +39,8 @@ class ImageSynthesis(BaseAsyncApi):
|
|
|
38
39
|
images (List[str]): The input list of images url,
|
|
39
40
|
currently not supported.
|
|
40
41
|
api_key (str, optional): The api api_key. Defaults to None.
|
|
41
|
-
sketch_image_url (str, optional): Only for wanx-sketch-to-image-v1
|
|
42
|
+
sketch_image_url (str, optional): Only for wanx-sketch-to-image-v1,
|
|
43
|
+
can be local file.
|
|
42
44
|
Defaults to None.
|
|
43
45
|
workspace (str): The dashscope workspace id.
|
|
44
46
|
extra_input (Dict): The extra input parameters.
|
|
@@ -120,17 +122,31 @@ class ImageSynthesis(BaseAsyncApi):
|
|
|
120
122
|
raise InputRequired('prompt is required!')
|
|
121
123
|
task_group, function = _get_task_group_and_task(__name__)
|
|
122
124
|
input = {PROMPT: prompt}
|
|
125
|
+
has_upload = False
|
|
123
126
|
if negative_prompt is not None:
|
|
124
127
|
input[NEGATIVE_PROMPT] = negative_prompt
|
|
125
128
|
if images is not None:
|
|
126
129
|
input[IMAGES] = images
|
|
127
130
|
if sketch_image_url is not None and sketch_image_url:
|
|
131
|
+
is_upload, sketch_image_url = check_and_upload_local(
|
|
132
|
+
model, sketch_image_url, api_key)
|
|
133
|
+
if is_upload:
|
|
134
|
+
has_upload = True
|
|
128
135
|
input['sketch_image_url'] = sketch_image_url
|
|
129
136
|
if ref_img is not None and ref_img:
|
|
137
|
+
is_upload, ref_img = check_and_upload_local(
|
|
138
|
+
model, ref_img, api_key)
|
|
139
|
+
if is_upload:
|
|
140
|
+
has_upload = True
|
|
130
141
|
input['ref_img'] = ref_img
|
|
131
142
|
if extra_input is not None and extra_input:
|
|
132
143
|
input = {**input, **extra_input}
|
|
133
144
|
|
|
145
|
+
if has_upload:
|
|
146
|
+
headers = kwargs.pop('headers', {})
|
|
147
|
+
headers['X-DashScope-OssResourceResolve'] = 'enable'
|
|
148
|
+
kwargs['headers'] = headers
|
|
149
|
+
|
|
134
150
|
response = super().async_call(
|
|
135
151
|
model=model,
|
|
136
152
|
task_group=task_group,
|
|
@@ -0,0 +1,270 @@
|
|
|
1
|
+
import asyncio
|
|
2
|
+
import os
|
|
3
|
+
from http import HTTPStatus
|
|
4
|
+
from typing import Any, Dict
|
|
5
|
+
from urllib.parse import urlparse
|
|
6
|
+
|
|
7
|
+
import aiohttp
|
|
8
|
+
|
|
9
|
+
from dashscope.api_entities.dashscope_response import DashScopeAPIResponse
|
|
10
|
+
from dashscope.client.base_api import BaseApi
|
|
11
|
+
from dashscope.common.constants import ApiProtocol, HTTPMethod
|
|
12
|
+
from dashscope.common.error import InputRequired
|
|
13
|
+
from dashscope.common.utils import _get_task_group_and_task
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
class Transcribe(BaseApi):
|
|
17
|
+
"""API for File Transcriber models.
|
|
18
|
+
|
|
19
|
+
"""
|
|
20
|
+
|
|
21
|
+
MAX_QUERY_TRY_COUNT = 3
|
|
22
|
+
|
|
23
|
+
@classmethod
|
|
24
|
+
def call(cls, model: str, file: str, **kwargs) -> DashScopeAPIResponse:
|
|
25
|
+
"""Call file transcriber model service.
|
|
26
|
+
|
|
27
|
+
Args:
|
|
28
|
+
model (str): The requested model, such as paraformer-16k-1
|
|
29
|
+
file (str): The local path or URL of the file.
|
|
30
|
+
channel_id (List[int], optional): The selected channel_id of audio file. # noqa: E501
|
|
31
|
+
|
|
32
|
+
Returns:
|
|
33
|
+
DashScopeAPIResponse: The response body.
|
|
34
|
+
|
|
35
|
+
Raises:
|
|
36
|
+
InputRequired: The file cannot be empty.
|
|
37
|
+
"""
|
|
38
|
+
loop = asyncio.new_event_loop()
|
|
39
|
+
asyncio.set_event_loop(loop)
|
|
40
|
+
return loop.run_until_complete(cls.async_call(model, file, **kwargs))
|
|
41
|
+
|
|
42
|
+
@classmethod
|
|
43
|
+
async def async_call(cls, model: str, file: str,
|
|
44
|
+
**kwargs) -> DashScopeAPIResponse:
|
|
45
|
+
"""Async call file transcriber model service.
|
|
46
|
+
|
|
47
|
+
Args:
|
|
48
|
+
model (str): The requested model, such as paraformer-16k-1
|
|
49
|
+
file (str): The local path or URL of the file.
|
|
50
|
+
channel_id (List[int], optional): The selected channel_id of audio file. # noqa: E501
|
|
51
|
+
|
|
52
|
+
Returns:
|
|
53
|
+
DashScopeAPIResponse: The response body.
|
|
54
|
+
|
|
55
|
+
Raises:
|
|
56
|
+
InputRequired: The file cannot be empty.
|
|
57
|
+
"""
|
|
58
|
+
cls.is_url = cls._validate_file(file)
|
|
59
|
+
cls.file_name = file
|
|
60
|
+
cls.model_id = model
|
|
61
|
+
|
|
62
|
+
request = {'file': cls.file_name, 'is_url': cls.is_url}
|
|
63
|
+
|
|
64
|
+
# launch transcribe request, and get task info.
|
|
65
|
+
task = await cls._async_launch_requests(request, **kwargs)
|
|
66
|
+
|
|
67
|
+
response = await cls._async_get_result(task, **kwargs)
|
|
68
|
+
|
|
69
|
+
return response
|
|
70
|
+
|
|
71
|
+
@classmethod
|
|
72
|
+
async def _async_launch_requests(cls, request: Dict[str, Any], **kwargs):
|
|
73
|
+
"""Async submit transcribe request.
|
|
74
|
+
|
|
75
|
+
Args:
|
|
76
|
+
inputs (Dict[str, Any]): The input parameters.
|
|
77
|
+
|
|
78
|
+
Returns:
|
|
79
|
+
task (Dict[str, Any]): The result of the task request.
|
|
80
|
+
"""
|
|
81
|
+
inputs = {'file_link': request['file']}
|
|
82
|
+
task = {'file': request['file']}
|
|
83
|
+
local_file = None
|
|
84
|
+
try_count: int = 0
|
|
85
|
+
response = DashScopeAPIResponse(id='', code=HTTPStatus.OK, output=None)
|
|
86
|
+
if not request['is_url']:
|
|
87
|
+
try:
|
|
88
|
+
local_file = open(inputs['file_link'], 'rb')
|
|
89
|
+
except IOError as e:
|
|
90
|
+
raise InputRequired(f'File cannot be opened. {e}')
|
|
91
|
+
|
|
92
|
+
kwargs['form'] = {'av_file': local_file}
|
|
93
|
+
|
|
94
|
+
task_name, function = _get_task_group_and_task(__name__)
|
|
95
|
+
kwargs['async_request'] = True
|
|
96
|
+
kwargs['query'] = False
|
|
97
|
+
|
|
98
|
+
while True:
|
|
99
|
+
try:
|
|
100
|
+
response = await super().async_call(
|
|
101
|
+
model=cls.model_id,
|
|
102
|
+
task_group='audio',
|
|
103
|
+
task=task_name,
|
|
104
|
+
function=function,
|
|
105
|
+
input=inputs,
|
|
106
|
+
api_protocol=ApiProtocol.HTTP,
|
|
107
|
+
http_method=HTTPMethod.POST,
|
|
108
|
+
**kwargs)
|
|
109
|
+
|
|
110
|
+
task['request_id'] = response.id
|
|
111
|
+
task['code'] = response.code
|
|
112
|
+
task['status'] = response.status
|
|
113
|
+
|
|
114
|
+
if response.code == HTTPStatus.OK and response.output is not None: # noqa: E501
|
|
115
|
+
task.update(response.output)
|
|
116
|
+
else:
|
|
117
|
+
task['message'] = response.message
|
|
118
|
+
|
|
119
|
+
break
|
|
120
|
+
|
|
121
|
+
except (asyncio.TimeoutError, aiohttp.ClientConnectorError) as e:
|
|
122
|
+
try_count += 1
|
|
123
|
+
if try_count > Transcribe.MAX_QUERY_TRY_COUNT:
|
|
124
|
+
task['request_id'] = response.id
|
|
125
|
+
task['code'] = HTTPStatus.REQUEST_TIMEOUT
|
|
126
|
+
task['status'] = response.status
|
|
127
|
+
task['message'] = str(e)
|
|
128
|
+
break
|
|
129
|
+
else:
|
|
130
|
+
await asyncio.sleep(2)
|
|
131
|
+
continue
|
|
132
|
+
except Exception as e:
|
|
133
|
+
task['request_id'] = response.id
|
|
134
|
+
task['code'] = HTTPStatus.BAD_REQUEST
|
|
135
|
+
task['status'] = response.status
|
|
136
|
+
task['message'] = str(e)
|
|
137
|
+
break
|
|
138
|
+
|
|
139
|
+
if local_file is not None:
|
|
140
|
+
local_file.close()
|
|
141
|
+
|
|
142
|
+
return task
|
|
143
|
+
|
|
144
|
+
@classmethod
|
|
145
|
+
async def _async_get_result(cls, task, **kwargs):
|
|
146
|
+
"""Async get transcribe result by polling.
|
|
147
|
+
|
|
148
|
+
Args:
|
|
149
|
+
task (Dict[str, Any]): The info of the task request.
|
|
150
|
+
|
|
151
|
+
Returns:
|
|
152
|
+
DashScopeAPIResponse: The response body.
|
|
153
|
+
"""
|
|
154
|
+
request = task
|
|
155
|
+
responses = []
|
|
156
|
+
item = {}
|
|
157
|
+
response = DashScopeAPIResponse(id=request['request_id'],
|
|
158
|
+
code=request['code'],
|
|
159
|
+
output=None,
|
|
160
|
+
status=request['status'],
|
|
161
|
+
message=request['message'])
|
|
162
|
+
|
|
163
|
+
if request['code'] != HTTPStatus.OK:
|
|
164
|
+
item['file'] = request['file']
|
|
165
|
+
item['request_id'] = response.id
|
|
166
|
+
item['code'] = request['code']
|
|
167
|
+
item['status'] = request['status']
|
|
168
|
+
item['message'] = request['message']
|
|
169
|
+
responses.append(item)
|
|
170
|
+
else:
|
|
171
|
+
try_count: int = 0
|
|
172
|
+
while True:
|
|
173
|
+
item['file'] = request['file']
|
|
174
|
+
item['task_Id'] = request['task_id']
|
|
175
|
+
|
|
176
|
+
try:
|
|
177
|
+
inputs = {}
|
|
178
|
+
inputs['task_Id'] = request['task_id']
|
|
179
|
+
kwargs['async_request'] = True
|
|
180
|
+
kwargs['query'] = True
|
|
181
|
+
|
|
182
|
+
response = await super().async_call(
|
|
183
|
+
model=cls.model_id,
|
|
184
|
+
task_group=None,
|
|
185
|
+
task='tasks',
|
|
186
|
+
input=inputs,
|
|
187
|
+
task_id=inputs['task_Id'],
|
|
188
|
+
api_protocol=ApiProtocol.HTTP,
|
|
189
|
+
http_method=HTTPMethod.GET,
|
|
190
|
+
**kwargs)
|
|
191
|
+
except (asyncio.TimeoutError,
|
|
192
|
+
aiohttp.ClientConnectorError) as e:
|
|
193
|
+
try_count += 1
|
|
194
|
+
if try_count > Transcribe.MAX_QUERY_TRY_COUNT:
|
|
195
|
+
item['request_id'] = response.id
|
|
196
|
+
item['code'] = HTTPStatus.REQUEST_TIMEOUT
|
|
197
|
+
item['status'] = response.status
|
|
198
|
+
item['message'] = str(e)
|
|
199
|
+
responses.append(item)
|
|
200
|
+
break
|
|
201
|
+
else:
|
|
202
|
+
await asyncio.sleep(2)
|
|
203
|
+
continue
|
|
204
|
+
except Exception as e:
|
|
205
|
+
item['request_id'] = response.id
|
|
206
|
+
item['code'] = HTTPStatus.BAD_REQUEST
|
|
207
|
+
item['status'] = response.status
|
|
208
|
+
item['message'] = str(e)
|
|
209
|
+
responses.append(item)
|
|
210
|
+
break
|
|
211
|
+
|
|
212
|
+
try_count = 0
|
|
213
|
+
item['request_id'] = response.id
|
|
214
|
+
item['code'] = response.code
|
|
215
|
+
item['status'] = response.status
|
|
216
|
+
|
|
217
|
+
if response.code == HTTPStatus.OK:
|
|
218
|
+
if 'task_status' in response.output:
|
|
219
|
+
task_status = response.output['task_status']
|
|
220
|
+
if task_status == 'QUEUING' or task_status == 'PROCESSING': # noqa: E501
|
|
221
|
+
await asyncio.sleep(2)
|
|
222
|
+
continue
|
|
223
|
+
|
|
224
|
+
item.update(response.output)
|
|
225
|
+
else:
|
|
226
|
+
item['message'] = response.message
|
|
227
|
+
|
|
228
|
+
responses.append(item)
|
|
229
|
+
break
|
|
230
|
+
|
|
231
|
+
output = {}
|
|
232
|
+
output['results'] = responses
|
|
233
|
+
|
|
234
|
+
return DashScopeAPIResponse(id=response.id,
|
|
235
|
+
code=response.code,
|
|
236
|
+
status=response.status,
|
|
237
|
+
message=response.message,
|
|
238
|
+
output=output)
|
|
239
|
+
|
|
240
|
+
@classmethod
|
|
241
|
+
def _validate_file(cls, file: str):
|
|
242
|
+
"""Check the validity of the file
|
|
243
|
+
and whether the file is a URL or a local path.
|
|
244
|
+
|
|
245
|
+
Args:
|
|
246
|
+
file (str): The local path or URL of the file.
|
|
247
|
+
|
|
248
|
+
Returns:
|
|
249
|
+
bool: Whether the file is a URL.
|
|
250
|
+
"""
|
|
251
|
+
if file is None or len(file) == 0:
|
|
252
|
+
raise InputRequired(
|
|
253
|
+
'Input an illegal file, please ensure that the file type is a local path or URL!' # noqa: *
|
|
254
|
+
)
|
|
255
|
+
|
|
256
|
+
if os.path.isfile(file):
|
|
257
|
+
return False
|
|
258
|
+
else:
|
|
259
|
+
result = urlparse(file)
|
|
260
|
+
if result.scheme is not None and len(result.scheme) > 0:
|
|
261
|
+
if result.scheme != 'http' and result.scheme != 'https':
|
|
262
|
+
raise InputRequired(
|
|
263
|
+
f'The URL protocol({result.scheme}) of file({file}) is not http or https.' # noqa: *
|
|
264
|
+
)
|
|
265
|
+
else:
|
|
266
|
+
raise InputRequired(
|
|
267
|
+
f'Input an illegal file({file}), maybe the file is inexistent.' # noqa: *
|
|
268
|
+
)
|
|
269
|
+
|
|
270
|
+
return True
|
dashscope/threads/runs/runs.py
CHANGED
|
@@ -386,12 +386,6 @@ class Runs(CreateMixin, CancelMixin, ListObjectMixin, GetStatusMixin,
|
|
|
386
386
|
thread_id=thread_id,
|
|
387
387
|
workspace=workspace,
|
|
388
388
|
api_key=api_key)
|
|
389
|
-
import json
|
|
390
|
-
print(
|
|
391
|
-
json.dumps(run,
|
|
392
|
-
default=lambda o: o.__dict__,
|
|
393
|
-
sort_keys=True,
|
|
394
|
-
indent=4))
|
|
395
389
|
if run.status_code == HTTPStatus.OK:
|
|
396
390
|
if hasattr(run, 'status'):
|
|
397
391
|
if run.status in [
|
dashscope/utils/oss_utils.py
CHANGED
|
@@ -121,8 +121,51 @@ def upload_file(model: str, upload_path: str, api_key: str):
|
|
|
121
121
|
return None
|
|
122
122
|
|
|
123
123
|
|
|
124
|
+
def check_and_upload_local(model: str, content: str, api_key: str):
|
|
125
|
+
"""Check the content is local file path, upload and return the url
|
|
126
|
+
|
|
127
|
+
Args:
|
|
128
|
+
model (str): Which model to upload.
|
|
129
|
+
content (str): The content.
|
|
130
|
+
api_key (_type_): The api key.
|
|
131
|
+
|
|
132
|
+
Raises:
|
|
133
|
+
UploadFileException: Upload failed.
|
|
134
|
+
InvalidInput: The input is invalid
|
|
135
|
+
|
|
136
|
+
Returns:
|
|
137
|
+
_type_: if upload return True and file_url otherwise False, origin content.
|
|
138
|
+
"""
|
|
139
|
+
if content.startswith(FILE_PATH_SCHEMA):
|
|
140
|
+
parse_result = urlparse(content)
|
|
141
|
+
if parse_result.netloc:
|
|
142
|
+
file_path = parse_result.netloc + unquote_plus(parse_result.path)
|
|
143
|
+
else:
|
|
144
|
+
file_path = unquote_plus(parse_result.path)
|
|
145
|
+
if os.path.exists(file_path):
|
|
146
|
+
file_url = OssUtils.upload(model=model,
|
|
147
|
+
file_path=file_path,
|
|
148
|
+
api_key=api_key)
|
|
149
|
+
if file_url is None:
|
|
150
|
+
raise UploadFileException('Uploading file: %s failed' %
|
|
151
|
+
content)
|
|
152
|
+
return True, file_url
|
|
153
|
+
else:
|
|
154
|
+
raise InvalidInput('The file: %s is not exists!' % file_path)
|
|
155
|
+
elif not content.startswith('http'):
|
|
156
|
+
if os.path.exists(content):
|
|
157
|
+
file_url = OssUtils.upload(model=model,
|
|
158
|
+
file_path=content,
|
|
159
|
+
api_key=api_key)
|
|
160
|
+
if file_url is None:
|
|
161
|
+
raise UploadFileException('Uploading file: %s failed' %
|
|
162
|
+
content)
|
|
163
|
+
return True, file_url
|
|
164
|
+
return False, content
|
|
165
|
+
|
|
166
|
+
|
|
124
167
|
def check_and_upload(model, elem: dict, api_key):
|
|
125
|
-
|
|
168
|
+
has_upload = False
|
|
126
169
|
for key, content in elem.items():
|
|
127
170
|
# support video:[images] for qwen2-vl
|
|
128
171
|
is_list = isinstance(content, list)
|
|
@@ -130,38 +173,14 @@ def check_and_upload(model, elem: dict, api_key):
|
|
|
130
173
|
|
|
131
174
|
if key in ['image', 'video', 'audio', 'text']:
|
|
132
175
|
for i, content in enumerate(contents):
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
else:
|
|
139
|
-
file_path = unquote_plus(parse_result.path)
|
|
140
|
-
if os.path.exists(file_path):
|
|
141
|
-
file_url = OssUtils.upload(model=model,
|
|
142
|
-
file_path=file_path,
|
|
143
|
-
api_key=api_key)
|
|
144
|
-
if file_url is None:
|
|
145
|
-
raise UploadFileException(
|
|
146
|
-
'Uploading file: %s failed' % content)
|
|
147
|
-
contents[i] = file_url
|
|
148
|
-
is_upload = True
|
|
149
|
-
else:
|
|
150
|
-
raise InvalidInput('The file: %s is not exists!' %
|
|
151
|
-
file_path)
|
|
152
|
-
elif not content.startswith('http'):
|
|
153
|
-
if os.path.exists(content):
|
|
154
|
-
file_url = OssUtils.upload(model=model,
|
|
155
|
-
file_path=content,
|
|
156
|
-
api_key=api_key)
|
|
157
|
-
if file_url is None:
|
|
158
|
-
raise UploadFileException(
|
|
159
|
-
'Uploading file: %s failed' % content)
|
|
160
|
-
contents[i] = file_url
|
|
161
|
-
is_upload = True
|
|
176
|
+
is_upload, file_url = check_and_upload_local(
|
|
177
|
+
model, content, api_key)
|
|
178
|
+
if is_upload:
|
|
179
|
+
contents[i] = file_url
|
|
180
|
+
has_upload = True
|
|
162
181
|
elem[key] = contents if is_list else contents[0]
|
|
163
182
|
|
|
164
|
-
return
|
|
183
|
+
return has_upload
|
|
165
184
|
|
|
166
185
|
|
|
167
186
|
def preprocess_message_element(model: str, elem: List[dict], api_key: str):
|
dashscope/version.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
__version__ = '1.20.
|
|
1
|
+
__version__ = '1.20.9'
|
|
@@ -6,12 +6,12 @@ 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=rW_OBoIurR44z0-gRCL1GiR4KuiexcDQ6XLZw1HMwZs,23
|
|
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
|
|
13
13
|
dashscope/aigc/generation.py,sha256=53oMCmN5ZbqeqAsKxmdunXlRh-XP8ZtnA7hB2id4Koo,17897
|
|
14
|
-
dashscope/aigc/image_synthesis.py,sha256=
|
|
14
|
+
dashscope/aigc/image_synthesis.py,sha256=UWHW-nvf7_aDZKr4uZDusVHjqWr9TSZjCsZI8YSWaek,11052
|
|
15
15
|
dashscope/aigc/multimodal_conversation.py,sha256=SlNnnsUPV19gdx8fYJAtsMFWPNGY6vhk5IGHZ5ZczpI,5369
|
|
16
16
|
dashscope/api_entities/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
17
17
|
dashscope/api_entities/aiohttp_request.py,sha256=aE3AeWba8Ig_xHMYjrAdkq0N61l_L2VFTG6HYh912X0,10229
|
|
@@ -32,6 +32,7 @@ dashscope/audio/__init__.py,sha256=-ZRxrK-gV4QsUtlThIT-XwqB6vmyEsnhxIxdLmhCUuc,6
|
|
|
32
32
|
dashscope/audio/asr/__init__.py,sha256=-s180qWn_JPSpCo1q0aDJJ5HQ3zTzD4z5yUwsRqH4aU,275
|
|
33
33
|
dashscope/audio/asr/asr_phrase_manager.py,sha256=EjtbI3zz9UQGS1qv6Yb4zzEMj4OJJVXmwkqZyIrzvEA,7642
|
|
34
34
|
dashscope/audio/asr/recognition.py,sha256=cEooE3wGf8kKfJIVbaXEytl5X6F0hMsLe8g4Bj9Fn4w,18768
|
|
35
|
+
dashscope/audio/asr/transcribe.py,sha256=HfZYpvpVfvGRAIIIzX65Af33E6vsIFGd_qqhQ8LaNcM,9651
|
|
35
36
|
dashscope/audio/asr/transcription.py,sha256=1WAg9WH89antVzRYEKXb5LQP9xylZmX4YKp7v5oMYjY,8931
|
|
36
37
|
dashscope/audio/tts/__init__.py,sha256=fbnieZX9yNFNh5BsxLpLXb63jlxzxrdCJakV3ignjlQ,194
|
|
37
38
|
dashscope/audio/tts/speech_synthesizer.py,sha256=dnKx9FDDdO_ETHAjhK8zaMVaH6SfoTtN5YxXXqgY1JA,7571
|
|
@@ -73,7 +74,7 @@ dashscope/threads/messages/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJ
|
|
|
73
74
|
dashscope/threads/messages/files.py,sha256=wi0nJ2zsPWOw2Jn-ZkxA3URZBIrkGxqM_uAPfXY1xv0,3820
|
|
74
75
|
dashscope/threads/messages/messages.py,sha256=Zjmyf3rT1XSdn33hPrqOY6DSWUVL7pDEapG03FREPV8,8419
|
|
75
76
|
dashscope/threads/runs/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
76
|
-
dashscope/threads/runs/runs.py,sha256=
|
|
77
|
+
dashscope/threads/runs/runs.py,sha256=ux4VH_lxxHCw1XOqngzmsm9kwTR3jS0wX27xoAswHlY,18549
|
|
77
78
|
dashscope/threads/runs/steps.py,sha256=pLNR-5g7zvYkvC-p4sZGVgYHd1jqxBerM2WFyB358H8,3638
|
|
78
79
|
dashscope/tokenizers/__init__.py,sha256=Oy5FMT37Non6e1YxdHQ89U93Dy3CG1Ez0gBa771KZo0,200
|
|
79
80
|
dashscope/tokenizers/qwen_tokenizer.py,sha256=dCnT9-9NrqPS85bEhjlPULUfDADVRhlleYwM_ILgCeI,4111
|
|
@@ -81,10 +82,10 @@ dashscope/tokenizers/tokenization.py,sha256=G6cSEmVLr3pjXUC3EOU9ot8MYxNnOQ4wOB2m
|
|
|
81
82
|
dashscope/tokenizers/tokenizer.py,sha256=y6P91qTCYo__pEx_0VHAcj9YECfbUdRqZU1fdGTjF4o,1154
|
|
82
83
|
dashscope/tokenizers/tokenizer_base.py,sha256=REDhzRyDT13iequ61-a6_KcTy0GFKlihQve5HkyoyRs,656
|
|
83
84
|
dashscope/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
84
|
-
dashscope/utils/oss_utils.py,sha256=
|
|
85
|
-
dashscope-1.20.
|
|
86
|
-
dashscope-1.20.
|
|
87
|
-
dashscope-1.20.
|
|
88
|
-
dashscope-1.20.
|
|
89
|
-
dashscope-1.20.
|
|
90
|
-
dashscope-1.20.
|
|
85
|
+
dashscope/utils/oss_utils.py,sha256=7vZ2Lypxwiit8VcAqAvr3cCyhVfaLapDiNuF-H3ZCD4,7332
|
|
86
|
+
dashscope-1.20.9.dist-info/LICENSE,sha256=Izp5L1DF1Mbza6qojkqNNWlE_mYLnr4rmzx2EBF8YFw,11413
|
|
87
|
+
dashscope-1.20.9.dist-info/METADATA,sha256=n0YxcRTLCxVG5CnYICYV2ysSWYQMCYeG65bc7xsdYig,6641
|
|
88
|
+
dashscope-1.20.9.dist-info/WHEEL,sha256=G16H4A3IeoQmnOrYV4ueZGKSjhipXx8zc8nu9FGlvMA,92
|
|
89
|
+
dashscope-1.20.9.dist-info/entry_points.txt,sha256=raEp5dOuj8whJ7yqZlDM8WQ5p2RfnGrGNo0QLQEnatY,50
|
|
90
|
+
dashscope-1.20.9.dist-info/top_level.txt,sha256=woqavFJK9zas5xTqynmALqOtlafghjsk63Xk86powTU,10
|
|
91
|
+
dashscope-1.20.9.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|