Skip to content

Commit 32414ec

Browse files
committed
Merge branch 'integration_2025-04-17_865081244162' into tis-Python-2024-07-31-online-1094-2025_04_08_12_33_28
# Conflicts: # meta.json # setup.py # volcenginesdkcore/api_client.py # volcenginesdkcore/configuration.py
2 parents 60058fb + 8c96a49 commit 32414ec

File tree

267 files changed

+44792
-155
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

267 files changed

+44792
-155
lines changed

volcenginesdkarkruntime/types/chat/chat_completion_assistant_message_param.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
from __future__ import annotations
22

3-
from typing import Iterable, Optional
3+
from typing import Union, Iterable, Optional
44
from typing_extensions import Literal, Required, TypedDict
55

66
from .chat_completion_message_tool_call_param import ChatCompletionMessageToolCallParam
7+
from .chat_completion_content_part_param import ChatCompletionContentPartParam
78

89
__all__ = ["ChatCompletionAssistantMessageParam", "FunctionCall"]
910

@@ -25,7 +26,7 @@ class ChatCompletionAssistantMessageParam(TypedDict, total=False):
2526
role: Required[Literal["assistant"]]
2627
"""The role of the messages author, in this case `assistant`."""
2728

28-
content: Optional[str]
29+
content: Optional[Union[str, Iterable[ChatCompletionContentPartParam]]]
2930
"""The contents of the assistant message.
3031
3132
Required unless `tool_calls` or `function_call` is specified.

volcenginesdkarkruntime/types/chat/chat_completion_system_message_param.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
from __future__ import annotations
22

3-
from typing import Optional
4-
3+
from typing import Union, Iterable, Optional
54
from typing_extensions import Literal, Required, TypedDict
65

6+
from .chat_completion_content_part_param import ChatCompletionContentPartParam
7+
78
__all__ = ["ChatCompletionSystemMessageParam"]
89

910

1011
class ChatCompletionSystemMessageParam(TypedDict, total=False):
11-
content: Required[str]
12+
content: Required[Union[str, Iterable[ChatCompletionContentPartParam]]]
1213
"""The contents of the system message."""
1314

1415
role: Required[Literal["system"]]

volcenginesdkarkruntime/types/chat/chat_completion_tool_message_param.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
from __future__ import annotations
22

3-
from typing import Optional
3+
from typing import Optional, Union, Iterable
44

55
from typing_extensions import Literal, Required, TypedDict
6+
from .chat_completion_content_part_param import ChatCompletionContentPartParam
67

78
__all__ = ["ChatCompletionToolMessageParam"]
89

910

1011
class ChatCompletionToolMessageParam(TypedDict, total=False):
11-
content: Required[str]
12+
content: Required[Union[str, Iterable[ChatCompletionContentPartParam]]]
1213
"""The contents of the tool message."""
1314

1415
role: Required[Literal["tool"]]

volcenginesdkbilling/models/renew_instance_request.py

Lines changed: 29 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@ class RenewInstanceRequest(object):
3838
'product': 'str',
3939
'renew_related_instance': 'bool',
4040
'renewal_duration': 'int',
41-
'renewal_duration_unit': 'str'
41+
'renewal_duration_unit': 'str',
42+
'united_expire_day': 'str'
4243
}
4344

4445
attribute_map = {
@@ -47,10 +48,11 @@ class RenewInstanceRequest(object):
4748
'product': 'Product',
4849
'renew_related_instance': 'RenewRelatedInstance',
4950
'renewal_duration': 'RenewalDuration',
50-
'renewal_duration_unit': 'RenewalDurationUnit'
51+
'renewal_duration_unit': 'RenewalDurationUnit',
52+
'united_expire_day': 'UnitedExpireDay'
5153
}
5254

53-
def __init__(self, client_token=None, instance_id=None, product=None, renew_related_instance=None, renewal_duration=None, renewal_duration_unit=None, _configuration=None): # noqa: E501
55+
def __init__(self, client_token=None, instance_id=None, product=None, renew_related_instance=None, renewal_duration=None, renewal_duration_unit=None, united_expire_day=None, _configuration=None): # noqa: E501
5456
"""RenewInstanceRequest - a model defined in Swagger""" # noqa: E501
5557
if _configuration is None:
5658
_configuration = Configuration()
@@ -62,6 +64,7 @@ def __init__(self, client_token=None, instance_id=None, product=None, renew_rela
6264
self._renew_related_instance = None
6365
self._renewal_duration = None
6466
self._renewal_duration_unit = None
67+
self._united_expire_day = None
6568
self.discriminator = None
6669

6770
if client_token is not None:
@@ -73,6 +76,8 @@ def __init__(self, client_token=None, instance_id=None, product=None, renew_rela
7376
if renewal_duration is not None:
7477
self.renewal_duration = renewal_duration
7578
self.renewal_duration_unit = renewal_duration_unit
79+
if united_expire_day is not None:
80+
self.united_expire_day = united_expire_day
7681

7782
@property
7883
def client_token(self):
@@ -206,6 +211,27 @@ def renewal_duration_unit(self, renewal_duration_unit):
206211

207212
self._renewal_duration_unit = renewal_duration_unit
208213

214+
@property
215+
def united_expire_day(self):
216+
"""Gets the united_expire_day of this RenewInstanceRequest. # noqa: E501
217+
218+
219+
:return: The united_expire_day of this RenewInstanceRequest. # noqa: E501
220+
:rtype: str
221+
"""
222+
return self._united_expire_day
223+
224+
@united_expire_day.setter
225+
def united_expire_day(self, united_expire_day):
226+
"""Sets the united_expire_day of this RenewInstanceRequest.
227+
228+
229+
:param united_expire_day: The united_expire_day of this RenewInstanceRequest. # noqa: E501
230+
:type: str
231+
"""
232+
233+
self._united_expire_day = united_expire_day
234+
209235
def to_dict(self):
210236
"""Returns the model properties as a dict"""
211237
result = {}

0 commit comments

Comments
 (0)