dashscope 1.23.0__py3-none-any.whl → 1.23.1__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/audio/asr/recognition.py +3 -0
- dashscope/embeddings/batch_text_embedding_response.py +1 -1
- dashscope/version.py +1 -1
- {dashscope-1.23.0.dist-info → dashscope-1.23.1.dist-info}/METADATA +1 -1
- {dashscope-1.23.0.dist-info → dashscope-1.23.1.dist-info}/RECORD +9 -9
- {dashscope-1.23.0.dist-info → dashscope-1.23.1.dist-info}/LICENSE +0 -0
- {dashscope-1.23.0.dist-info → dashscope-1.23.1.dist-info}/WHEEL +0 -0
- {dashscope-1.23.0.dist-info → dashscope-1.23.1.dist-info}/entry_points.txt +0 -0
- {dashscope-1.23.0.dist-info → dashscope-1.23.1.dist-info}/top_level.txt +0 -0
|
@@ -203,6 +203,9 @@ class Recognition(BaseApi):
|
|
|
203
203
|
logger.debug('first package delay {}'.format(
|
|
204
204
|
self.get_first_package_delay()))
|
|
205
205
|
sentence = part.output['sentence']
|
|
206
|
+
if 'heartbeat' in sentence and sentence['heartbeat'] == True:
|
|
207
|
+
logger.debug('recv heartbeat')
|
|
208
|
+
continue
|
|
206
209
|
logger.debug(
|
|
207
210
|
'Recv Result [rid:{}]:{}, isEnd: {}'.format(
|
|
208
211
|
part.request_id, sentence,
|
|
@@ -30,7 +30,7 @@ class BatchTextEmbeddingOutput(DictMixin):
|
|
|
30
30
|
class BatchTextEmbeddingUsage(DictMixin):
|
|
31
31
|
total_tokens: int
|
|
32
32
|
|
|
33
|
-
def __init__(self, total_tokens: int, **kwargs):
|
|
33
|
+
def __init__(self, total_tokens: int=None, **kwargs):
|
|
34
34
|
super().__init__(total_tokens=total_tokens, **kwargs)
|
|
35
35
|
|
|
36
36
|
|
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=h8mNfC3pOSDtQBGgRx7xUV5hh-9lzeH_p2wEDLSH2lU,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
|
|
@@ -31,7 +31,7 @@ dashscope/assistants/files.py,sha256=Ol2h7L2vNV8kgWqum2B-3B9vtLEHB_2KWt0K7e96Bmg
|
|
|
31
31
|
dashscope/audio/__init__.py,sha256=RKw-A1PLA5F4jiXI3AnuRSYeHFzQl2OW2ZGW6xyHS1Q,132
|
|
32
32
|
dashscope/audio/asr/__init__.py,sha256=JoCenJAUVOQXPmAn1toKeFYCfc8BqNn0NKpqjuJvNJc,1055
|
|
33
33
|
dashscope/audio/asr/asr_phrase_manager.py,sha256=vHOLExaKCtjedkihIu7gyfQyarR9rN5JZn79LvlCpco,7693
|
|
34
|
-
dashscope/audio/asr/recognition.py,sha256=
|
|
34
|
+
dashscope/audio/asr/recognition.py,sha256=b_aAPvOKjpWdSiYhM_hp30sZ06QdmNBSDJwhiv78kHM,20932
|
|
35
35
|
dashscope/audio/asr/transcription.py,sha256=lYzPjh7jJQwjMoxx8-AY0YCMBKNKO0bi7xd5tZGSHPc,9094
|
|
36
36
|
dashscope/audio/asr/translation_recognizer.py,sha256=JgBmhkIl_kqH8uVwop6Fba5KlXccftKFrhaygN9PKjU,39680
|
|
37
37
|
dashscope/audio/asr/vocabulary.py,sha256=TEmN4JqXFpg9c1o3BUyj-rA7L58T85iURukJIupEiv0,6528
|
|
@@ -59,7 +59,7 @@ dashscope/customize/deployments.py,sha256=2BxjgukuXe9bkl1VOvvKky0NxkcXVL3xk07Uus
|
|
|
59
59
|
dashscope/customize/finetunes.py,sha256=AL_kGTJXMvM2ej-EKsLLd1dUphPQdVTefFVCSVH-C-w,8362
|
|
60
60
|
dashscope/embeddings/__init__.py,sha256=XQ7vKr8oZM2CmdOduE53BWy6_Qpn9xUPkma64yw8Gws,291
|
|
61
61
|
dashscope/embeddings/batch_text_embedding.py,sha256=lVhvTS8McYfXuqt_8CmmhA6bPqD0nrGv965kjYG_j0E,8842
|
|
62
|
-
dashscope/embeddings/batch_text_embedding_response.py,sha256=
|
|
62
|
+
dashscope/embeddings/batch_text_embedding_response.py,sha256=ZfkJMUq8GRsFA6XUTsiAsIySqGJH-VPi2P9Ba1KTU-s,2056
|
|
63
63
|
dashscope/embeddings/multimodal_embedding.py,sha256=NwjQsdkKgUz51ozGjqFDzVlLcZjY0m1JNdH1EyAY0a4,4109
|
|
64
64
|
dashscope/embeddings/text_embedding.py,sha256=4W1V-Ggj0WJhY5MdP2xoUTteXlWk8TUtI6y2gRUVCUk,2060
|
|
65
65
|
dashscope/io/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -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.1.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
|
91
|
+
dashscope-1.23.1.dist-info/METADATA,sha256=1H-smB0IaGLj1Ldw02AQM9Lke56bJ6RzuxikJwBhmz0,6798
|
|
92
|
+
dashscope-1.23.1.dist-info/WHEEL,sha256=G16H4A3IeoQmnOrYV4ueZGKSjhipXx8zc8nu9FGlvMA,92
|
|
93
|
+
dashscope-1.23.1.dist-info/entry_points.txt,sha256=raEp5dOuj8whJ7yqZlDM8WQ5p2RfnGrGNo0QLQEnatY,50
|
|
94
|
+
dashscope-1.23.1.dist-info/top_level.txt,sha256=woqavFJK9zas5xTqynmALqOtlafghjsk63Xk86powTU,10
|
|
95
|
+
dashscope-1.23.1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|