dashscope 1.22.1__py3-none-any.whl → 1.23.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.

Files changed (84) hide show
  1. dashscope/__init__.py +3 -1
  2. dashscope/aigc/__init__.py +2 -0
  3. dashscope/aigc/chat_completion.py +15 -4
  4. dashscope/aigc/code_generation.py +2 -0
  5. dashscope/aigc/conversation.py +2 -0
  6. dashscope/aigc/generation.py +2 -0
  7. dashscope/aigc/image_synthesis.py +2 -0
  8. dashscope/aigc/multimodal_conversation.py +8 -4
  9. dashscope/aigc/video_synthesis.py +2 -0
  10. dashscope/api_entities/aiohttp_request.py +3 -0
  11. dashscope/api_entities/api_request_data.py +3 -0
  12. dashscope/api_entities/api_request_factory.py +2 -0
  13. dashscope/api_entities/base_request.py +2 -0
  14. dashscope/api_entities/chat_completion_types.py +58 -63
  15. dashscope/api_entities/dashscope_response.py +74 -2
  16. dashscope/api_entities/http_request.py +3 -0
  17. dashscope/api_entities/websocket_request.py +3 -2
  18. dashscope/app/__init__.py +2 -0
  19. dashscope/app/application.py +17 -15
  20. dashscope/app/application_response.py +1 -1
  21. dashscope/assistants/__init__.py +2 -0
  22. dashscope/assistants/assistant_types.py +2 -0
  23. dashscope/assistants/assistants.py +2 -0
  24. dashscope/assistants/files.py +2 -0
  25. dashscope/audio/__init__.py +4 -2
  26. dashscope/audio/asr/__init__.py +2 -0
  27. dashscope/audio/asr/asr_phrase_manager.py +2 -0
  28. dashscope/audio/asr/recognition.py +2 -0
  29. dashscope/audio/asr/transcription.py +3 -0
  30. dashscope/audio/asr/translation_recognizer.py +2 -0
  31. dashscope/audio/asr/vocabulary.py +3 -0
  32. dashscope/audio/qwen_tts/__init__.py +5 -0
  33. dashscope/audio/qwen_tts/speech_synthesizer.py +77 -0
  34. dashscope/audio/tts/__init__.py +2 -0
  35. dashscope/audio/tts/speech_synthesizer.py +2 -0
  36. dashscope/audio/tts_v2/__init__.py +2 -0
  37. dashscope/audio/tts_v2/enrollment.py +3 -0
  38. dashscope/audio/tts_v2/speech_synthesizer.py +4 -1
  39. dashscope/client/base_api.py +4 -1
  40. dashscope/common/api_key.py +2 -0
  41. dashscope/common/base_type.py +2 -0
  42. dashscope/common/constants.py +2 -0
  43. dashscope/common/env.py +2 -0
  44. dashscope/common/error.py +3 -0
  45. dashscope/common/logging.py +2 -0
  46. dashscope/common/message_manager.py +2 -0
  47. dashscope/common/utils.py +3 -0
  48. dashscope/customize/customize_types.py +2 -0
  49. dashscope/customize/deployments.py +2 -0
  50. dashscope/customize/finetunes.py +2 -0
  51. dashscope/embeddings/__init__.py +2 -0
  52. dashscope/embeddings/batch_text_embedding.py +2 -0
  53. dashscope/embeddings/batch_text_embedding_response.py +3 -0
  54. dashscope/embeddings/multimodal_embedding.py +6 -3
  55. dashscope/embeddings/text_embedding.py +2 -0
  56. dashscope/files.py +2 -0
  57. dashscope/io/input_output.py +2 -0
  58. dashscope/model.py +2 -0
  59. dashscope/models.py +2 -0
  60. dashscope/nlp/understanding.py +2 -0
  61. dashscope/protocol/websocket.py +3 -0
  62. dashscope/rerank/text_rerank.py +2 -0
  63. dashscope/threads/__init__.py +2 -0
  64. dashscope/threads/messages/files.py +2 -0
  65. dashscope/threads/messages/messages.py +2 -0
  66. dashscope/threads/runs/runs.py +2 -0
  67. dashscope/threads/runs/steps.py +2 -0
  68. dashscope/threads/thread_types.py +2 -0
  69. dashscope/threads/threads.py +2 -0
  70. dashscope/tokenizers/__init__.py +2 -0
  71. dashscope/tokenizers/qwen_tokenizer.py +2 -0
  72. dashscope/tokenizers/tokenization.py +2 -0
  73. dashscope/tokenizers/tokenizer.py +2 -0
  74. dashscope/tokenizers/tokenizer_base.py +2 -0
  75. dashscope/utils/oss_utils.py +3 -0
  76. dashscope/version.py +3 -1
  77. {dashscope-1.22.1.dist-info → dashscope-1.23.0.dist-info}/LICENSE +2 -4
  78. {dashscope-1.22.1.dist-info → dashscope-1.23.0.dist-info}/METADATA +4 -3
  79. dashscope-1.23.0.dist-info/RECORD +95 -0
  80. {dashscope-1.22.1.dist-info → dashscope-1.23.0.dist-info}/entry_points.txt +1 -0
  81. dashscope/utils/temporary_storage.py +0 -160
  82. dashscope-1.22.1.dist-info/RECORD +0 -94
  83. {dashscope-1.22.1.dist-info → dashscope-1.23.0.dist-info}/WHEEL +0 -0
  84. {dashscope-1.22.1.dist-info → dashscope-1.23.0.dist-info}/top_level.txt +0 -0
