chore: 添加虚拟环境到仓库

- 添加 backend_service/venv 虚拟环境
- 包含所有Python依赖包
- 注意:虚拟环境约393MB,包含12655个文件
This commit is contained in:
2025-12-03 10:19:25 +08:00
parent a6c2027caa
commit c4f851d387
12655 changed files with 3009376 additions and 0 deletions

View File

@@ -0,0 +1,239 @@
Metadata-Version: 2.4
Name: dashscope
Version: 1.25.1
Summary: dashscope client sdk library
Home-page: https://dashscope.aliyun.com/
Author: Alibaba Cloud
Author-email: dashscope@alibabacloud.com
License: Apache 2.0
Platform: Posix; MacOS X; Windows
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Requires-Python: >=3.8.0
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: aiohttp
Requires-Dist: requests
Requires-Dist: websocket-client
Requires-Dist: cryptography
Requires-Dist: certifi
Provides-Extra: tokenizer
Requires-Dist: tiktoken; extra == "tokenizer"
Dynamic: author
Dynamic: author-email
Dynamic: classifier
Dynamic: description
Dynamic: description-content-type
Dynamic: home-page
Dynamic: license
Dynamic: license-file
Dynamic: platform
Dynamic: provides-extra
Dynamic: requires-dist
Dynamic: requires-python
Dynamic: summary
<h4 align="center">
<p>
<b>English</b>
<p>
</h4>
</div>
# DashScope Python Library
## Installation
To install the DashScope Python SDK, simply run:
```shell
pip install dashscope
```
If you clone the code from github, you can install from source by running:
```shell
pip install -e .
```
To use tokenizer in local mode without downloading any files, run:
```shell
pip install dashscope[tokenizer]
```
## QuickStart
You can use `Generation` api to call model qwen-turbo(通义千问).
```python
from http import HTTPStatus
import dashscope
from dashscope import Generation
dashscope.api_key = 'YOUR-DASHSCOPE-API-KEY'
responses = Generation.call(model=Generation.Models.qwen_turbo,
prompt='今天天气好吗?')
if responses.status_code == HTTPStatus.OK:
print('Result is: %s' % responses.output)
else:
print('Failed request_id: %s, status_code: %s, code: %s, message:%s' %
(responses.request_id, responses.status_code, responses.code,
responses.message))
```
## API Key Authentication
The SDK uses API key for authentication. Please refer to [official documentation for alibabacloud china](https://www.alibabacloud.com/help/en/model-studio/) and [official documentation for alibabacloud international](https://www.alibabacloud.com/help/en/model-studio/) regarding how to obtain your api-key.
### Using the API Key
1. Set the API key via code
```python
import dashscope
dashscope.api_key = 'YOUR-DASHSCOPE-API-KEY'
# Or specify the API key file path via code
# dashscope.api_key_file_path='~/.dashscope/api_key'
```
2. Set the API key via environment variables
a. Set the API key directly using the environment variable below
```shell
export DASHSCOPE_API_KEY='YOUR-DASHSCOPE-API-KEY'
```
b. Specify the API key file path via an environment variable
```shell
export DASHSCOPE_API_KEY_FILE_PATH='~/.dashscope/api_key'
```
3. Save the API key to a file
```python
from dashscope import save_api_key
save_api_key(api_key='YOUR-DASHSCOPE-API-KEY',
api_key_file_path='api_key_file_location or (None, will save to default location "~/.dashscope/api_key"')
```
## Sample Code
`call` function provides synchronous call, the function call will return when computation is done on the server side.
```python
from http import HTTPStatus
from dashscope import Generation
# export DASHSCOPE_API_KEY='YOUR-DASHSCOPE-API-KEY' in environment
def sync_dashscope_sample():
responses = Generation.call(
model=Generation.Models.qwen_turbo,
prompt='Is the weather good today?')
if responses.status_code == HTTPStatus.OK:
print('Result is: %s'%responses.output)
else:
print('Code: %s, status_code: %s, code: %s, message: %s'%(responses.status_code,
responses.code,
responses.message))
if __name__ == '__main__':
sync_dashscope_sample()
```
For requests with longer processing times, you can obtain partial results before the full output is generated. Set the **stream** parameter to **True**. In this case, the results will be returned in batches, and the current output mode is incremental (output will overwrite the previous content). When the output is in stream mode, the interface returns a generator, and you need to iterate through the generator to get the results. Each output contains partial data for streaming, and the last output contains the final generated result.
Example with simple streaming:
```python
from http import HTTPStatus
from dashscope import Generation
def sample_sync_call_stream():
prompt_text = 'Give me a recipe using carrots, potatoes, and eggplants'
response_generator = Generation.call(
model=Generation.Models.qwen_turbo,
prompt=prompt_text,
stream=True,
max_length=512,
top_p=0.8)
for resp in response_generator: # Iterate through the streaming output results
if resp.status_code == HTTPStatus.OK:
print(resp.output)
else:
print('Request failed, message: %s'%resp.message)
if __name__ == '__main__':
sample_sync_call_stream()
```
#### Stream with Messages
```python
from http import HTTPStatus
from dashscope import Generation
from dashscope.api_entities.dashscope_response import Role
def stream_with_messages():
messages = [{'role': Role.SYSTEM, 'content': 'You are a helpful assistant.'},
{'role': Role.USER, 'content': '如何做西红柿炖牛腩?'}]
responses = Generation.call(
Generation.Models.qwen_turbo,
messages=messages,
result_format='message', # set the result to be "message" format.
stream=True,
)
for response in responses:
if response.status_code == HTTPStatus.OK:
print(response)
else:
print('Request id: %s, Status code: %s, error code: %s, error message: %s' % (
response.request_id, response.status_code,
response.code, response.message
))
if __name__ == '__main__':
stream_with_messages()
```
## Logging
To output Dashscope logs, you need to configure the logger.
```shell
export DASHSCOPE_LOGGING_LEVEL='info'
```
## Output
The output contains the following fields:
```
request_id (str): The request id.
status_code (int): HTTP status code, 200 indicates that the
request was successful, others indicate an error。
code (str): Error code if error occurs, otherwise empty str.
message (str): Set to error message on error.
output (Any): The request output.
usage (Any): The request usage information.
```
## Error Handling
Currently, errors are thrown as exceptions.
## Contributing
Coming soon.
## License
This project is licensed under the Apache License (Version 2.0).

View File

@@ -0,0 +1,215 @@
../../../bin/dashscope,sha256=6N-Mxp-8qfw_Ms4UbojWNsJpixUfFNkz1D33mj2-QbQ,231
dashscope-1.25.1.dist-info/INSTALLER,sha256=zuuue4knoyJ-UwPPXg8fezS7VCrXJQrAP7zeNuwvFQg,4
dashscope-1.25.1.dist-info/METADATA,sha256=U7BMf2GzQQtexAsdjHXZfmbSUmfIAeQCio55H_uyTtc,7146
dashscope-1.25.1.dist-info/RECORD,,
dashscope-1.25.1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
dashscope-1.25.1.dist-info/entry_points.txt,sha256=e9C3sOf9zDYL0O5ROEGX6FT8w-QK_kaGRWmPZDHAFys,49
dashscope-1.25.1.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
dashscope-1.25.1.dist-info/top_level.txt,sha256=woqavFJK9zas5xTqynmALqOtlafghjsk63Xk86powTU,10
dashscope/__init__.py,sha256=96J137Im9Ii9uxfVOOYkZDJNZXF1sEbcH4-QXFr4xEw,3172
dashscope/__pycache__/__init__.cpython-313.pyc,,
dashscope/__pycache__/cli.cpython-313.pyc,,
dashscope/__pycache__/files.cpython-313.pyc,,
dashscope/__pycache__/model.cpython-313.pyc,,
dashscope/__pycache__/models.cpython-313.pyc,,
dashscope/__pycache__/version.cpython-313.pyc,,
dashscope/aigc/__init__.py,sha256=kYvYEoRK-NUHyMWpBDNQBz4fVA__uOhHRK2kDTBaWgk,617
dashscope/aigc/__pycache__/__init__.cpython-313.pyc,,
dashscope/aigc/__pycache__/chat_completion.cpython-313.pyc,,
dashscope/aigc/__pycache__/code_generation.cpython-313.pyc,,
dashscope/aigc/__pycache__/conversation.cpython-313.pyc,,
dashscope/aigc/__pycache__/generation.cpython-313.pyc,,
dashscope/aigc/__pycache__/image_synthesis.cpython-313.pyc,,
dashscope/aigc/__pycache__/multimodal_conversation.cpython-313.pyc,,
dashscope/aigc/__pycache__/video_synthesis.cpython-313.pyc,,
dashscope/aigc/chat_completion.py,sha256=ONlyyssIbfaKKcFo7cEKhHx5OCF2XX810HFzIExW1ho,14813
dashscope/aigc/code_generation.py,sha256=p_mxDKJLQMW0IjFD46JRlZuEZCRESSVKEfLlAevBtqw,10936
dashscope/aigc/conversation.py,sha256=95xEEY4ThZJysj5zy3aMw7ql9KLJVfD_1iHv9QZ17Ew,14282
dashscope/aigc/generation.py,sha256=jyQzNEmcGOK4o9OjxVAULeGhN-tNcn3npQGbQI87okk,21563
dashscope/aigc/image_synthesis.py,sha256=sKKKmc11nwNSBEuhLb6ymUr5pxVAAl87uB-ALuh0dLE,28851
dashscope/aigc/multimodal_conversation.py,sha256=Xn0nfV7kUnMVWXEjPnvIAFwnCFVZqnAx4NyMDJTRB3s,16195
dashscope/aigc/video_synthesis.py,sha256=Wps8ZE3rDRFoebh7w1uvLNSyKHKk1BCTXmq7ryG9iPQ,24885
dashscope/api_entities/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
dashscope/api_entities/__pycache__/__init__.cpython-313.pyc,,
dashscope/api_entities/__pycache__/aiohttp_request.cpython-313.pyc,,
dashscope/api_entities/__pycache__/api_request_data.cpython-313.pyc,,
dashscope/api_entities/__pycache__/api_request_factory.cpython-313.pyc,,
dashscope/api_entities/__pycache__/base_request.cpython-313.pyc,,
dashscope/api_entities/__pycache__/chat_completion_types.cpython-313.pyc,,
dashscope/api_entities/__pycache__/dashscope_response.cpython-313.pyc,,
dashscope/api_entities/__pycache__/encryption.cpython-313.pyc,,
dashscope/api_entities/__pycache__/http_request.cpython-313.pyc,,
dashscope/api_entities/__pycache__/websocket_request.cpython-313.pyc,,
dashscope/api_entities/aiohttp_request.py,sha256=6xHh31lURgMtBRcUui0Sl-Pxh_uISkEV2bUSoHjdWlc,10452
dashscope/api_entities/api_request_data.py,sha256=04rpYPNK1HkT3iTPJmZpquH621xcBbe8R8EGrDJSLt0,5514
dashscope/api_entities/api_request_factory.py,sha256=D8ti5JW-odrhGUZUBe4c9XOqOkIo-ScUU2-bE8X2Uaw,5936
dashscope/api_entities/base_request.py,sha256=FKBJNGXnBNKV5j-B_h1yXomsM843I0ccJRZNH2GbejY,1357
dashscope/api_entities/chat_completion_types.py,sha256=1WMWPszhM3HaJBVz-ZXx-El4D8-RfVUL3ym65xsDRLk,11435
dashscope/api_entities/dashscope_response.py,sha256=31guU41ePkLyFsVVN-1WODXdOHiURzRyxxhrUmX9dGM,22835
dashscope/api_entities/encryption.py,sha256=rUCZx3wwVvS5oyKXEeWgyWPxM8Y5d4AaVdgxLhizBqA,5517
dashscope/api_entities/http_request.py,sha256=dlSzY8R2OT2uThNznq1S0voNzGYITY6XIYlP149fhXI,16656
dashscope/api_entities/websocket_request.py,sha256=-Q0pn-DNaXl9dBo2kQSDYX4gD4AF0Rs3bNw2_m980eY,16197
dashscope/app/__init__.py,sha256=xvSvU8O7m5u7vgIvJXTJektJZxmjT2Rpt_YwePH88XE,113
dashscope/app/__pycache__/__init__.cpython-313.pyc,,
dashscope/app/__pycache__/application.cpython-313.pyc,,
dashscope/app/__pycache__/application_response.cpython-313.pyc,,
dashscope/app/application.py,sha256=79wnnvAAjWBJ8TtMUN6-B4FHBV7twkAOzhXg7yDJQxE,9620
dashscope/app/application_response.py,sha256=XO6iOZlt7OXulvFS71zwAq_HXYkn3HLJdAimTWPP0B4,8568
dashscope/assistants/__init__.py,sha256=hjCTuv13yFaXyUqlexAU-RaO0Ahq3P7VK9_LkSbkGVU,434
dashscope/assistants/__pycache__/__init__.cpython-313.pyc,,
dashscope/assistants/__pycache__/assistant_types.cpython-313.pyc,,
dashscope/assistants/__pycache__/assistants.cpython-313.pyc,,
dashscope/assistants/__pycache__/files.cpython-313.pyc,,
dashscope/assistants/assistant_types.py,sha256=qVDSy0xcsMq_sAD7t_ppoGLBN2QDiHqarAAlW_CDDtY,4478
dashscope/assistants/assistants.py,sha256=X6wUEFkpMwQBkjcBaraux0-gu6nwEWD0BUGfygLAE0A,12531
dashscope/assistants/files.py,sha256=CaQkZK7TFeMaAxtqMi-1rBVJrlKXdehZG9plNZ6zslo,7060
dashscope/audio/__init__.py,sha256=7e3ejVsDJxEbMHN-9E0nEDfU-CnnQ4JgtgUxqNs0IG4,192
dashscope/audio/__pycache__/__init__.cpython-313.pyc,,
dashscope/audio/asr/__init__.py,sha256=JoCenJAUVOQXPmAn1toKeFYCfc8BqNn0NKpqjuJvNJc,1055
dashscope/audio/asr/__pycache__/__init__.cpython-313.pyc,,
dashscope/audio/asr/__pycache__/asr_phrase_manager.cpython-313.pyc,,
dashscope/audio/asr/__pycache__/recognition.cpython-313.pyc,,
dashscope/audio/asr/__pycache__/transcription.cpython-313.pyc,,
dashscope/audio/asr/__pycache__/translation_recognizer.cpython-313.pyc,,
dashscope/audio/asr/__pycache__/vocabulary.cpython-313.pyc,,
dashscope/audio/asr/asr_phrase_manager.py,sha256=vHOLExaKCtjedkihIu7gyfQyarR9rN5JZn79LvlCpco,7693
dashscope/audio/asr/recognition.py,sha256=-xMcdwHbjTV1RIQRQguzBzB5pKd1tskrDukLgzsJDi8,20999
dashscope/audio/asr/transcription.py,sha256=lYzPjh7jJQwjMoxx8-AY0YCMBKNKO0bi7xd5tZGSHPc,9094
dashscope/audio/asr/translation_recognizer.py,sha256=JgBmhkIl_kqH8uVwop6Fba5KlXccftKFrhaygN9PKjU,39680
dashscope/audio/asr/vocabulary.py,sha256=N0pMS2x1lDxqJ14FgTGKctfuVkR2_hlEsCNWFcgYpTY,6717
dashscope/audio/qwen_omni/__init__.py,sha256=MEFxmyxr5H6bW22l_R9073Pl6Ka6knvhrATGT-4UBjI,298
dashscope/audio/qwen_omni/__pycache__/__init__.cpython-313.pyc,,
dashscope/audio/qwen_omni/__pycache__/omni_realtime.cpython-313.pyc,,
dashscope/audio/qwen_omni/omni_realtime.py,sha256=b7t14nsciA8YcJ4MGr2GzmDxbgBR2wpbml9ZG_GNqiI,16722
dashscope/audio/qwen_tts/__init__.py,sha256=JS3axY1grqO0aTIJufZ3KS1JsU6yf6y4K2CQlNvUK9I,132
dashscope/audio/qwen_tts/__pycache__/__init__.cpython-313.pyc,,
dashscope/audio/qwen_tts/__pycache__/speech_synthesizer.cpython-313.pyc,,
dashscope/audio/qwen_tts/speech_synthesizer.py,sha256=7LHR-PXhn-VE1cCOp_82Jq0zE9rMc3xy3dszUeyLLNs,2927
dashscope/audio/qwen_tts_realtime/__init__.py,sha256=vVkmeJr_mEAn_O0Rh5AU3ICg6qIZqppUryJ5lY8VYPo,254
dashscope/audio/qwen_tts_realtime/__pycache__/__init__.cpython-313.pyc,,
dashscope/audio/qwen_tts_realtime/__pycache__/qwen_tts_realtime.cpython-313.pyc,,
dashscope/audio/qwen_tts_realtime/qwen_tts_realtime.py,sha256=VwIvB4OwS8RP5JC5AO_ktdE2v3bZzvEQmBGNHOoBUJo,12046
dashscope/audio/tts/__init__.py,sha256=xYpMFseUZGgqgj_70zcX2VsLv-L7qxJ3d-bbdj_hO0I,245
dashscope/audio/tts/__pycache__/__init__.cpython-313.pyc,,
dashscope/audio/tts/__pycache__/speech_synthesizer.cpython-313.pyc,,
dashscope/audio/tts/speech_synthesizer.py,sha256=vD1xQV-rew8qAsIaAGH5amsNtB0SqdtNhVHhJHGQ-xk,7622
dashscope/audio/tts_v2/__init__.py,sha256=me9a3_7KsHQxcJ8hx4SeKlY1e_ThHVvGMw7Yn0uoscM,333
dashscope/audio/tts_v2/__pycache__/__init__.cpython-313.pyc,,
dashscope/audio/tts_v2/__pycache__/enrollment.cpython-313.pyc,,
dashscope/audio/tts_v2/__pycache__/speech_synthesizer.cpython-313.pyc,,
dashscope/audio/tts_v2/enrollment.py,sha256=ekeZJz_swhI0OwRANuUwsZjdP0rRoUergSsCUQmsh8E,6577
dashscope/audio/tts_v2/speech_synthesizer.py,sha256=p764P4TYwLkvvPCpA4VnFwlNbIJbuNbp2d9mxgni7Ws,22047
dashscope/cli.py,sha256=64oGkevgX0RHPPmMg0sevXDgaFLQNA_0vdtjQ7Z2pHM,26492
dashscope/client/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
dashscope/client/__pycache__/__init__.cpython-313.pyc,,
dashscope/client/__pycache__/base_api.cpython-313.pyc,,
dashscope/client/base_api.py,sha256=znAJ65DeHiFw1H7FWK0YrkLz1CoNcyqUxF8EJ3gujeY,52523
dashscope/common/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
dashscope/common/__pycache__/__init__.cpython-313.pyc,,
dashscope/common/__pycache__/api_key.cpython-313.pyc,,
dashscope/common/__pycache__/base_type.cpython-313.pyc,,
dashscope/common/__pycache__/constants.cpython-313.pyc,,
dashscope/common/__pycache__/env.cpython-313.pyc,,
dashscope/common/__pycache__/error.cpython-313.pyc,,
dashscope/common/__pycache__/logging.cpython-313.pyc,,
dashscope/common/__pycache__/message_manager.cpython-313.pyc,,
dashscope/common/__pycache__/utils.cpython-313.pyc,,
dashscope/common/api_key.py,sha256=yqFCAteq8CNQGnlLv6fxNFWsLqsQDbSzOpgAlUmDkaE,2037
dashscope/common/base_type.py,sha256=2OQDqFlEH43wn54i-691cbarV_eKRLvRsPGfyb_GS0g,4670
dashscope/common/constants.py,sha256=Ry3IBz2w9amRoRmfwC5L1dXHb7Iz2slj_I_wobmo-6Q,2446
dashscope/common/env.py,sha256=9yWWdKqfYuHlTQSvbTBaQhGbASh5Lq6SbM9pPx8hB40,920
dashscope/common/error.py,sha256=sXQqBGWCUBPyKa5rAI6DWc0sEidH01sR8zlIBfrTTDU,2690
dashscope/common/logging.py,sha256=lX86X9ND1MC5mA_qKAktwaVXd_BufLgmSGPggUiEJZo,1035
dashscope/common/message_manager.py,sha256=mZ7fS5LV09huwvz-2nxrr2RFQ9fQAYhEpeUmFb7WfW4,1148
dashscope/common/utils.py,sha256=i0pnYxz5zErw1wM-eFQx2XLfOmBjFscqG4-aEJYnlRc,15439
dashscope/customize/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
dashscope/customize/__pycache__/__init__.cpython-313.pyc,,
dashscope/customize/__pycache__/customize_types.cpython-313.pyc,,
dashscope/customize/__pycache__/deployments.cpython-313.pyc,,
dashscope/customize/__pycache__/finetunes.cpython-313.pyc,,
dashscope/customize/customize_types.py,sha256=02qxJ-FodKS9Sgl7blx7IAx_eOdpf53L1mZ909PSMsM,4854
dashscope/customize/deployments.py,sha256=2BxjgukuXe9bkl1VOvvKky0NxkcXVL3xk07UusjwZII,5240
dashscope/customize/finetunes.py,sha256=AL_kGTJXMvM2ej-EKsLLd1dUphPQdVTefFVCSVH-C-w,8362
dashscope/embeddings/__init__.py,sha256=XQ7vKr8oZM2CmdOduE53BWy6_Qpn9xUPkma64yw8Gws,291
dashscope/embeddings/__pycache__/__init__.cpython-313.pyc,,
dashscope/embeddings/__pycache__/batch_text_embedding.cpython-313.pyc,,
dashscope/embeddings/__pycache__/batch_text_embedding_response.cpython-313.pyc,,
dashscope/embeddings/__pycache__/multimodal_embedding.cpython-313.pyc,,
dashscope/embeddings/__pycache__/text_embedding.cpython-313.pyc,,
dashscope/embeddings/batch_text_embedding.py,sha256=lVhvTS8McYfXuqt_8CmmhA6bPqD0nrGv965kjYG_j0E,8842
dashscope/embeddings/batch_text_embedding_response.py,sha256=ZfkJMUq8GRsFA6XUTsiAsIySqGJH-VPi2P9Ba1KTU-s,2056
dashscope/embeddings/multimodal_embedding.py,sha256=PEF7DmtE5cbrXw4k3WQcfmsBKaAY3CTIoei3SyhOl34,6774
dashscope/embeddings/text_embedding.py,sha256=2MPEyMB99xueDbvFg9kKAe8bgHMDEaFLaFa6GzDWDHg,2108
dashscope/files.py,sha256=vRDQygm3lOqBZR73o7KNHs1iTBVuvLncuwJNxIYjzAU,3981
dashscope/io/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
dashscope/io/__pycache__/__init__.cpython-313.pyc,,
dashscope/io/__pycache__/input_output.cpython-313.pyc,,
dashscope/io/input_output.py,sha256=0aXrRJFo1ZqYm_AJWR_w88O4-Btn9np2zUhrrUdBdfw,3992
dashscope/model.py,sha256=B5v_BtYLPqj6raClejBgdKg6WTGwhH_f-20pvsQqmsk,1491
dashscope/models.py,sha256=dE4mzXkl85G343qVylSGpURPRdA5pZSqXlx6PcxqC_Q,1275
dashscope/multimodal/__init__.py,sha256=fyqeolbDLWVn5wSpPZ3nAOnUBRF9k6mlsy6dCmgjPvI,533
dashscope/multimodal/__pycache__/__init__.cpython-313.pyc,,
dashscope/multimodal/__pycache__/dialog_state.cpython-313.pyc,,
dashscope/multimodal/__pycache__/multimodal_constants.cpython-313.pyc,,
dashscope/multimodal/__pycache__/multimodal_dialog.cpython-313.pyc,,
dashscope/multimodal/__pycache__/multimodal_request_params.cpython-313.pyc,,
dashscope/multimodal/dialog_state.py,sha256=CtOdfGWhq0ePG3bc8-7inhespETtPD4QDli1513hd1A,1522
dashscope/multimodal/multimodal_constants.py,sha256=z_QVq01E43FAqKQnDu9vdf89d1zuYlWyANewWTEXVJM,1282
dashscope/multimodal/multimodal_dialog.py,sha256=HymlaQYp7SgJdoKbT27SNiviyRRoM91zklNBwTHmm1Q,23939
dashscope/multimodal/multimodal_request_params.py,sha256=XcPhr6lhz7DdGKPmQxVIzh2Nn4t25VhY0LABF1UmVXk,9385
dashscope/multimodal/tingwu/__init__.py,sha256=Gi9GEM0bdeJlZpvyksSeHOc2--_tG5aF6QAx6TAS2fE,225
dashscope/multimodal/tingwu/__pycache__/__init__.cpython-313.pyc,,
dashscope/multimodal/tingwu/__pycache__/tingwu.cpython-313.pyc,,
dashscope/multimodal/tingwu/__pycache__/tingwu_realtime.cpython-313.pyc,,
dashscope/multimodal/tingwu/tingwu.py,sha256=01d-QOeuB1QmRhiZqbXJ8pHoGqT0C-xZTjIs_ZBXOyw,2613
dashscope/multimodal/tingwu/tingwu_realtime.py,sha256=oBeqrZit3uBZHuyI7m9VILz2qaqJRMO0-Nm2eJ5Q63g,20215
dashscope/nlp/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
dashscope/nlp/__pycache__/__init__.cpython-313.pyc,,
dashscope/nlp/__pycache__/understanding.cpython-313.pyc,,
dashscope/nlp/understanding.py,sha256=00ado-ibYEzBRT0DgKGd3bohQDNW73xnFhJ_1aa87lw,2880
dashscope/protocol/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
dashscope/protocol/__pycache__/__init__.cpython-313.pyc,,
dashscope/protocol/__pycache__/websocket.cpython-313.pyc,,
dashscope/protocol/websocket.py,sha256=k4B8GOBeyvAxqVQ47JhWfXfNErIhiVlQ-VCiKLLG0Ho,613
dashscope/rerank/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
dashscope/rerank/__pycache__/__init__.cpython-313.pyc,,
dashscope/rerank/__pycache__/text_rerank.cpython-313.pyc,,
dashscope/rerank/text_rerank.py,sha256=NKN3vnWprguhHy2_g0D7znZ7jEGrLX4zMaLE3jBrl94,2449
dashscope/resources/qwen.tiktoken,sha256=srG437XMXwJLr8NzEhxquj9m-aWgJp4kNHCh3hajMYY,2561218
dashscope/threads/__init__.py,sha256=3IKX9vZWhT87XrVx1pA_g3MWHEekXoJJSZeE_CTWL08,672
dashscope/threads/__pycache__/__init__.cpython-313.pyc,,
dashscope/threads/__pycache__/thread_types.cpython-313.pyc,,
dashscope/threads/__pycache__/threads.cpython-313.pyc,,
dashscope/threads/messages/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
dashscope/threads/messages/__pycache__/__init__.cpython-313.pyc,,
dashscope/threads/messages/__pycache__/files.cpython-313.pyc,,
dashscope/threads/messages/__pycache__/messages.cpython-313.pyc,,
dashscope/threads/messages/files.py,sha256=WxKVQednISIh2MY8N1B6Y4HjGllFhcLKCsc4QXKZ6AQ,3871
dashscope/threads/messages/messages.py,sha256=peKqehK8JO0ZwRXACaojg6-61TkBBbqd190xtKIbOZo,8470
dashscope/threads/runs/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
dashscope/threads/runs/__pycache__/__init__.cpython-313.pyc,,
dashscope/threads/runs/__pycache__/runs.cpython-313.pyc,,
dashscope/threads/runs/__pycache__/steps.cpython-313.pyc,,
dashscope/threads/runs/runs.py,sha256=PsUL5IFw-kF8WXEl_CnL1vMGIuP7S7MWzkLhHJCCKDA,19442
dashscope/threads/runs/steps.py,sha256=579EsCOwsamuJMSNrrrX86h9JfMdXNlErVJ8XakSqSc,3689
dashscope/threads/thread_types.py,sha256=brek-eTM9147TAlDxpLKlFcp-JBcSNo6Slg76t0O_dk,18604
dashscope/threads/threads.py,sha256=J9QGY0vy6MldC4ujQMyiYc9jN4aH9NGj0SkcWZHwkj0,7716
dashscope/tokenizers/__init__.py,sha256=TvVAsDam5S0R4rorxdfyUGIEQQX1q8nQ--RxsWWos3A,251
dashscope/tokenizers/__pycache__/__init__.cpython-313.pyc,,
dashscope/tokenizers/__pycache__/qwen_tokenizer.cpython-313.pyc,,
dashscope/tokenizers/__pycache__/tokenization.cpython-313.pyc,,
dashscope/tokenizers/__pycache__/tokenizer.cpython-313.pyc,,
dashscope/tokenizers/__pycache__/tokenizer_base.cpython-313.pyc,,
dashscope/tokenizers/qwen_tokenizer.py,sha256=tvX7x34Rg_NFFc1XjneXNFfXVkePdqkgHHShce2RJGo,4162
dashscope/tokenizers/tokenization.py,sha256=ubQBJ_yw_MoHuHxZcK9NarZSSbyExloeSOLIWYhRzH0,4824
dashscope/tokenizers/tokenizer.py,sha256=3FQVDvMNkCW9ccYeJdjrd_PIMMD3Xv7aNZkaYOE4XX4,1205
dashscope/tokenizers/tokenizer_base.py,sha256=5EJIFuizMWESEmLmbd38yJnfeHmPnzZPwsO4aOGjpl4,707
dashscope/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
dashscope/utils/__pycache__/__init__.cpython-313.pyc,,
dashscope/utils/__pycache__/message_utils.cpython-313.pyc,,
dashscope/utils/__pycache__/oss_utils.cpython-313.pyc,,
dashscope/utils/__pycache__/param_utils.cpython-313.pyc,,
dashscope/utils/message_utils.py,sha256=7Qf-jbp8zerlYsNS92nR2lBgQ4o6JlAYVtZpRxOiMQk,44371
dashscope/utils/oss_utils.py,sha256=aZIHlMN2JOfVw6kp0SVrMw_N1MfoTcR_-wiRbJ7DgHw,7501
dashscope/utils/param_utils.py,sha256=QSmg49cJ8oR24tq2ghLhdLRQPE3KvA3qXhSP_SCAXig,826
dashscope/version.py,sha256=cgzSrPSy4SmTmLW6qL0KQwqrtJMnrbdiKlb6Vpnrkb0,74

View File

@@ -0,0 +1,5 @@
Wheel-Version: 1.0
Generator: setuptools (80.9.0)
Root-Is-Purelib: true
Tag: py3-none-any

View File

@@ -0,0 +1,2 @@
[console_scripts]
dashscope = dashscope.cli:main

View File

@@ -0,0 +1,201 @@
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction,
and distribution as defined by Sections 1 through 9 of this document.
"Licensor" shall mean the copyright owner or entity authorized by
the copyright owner that is granting the License.
"Legal Entity" shall mean the union of the acting entity and all
other entities that control, are controlled by, or are under common
control with that entity. For the purposes of this definition,
"control" means (i) the power, direct or indirect, to cause the
direction or management of such entity, whether by contract or
otherwise, or (ii) ownership of fifty percent (50%) or more of the
outstanding shares, or (iii) beneficial ownership of such entity.
"You" (or "Your") shall mean an individual or Legal Entity
exercising permissions granted by this License.
"Source" form shall mean the preferred form for making modifications,
including but not limited to software source code, documentation
source, and configuration files.
"Object" form shall mean any form resulting from mechanical
transformation or translation of a Source form, including but
not limited to compiled object code, generated documentation,
and conversions to other media types.
"Work" shall mean the work of authorship, whether in Source or
Object form, made available under the License, as indicated by a
copyright notice that is included in or attached to the work
(an example is provided in the Appendix below).
"Derivative Works" shall mean any work, whether in Source or Object
form, that is based on (or derived from) the Work and for which the
editorial revisions, annotations, elaborations, or other modifications
represent, as a whole, an original work of authorship. For the purposes
of this License, Derivative Works shall not include works that remain
separable from, or merely link (or bind by name) to the interfaces of,
the Work and Derivative Works thereof.
"Contribution" shall mean any work of authorship, including
the original version of the Work and any modifications or additions
to that Work or Derivative Works thereof, that is intentionally
submitted to Licensor for inclusion in the Work by the copyright owner
or by an individual or Legal Entity authorized to submit on behalf of
the copyright owner. For the purposes of this definition, "submitted"
means any form of electronic, verbal, or written communication sent
to the Licensor or its representatives, including but not limited to
communication on electronic mailing lists, source code control systems,
and issue tracking systems that are managed by, or on behalf of, the
Licensor for the purpose of discussing and improving the Work, but
excluding communication that is conspicuously marked or otherwise
designated in writing by the copyright owner as "Not a Contribution."
"Contributor" shall mean Licensor and any individual or Legal Entity
on behalf of whom a Contribution has been received by Licensor and
subsequently incorporated within the Work.
2. Grant of Copyright License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
copyright license to reproduce, prepare Derivative Works of,
publicly display, publicly perform, sublicense, and distribute the
Work and such Derivative Works in Source or Object form.
3. Grant of Patent License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
(except as stated in this section) patent license to make, have made,
use, offer to sell, sell, import, and otherwise transfer the Work,
where such license applies only to those patent claims licensable
by such Contributor that are necessarily infringed by their
Contribution(s) alone or by combination of their Contribution(s)
with the Work to which such Contribution(s) was submitted. If You
institute patent litigation against any entity (including a
cross-claim or counterclaim in a lawsuit) alleging that the Work
or a Contribution incorporated within the Work constitutes direct
or contributory patent infringement, then any patent licenses
granted to You under this License for that Work shall terminate
as of the date such litigation is filed.
4. Redistribution. You may reproduce and distribute copies of the
Work or Derivative Works thereof in any medium, with or without
modifications, and in Source or Object form, provided that You
meet the following conditions:
(a) You must give any other recipients of the Work or
Derivative Works a copy of this License; and
(b) You must cause any modified files to carry prominent notices
stating that You changed the files; and
(c) You must retain, in the Source form of any Derivative Works
that You distribute, all copyright, patent, trademark, and
attribution notices from the Source form of the Work,
excluding those notices that do not pertain to any part of
the Derivative Works; and
(d) If the Work includes a "NOTICE" text file as part of its
distribution, then any Derivative Works that You distribute must
include a readable copy of the attribution notices contained
within such NOTICE file, excluding those notices that do not
pertain to any part of the Derivative Works, in at least one
of the following places: within a NOTICE text file distributed
as part of the Derivative Works; within the Source form or
documentation, if provided along with the Derivative Works; or,
within a display generated by the Derivative Works, if and
wherever such third-party notices normally appear. The contents
of the NOTICE file are for informational purposes only and
do not modify the License. You may add Your own attribution
notices within Derivative Works that You distribute, alongside
or as an addendum to the NOTICE text from the Work, provided
that such additional attribution notices cannot be construed
as modifying the License.
You may add Your own copyright statement to Your modifications and
may provide additional or different license terms and conditions
for use, reproduction, or distribution of Your modifications, or
for any such Derivative Works as a whole, provided Your use,
reproduction, and distribution of the Work otherwise complies with
the conditions stated in this License.
5. Submission of Contributions. Unless You explicitly state otherwise,
any Contribution intentionally submitted for inclusion in the Work
by You to the Licensor shall be under the terms and conditions of
this License, without any additional terms or conditions.
Notwithstanding the above, nothing herein shall supersede or modify
the terms of any separate license agreement you may have executed
with Licensor regarding such Contributions.
6. Trademarks. This License does not grant permission to use the trade
names, trademarks, service marks, or product names of the Licensor,
except as required for reasonable and customary use in describing the
origin of the Work and reproducing the content of the NOTICE file.
7. Disclaimer of Warranty. Unless required by applicable law or
agreed to in writing, Licensor provides the Work (and each
Contributor provides its Contributions) on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied, including, without limitation, any warranties or conditions
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
PARTICULAR PURPOSE. You are solely responsible for determining the
appropriateness of using or redistributing the Work and assume any
risks associated with Your exercise of permissions under this License.
8. Limitation of Liability. In no event and under no legal theory,
whether in tort (including negligence), contract, or otherwise,
unless required by applicable law (such as deliberate and grossly
negligent acts) or agreed to in writing, shall any Contributor be
liable to You for damages, including any direct, indirect, special,
incidental, or consequential damages of any character arising as a
result of this License or out of the use or inability to use the
Work (including but not limited to damages for loss of goodwill,
work stoppage, computer failure or malfunction, or any and all
other commercial damages or losses), even if such Contributor
has been advised of the possibility of such damages.
9. Accepting Warranty or Additional Liability. While redistributing
the Work or Derivative Works thereof, You may choose to offer,
and charge a fee for, acceptance of support, warranty, indemnity,
or other liability obligations and/or rights consistent with this
License. However, in accepting such obligations, You may act only
on Your own behalf and on Your sole responsibility, not on behalf
of any other Contributor, and only if You agree to indemnify,
defend, and hold each Contributor harmless for any liability
incurred by, or claims asserted against, such Contributor by reason
of your accepting any such warranty or additional liability.
END OF TERMS AND CONDITIONS
APPENDIX: How to apply the Apache License to your work.
To apply the Apache License to your work, attach the following
boilerplate notice, with the fields enclosed by brackets "[]"
replaced with your own identifying information. (Don't include
the brackets!) The text should be enclosed in the appropriate
comment syntax for the file format. We also recommend that a
file or class name and description of purpose be included on the
same "printed page" as the copyright notice for easier
identification within third-party archives.
Copyright [yyyy] [name of copyright owner]
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.