@@ -1,3 +1,5 @@
1
+ # Copyright (c) Alibaba, Inc. and its affiliates.
2
+
1
3
  from dashscope.assistants.assistant_types import (AssistantFile,
2
4
  AssistantFileList,
3
5
  DeleteResponse)
@@ -1,3 +1,5 @@
1
- from . import asr, tts, tts_v2
1
+ # Copyright (c) Alibaba, Inc. and its affiliates.
2
2
 
3
- __all__ = [asr, tts, tts_v2]
3
+ from . import asr, tts, tts_v2, qwen_tts
4
+
5
+ __all__ = [asr, tts, tts_v2, qwen_tts]
@@ -1,3 +1,5 @@
1
+ # Copyright (c) Alibaba, Inc. and its affiliates.
2
+
1
3
  from .asr_phrase_manager import AsrPhraseManager
2
4
  from .recognition import Recognition, RecognitionCallback, RecognitionResult
3
5
  from .transcription import Transcription
@@ -1,3 +1,5 @@
1
+ # Copyright (c) Alibaba, Inc. and its affiliates.
2
+
1
3
  from http import HTTPStatus
2
4
  from typing import Any, Dict
3
5
 
@@ -1,3 +1,5 @@
1
+ # Copyright (c) Alibaba, Inc. and its affiliates.
2
+
1
3
  import json
2
4
  import os
3
5
  import threading
@@ -1,8 +1,11 @@
1
+ # Copyright (c) Alibaba, Inc. and its affiliates.
2
+
1
3
  import asyncio
2
4
  import time
3
5
  from typing import List, Union
4
6
 
5
7
  import aiohttp
8
+
6
9
  from dashscope.api_entities.dashscope_response import (DashScopeAPIResponse,
7
10
  TranscriptionResponse)
8
11
  from dashscope.client.base_api import BaseAsyncApi
@@ -1,3 +1,5 @@
1
+ # Copyright (c) Alibaba, Inc. and its affiliates.
2
+
1
3
  import json
2
4
  import os
3
5
  import threading
@@ -1,8 +1,11 @@
1
+ # Copyright (c) Alibaba, Inc. and its affiliates.
2
+
1
3
  import asyncio
2
4
  import time
3
5
  from typing import List
4
6
 
5
7
  import aiohttp
8
+
6
9
  from dashscope.client.base_api import BaseApi
7
10
  from dashscope.common.constants import ApiProtocol, HTTPMethod
8
11
  from dashscope.common.logging import logger
@@ -0,0 +1,5 @@
1
+ # Copyright (c) Alibaba, Inc. and its affiliates.
2
+
3
+ from .speech_synthesizer import SpeechSynthesizer
4
+
5
+ __all__ = [SpeechSynthesizer]
@@ -0,0 +1,77 @@
1
+ # Copyright (c) Alibaba, Inc. and its affiliates.
2
+
3
+ from typing import Generator, Union
4
+
5
+ from dashscope.api_entities.dashscope_response import \
6
+ TextToSpeechResponse
7
+ from dashscope.client.base_api import BaseApi
8
+ from dashscope.common.error import InputRequired, ModelRequired
9
+
10
+
11
+ class SpeechSynthesizer(BaseApi):
12
+ """Text-to-speech interface.
13
+ """
14
+
15
+ task_group = 'aigc'
16
+ task = 'multimodal-generation'
17
+ function = 'generation'
18
+
19
+ class Models:
20
+ qwen_tts = 'qwen-tts'
21
+
22
+ @classmethod
23
+ def call(
24
+ cls,
25
+ model: str,
26
+ text: str,
27
+ api_key: str = None,
28
+ workspace: str = None,
29
+ **kwargs
30
+ ) -> Union[TextToSpeechResponse, Generator[
31
+ TextToSpeechResponse, None, None]]:
32
+ """Call the conversation model service.
33
+
34
+ Args:
35
+ model (str): The requested model, such as 'qwen-tts'
36
+ text (str): Text content used for speech synthesis.
37
+ api_key (str, optional): The api api_key, can be None,
38
+ if None, will retrieve by rule [1].
39
+ [1]: https://help.aliyun.com/zh/dashscope/developer-reference/api-key-settings. # noqa E501
40
+ workspace (str): The dashscope workspace id.
41
+ **kwargs:
42
+ stream(bool, `optional`): Enable server-sent events
43
+ (ref: https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events/Using_server-sent_events) # noqa E501
44
+ the result will back partially[qwen-turbo,bailian-v1].
45
+ voice: str
46
+ Voice name.
47
+
48
+ Raises:
49
+ InputRequired: The input must include the text parameter.
50
+ ModelRequired: The input must include the model parameter.
51
+
52
+ Returns:
53
+ Union[TextToSpeechResponse,
54
+ Generator[TextToSpeechResponse, None, None]]: If
55
+ stream is True, return Generator, otherwise TextToSpeechResponse.
56
+ """
57
+ if not text:
58
+ raise InputRequired('text is required!')
59
+ if model is None or not model:
60
+ raise ModelRequired('Model is required!')
61
+ input = {'text': text}
62
+ if 'voice' in kwargs:
63
+ input['voice'] = kwargs.pop('voice')
64
+ response = super().call(model=model,
65
+ task_group=SpeechSynthesizer.task_group,
66
+ task=SpeechSynthesizer.task,
67
+ function=SpeechSynthesizer.function,
68
+ api_key=api_key,
69
+ input=input,
70
+ workspace=workspace,
71
+ **kwargs)
72
+ is_stream = kwargs.get('stream', False)
73
+ if is_stream:
74
+ return (TextToSpeechResponse.from_api_response(rsp)
75
+ for rsp in response)
76
+ else:
77
+ return TextToSpeechResponse.from_api_response(response)
@@ -1,3 +1,5 @@
1
+ # Copyright (c) Alibaba, Inc. and its affiliates.
2
+
1
3
  from .speech_synthesizer import (ResultCallback, SpeechSynthesisResult,
2
4
  SpeechSynthesizer)
3
5
 
@@ -1,3 +1,5 @@
1
+ # Copyright (c) Alibaba, Inc. and its affiliates.
2
+
1
3
  from http import HTTPStatus
2
4
  from typing import Dict, List
3
5
 
@@ -1,3 +1,5 @@
1
+ # Copyright (c) Alibaba, Inc. and its affiliates.
2
+
1
3
  from .enrollment import VoiceEnrollmentException, VoiceEnrollmentService
2
4
  from .speech_synthesizer import AudioFormat, ResultCallback, SpeechSynthesizer
3
5
 
@@ -1,8 +1,11 @@
1
+ # Copyright (c) Alibaba, Inc. and its affiliates.
2
+
1
3
  import asyncio
2
4
  import time
3
5
  from typing import List
4
6
 
5
7
  import aiohttp
8
+
6
9
  from dashscope.client.base_api import BaseApi
7
10
  from dashscope.common.constants import ApiProtocol, HTTPMethod
8
11
  from dashscope.common.logging import logger
@@ -1,3 +1,5 @@
1
+ # Copyright (c) Alibaba, Inc. and its affiliates.
2
+
1
3
  import json
2
4
  import platform
3
5
  import threading
@@ -5,8 +7,9 @@ import time
5
7
  import uuid
6
8
  from enum import Enum, unique
7
9
 
8
- import dashscope
9
10
  import websocket
11
+
12
+ import dashscope
10
13
  from dashscope.common.error import InputRequired, InvalidTask, ModelRequired
11
14
  from dashscope.common.logging import logger
12
15
  from dashscope.protocol.websocket import (ACTION_KEY, EVENT_KEY, HEADER,
@@ -1,9 +1,12 @@
1
+ # Copyright (c) Alibaba, Inc. and its affiliates.
2
+
1
3
  import time
2
4
  from http import HTTPStatus
3
5
  from typing import Any, Dict, Iterator, List, Union
4
6
 
5
- import dashscope
6
7
  import requests
8
+
9
+ import dashscope
7
10
  from dashscope.api_entities.api_request_factory import _build_api_request
8
11
  from dashscope.api_entities.dashscope_response import DashScopeAPIResponse
9
12
  from dashscope.common.api_key import get_default_api_key
@@ -1,3 +1,5 @@
1
+ # Copyright (c) Alibaba, Inc. and its affiliates.
2
+
1
3
  import os
2
4
  from typing import Optional
3
5
 
@@ -1,3 +1,5 @@
1
+ # Copyright (c) Alibaba, Inc. and its affiliates.
2
+
1
3
  import dataclasses
2
4
  from dataclasses import dataclass
3
5
  from typing import Any, List
@@ -1,3 +1,5 @@
1
+ # Copyright (c) Alibaba, Inc. and its affiliates.
2
+
1
3
  from http import HTTPStatus
2
4
  from pathlib import Path
3
5
 
dashscope/common/env.py CHANGED
@@ -1,3 +1,5 @@
1
+ # Copyright (c) Alibaba, Inc. and its affiliates.
2
+
1
3
  import os
2
4
 
3
5
  from dashscope.common.constants import (DASHSCOPE_API_KEY_ENV,
dashscope/common/error.py CHANGED
@@ -1,3 +1,6 @@
1
+ # Copyright (c) Alibaba, Inc. and its affiliates.
2
+
3
+
1
4
  class DashScopeException(Exception):
2
5
  pass
3
6
 
@@ -1,3 +1,5 @@
1
+ # Copyright (c) Alibaba, Inc. and its affiliates.
2
+
1
3
  import logging
2
4
  import os
3
5
 
@@ -1,3 +1,5 @@
1
+ # Copyright (c) Alibaba, Inc. and its affiliates.
2
+
1
3
  from collections import deque
2
4
  from typing import List
3
5
 
dashscope/common/utils.py CHANGED
@@ -1,3 +1,5 @@
1
+ # Copyright (c) Alibaba, Inc. and its affiliates.
2
+
1
3
  import asyncio
2
4
  import json
3
5
  import os
@@ -11,6 +13,7 @@ from urllib.parse import urlparse
11
13
 
12
14
  import aiohttp
13
15
  import requests
16
+
14
17
  from dashscope.api_entities.dashscope_response import DashScopeAPIResponse
15
18
  from dashscope.common.api_key import get_default_api_key
16
19
  from dashscope.common.constants import SSE_CONTENT_TYPE
@@ -1,3 +1,5 @@
1
+ # Copyright (c) Alibaba, Inc. and its affiliates.
2
+
1
3
  from dataclasses import dataclass
2
4
  from http import HTTPStatus
3
5
  from typing import Dict, List
@@ -1,3 +1,5 @@
1
+ # Copyright (c) Alibaba, Inc. and its affiliates.
2
+
1
3
  from dashscope.client.base_api import (CreateMixin, DeleteMixin, GetMixin,
2
4
  ListMixin, PutMixin, StreamEventMixin)
3
5
  from dashscope.customize.customize_types import (Deployment, DeploymentDelete,
@@ -1,3 +1,5 @@
1
+ # Copyright (c) Alibaba, Inc. and its affiliates.
2
+
1
3
  import time
2
4
  from http import HTTPStatus
3
5
  from typing import Iterator, Union
@@ -1,3 +1,5 @@
1
+ # Copyright (c) Alibaba, Inc. and its affiliates.
2
+
1
3
  from .batch_text_embedding import BatchTextEmbedding
2
4
  from .batch_text_embedding_response import BatchTextEmbeddingResponse
3
5
  from .text_embedding import TextEmbedding
@@ -1,3 +1,5 @@
1
+ # Copyright (c) Alibaba, Inc. and its affiliates.
2
+
1
3
  from typing import Union
2
4
 
3
5
  from dashscope.api_entities.dashscope_response import DashScopeAPIResponse
@@ -1,6 +1,9 @@
1
+ # Copyright (c) Alibaba, Inc. and its affiliates.
2
+
1
3
  from http import HTTPStatus
2
4
 
3
5
  from attr import dataclass
6
+
4
7
  from dashscope.api_entities.dashscope_response import (DashScopeAPIResponse,
5
8
  DictMixin)
6
9
 
@@ -1,3 +1,5 @@
1
+ # Copyright (c) Alibaba, Inc. and its affiliates.
2
+
1
3
  from dataclasses import dataclass
2
4
  from typing import List
3
5
 
@@ -104,7 +106,8 @@ class MultiModalEmbedding(BaseApi):
104
106
  """
105
107
  has_upload = False
106
108
  for elem in input:
107
- is_upload = preprocess_message_element(model, elem, api_key)
108
- if is_upload and not has_upload:
109
- has_upload = True
109
+ if not isinstance(elem, (int, float, bool, str, bytes, bytearray)):
110
+ is_upload = preprocess_message_element(model, elem, api_key)
111
+ if is_upload and not has_upload:
112
+ has_upload = True
110
113
  return has_upload
@@ -1,3 +1,5 @@
1
+ # Copyright (c) Alibaba, Inc. and its affiliates.
2
+
1
3
  from typing import List, Union
2
4
 
3
5
  from dashscope.api_entities.dashscope_response import DashScopeAPIResponse
dashscope/files.py CHANGED
@@ -1,3 +1,5 @@
1
+ # Copyright (c) Alibaba, Inc. and its affiliates.
2
+
1
3
  import os
2
4
 
3
5
  from dashscope.api_entities.dashscope_response import DashScopeAPIResponse
@@ -1,3 +1,5 @@
1
+ # Copyright (c) Alibaba, Inc. and its affiliates.
2
+
1
3
  import base64
2
4
  import io
3
5
  from typing import Generator
dashscope/model.py CHANGED
@@ -1,3 +1,5 @@
1
+ # Copyright (c) Alibaba, Inc. and its affiliates.
2
+
1
3
  from dashscope.api_entities.dashscope_response import DashScopeAPIResponse
2
4
  from dashscope.client.base_api import GetMixin, ListMixin
3
5
 
dashscope/models.py CHANGED
@@ -1,3 +1,5 @@
1
+ # Copyright (c) Alibaba, Inc. and its affiliates.
2
+
1
3
  from dashscope.api_entities.dashscope_response import DashScopeAPIResponse
2
4
  from dashscope.client.base_api import GetMixin, ListMixin
3
5
 
@@ -1,3 +1,5 @@
1
+ # Copyright (c) Alibaba, Inc. and its affiliates.
2
+
1
3
  from dashscope.api_entities.dashscope_response import DashScopeAPIResponse
2
4
  from dashscope.client.base_api import BaseApi
3
5
  from dashscope.common.error import InputRequired, ModelRequired
@@ -1,3 +1,6 @@
1
+ # Copyright (c) Alibaba, Inc. and its affiliates.
2
+
3
+
1
4
  class WebsocketStreamingMode:
2
5
  # TODO how to know request is duplex or other.
3
6
  NONE = 'none' # no stream
@@ -1,3 +1,5 @@
1
+ # Copyright (c) Alibaba, Inc. and its affiliates.
2
+
1
3
  from typing import List
2
4
 
3
5
  from dashscope.api_entities.dashscope_response import ReRankResponse
@@ -1,3 +1,5 @@
1
+ # Copyright (c) Alibaba, Inc. and its affiliates.
2
+
1
3
  # yapf: disable
2
4
 
3
5
  from dashscope.threads.messages.messages import Messages
@@ -1,3 +1,5 @@
1
+ # Copyright (c) Alibaba, Inc. and its affiliates.
2
+
1
3
  from dashscope.client.base_api import GetStatusMixin, ListObjectMixin
2
4
  from dashscope.common.error import InputRequired
3
5
  from dashscope.threads.thread_types import MessageFile, MessageFileList
@@ -1,3 +1,5 @@
1
+ # Copyright (c) Alibaba, Inc. and its affiliates.
2
+
1
3
  from typing import Dict, List, Optional
2
4
 
3
5
  from dashscope.client.base_api import (CreateMixin, GetStatusMixin,
@@ -1,3 +1,5 @@
1
+ # Copyright (c) Alibaba, Inc. and its affiliates.
2
+
1
3
  import time
2
4
  from http import HTTPStatus
3
5
  from typing import Dict, List, Optional
@@ -1,3 +1,5 @@
1
+ # Copyright (c) Alibaba, Inc. and its affiliates.
2
+
1
3
  from dashscope.client.base_api import GetStatusMixin, ListObjectMixin
2
4
  from dashscope.common.error import InputRequired
3
5
  from dashscope.threads.thread_types import RunStep, RunStepList
@@ -1,3 +1,5 @@
1
+ # Copyright (c) Alibaba, Inc. and its affiliates.
2
+
1
3
  # adapter from openai sdk
2
4
  # yapf: disable
3
5
  from dataclasses import dataclass
@@ -1,3 +1,5 @@
1
+ # Copyright (c) Alibaba, Inc. and its affiliates.
2
+
1
3
  from typing import Dict, List, Optional
2
4
 
3
5
  from dashscope.assistants.assistant_types import DeleteResponse
@@ -1,3 +1,5 @@
1
+ # Copyright (c) Alibaba, Inc. and its affiliates.
2
+
1
3
  from .tokenization import Tokenization
2
4
  from .tokenizer import get_tokenizer, list_tokenizers
3
5
  from .tokenizer_base import Tokenizer
@@ -1,3 +1,5 @@
1
+ # Copyright (c) Alibaba, Inc. and its affiliates.
2
+
1
3
  import base64
2
4
  import unicodedata
3
5
  from typing import Collection, Dict, List, Set, Union
@@ -1,3 +1,5 @@
1
+ # Copyright (c) Alibaba, Inc. and its affiliates.
2
+
1
3
  import copy
2
4
  from typing import Any, List
3
5
 
@@ -1,3 +1,5 @@
1
+ # Copyright (c) Alibaba, Inc. and its affiliates.
2
+
1
3
  import os
2
4
  from typing import List
3
5
 
@@ -1,3 +1,5 @@
1
+ # Copyright (c) Alibaba, Inc. and its affiliates.
2
+
1
3
  from typing import List
2
4
 
3
5
 
@@ -1,3 +1,5 @@
1
+ # Copyright (c) Alibaba, Inc. and its affiliates.
2
+
1
3
  import mimetypes
2
4
  import os
3
5
  from datetime import datetime
@@ -8,6 +10,7 @@ from urllib.parse import unquote_plus, urlparse
8
10
  from wsgiref.handlers import format_date_time
9
11
 
10
12
  import requests
13
+
11
14
  from dashscope.api_entities.dashscope_response import DashScopeAPIResponse
12
15
  from dashscope.client.base_api import GetMixin
13
16
  from dashscope.common.constants import FILE_PATH_SCHEMA
dashscope/version.py CHANGED
@@ -1 +1,3 @@
1
- __version__ = '1.22.1'
1
+ # Copyright (c) Alibaba, Inc. and its affiliates.
2
+
3
+ __version__ = '1.23.0'
@@ -1,5 +1,3 @@
1
- Copyright 2023-2024 Alibaba DashScope. All rights reserved.
2
-
3
1
  Apache License
4
2
  Version 2.0, January 2004
5
3
  http://www.apache.org/licenses/
@@ -188,7 +186,7 @@ Copyright 2023-2024 Alibaba DashScope. All rights reserved.
188
186
  same "printed page" as the copyright notice for easier
189
187
  identification within third-party archives.
190
188
 
191
- Copyright 2020-2023 Alibaba DashScope.
189
+ Copyright [yyyy] [name of copyright owner]
192
190
 
193
191
  Licensed under the Apache License, Version 2.0 (the "License");
194
192
  you may not use this file except in compliance with the License.
@@ -200,4 +198,4 @@ Copyright 2023-2024 Alibaba DashScope. All rights reserved.
200
198
  distributed under the License is distributed on an "AS IS" BASIS,
201
199
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
202
200
  See the License for the specific language governing permissions and
203
- limitations under the License.
201
+ limitations under the License.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: dashscope
3
- Version: 1.22.1
3
+ Version: 1.23.0
4
4
  Summary: dashscope client sdk library
5
5
  Home-page: https://dashscope.aliyun.com/
6
6
  Author: Alibaba Cloud
@@ -18,7 +18,6 @@ Classifier: Programming Language :: Python :: 3.10
18
18
  Classifier: Programming Language :: Python :: 3.11
19
19
  Requires-Python: >=3.8.0
20
20
  Description-Content-Type: text/markdown
21
- License-File: LICENSE
22
21
  Requires-Dist: aiohttp
23
22
  Requires-Dist: requests
24
23
  Requires-Dist: websocket-client
@@ -77,7 +76,7 @@ else:
77
76
 
78
77
  ## API Key Authentication
79
78
 
80
- The SDK uses API key for authentication. Please refer to [official documentation](https://dashscope.aliyun.com) regarding how to obtain your api-key.
79
+ 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.
81
80
 
82
81
  ### Using the API Key
83
82
 
@@ -222,3 +221,5 @@ Coming soon.
222
221
 
223
222
  ## License
224
223
  This project is licensed under the Apache License (Version 2.0).
224
+
225
+