diff --git a/jdcloud_sdk/services/aisearch/ChangeLog.md b/jdcloud_sdk/services/aisearch/ChangeLog.md index 67001faa..bb74f401 100644 --- a/jdcloud_sdk/services/aisearch/ChangeLog.md +++ b/jdcloud_sdk/services/aisearch/ChangeLog.md @@ -1,9 +1,9 @@ # 更新历史 # -API版本:0.1.0 +API版本:2.0.0 -| 发布时间 | 版本号 | 更新 | 说明 | -|------------|-------|-------|------| -| 2025-04-29 | 0.1.0 | MVP版本 | 基础功能 | -|------------|-------|-------|------| -| 2025-12-29 | 0.2.0 | 图片处理 | 基础功能 | +| 发布时间 | 版本号 | 更新 | 说明 | +|------------|-------|----------|----------------| +| 2025-04-29 | 0.1.0 | MVP版本 | 基础功能 | +| 2025-12-29 | 0.2.0 | 图片处理 | 基础功能 | +| 2026-01-28 | 2.0.0 | AI扩图 | 新增长转方无文字&方转长功能 | diff --git a/jdcloud_sdk/services/aisearch/apis/ExternalSubmitSquareToLongTaskBase64Request.py b/jdcloud_sdk/services/aisearch/apis/ExternalSubmitSquareToLongTaskBase64Request.py index 6170fb0c..b8fe9e8c 100644 --- a/jdcloud_sdk/services/aisearch/apis/ExternalSubmitSquareToLongTaskBase64Request.py +++ b/jdcloud_sdk/services/aisearch/apis/ExternalSubmitSquareToLongTaskBase64Request.py @@ -32,7 +32,7 @@ def __init__(self, parameters, header=None, version="v1"): class ExternalSubmitSquareToLongTaskBase64Parameters(object): - def __init__(self,apiKey, requestId, imageBase64): + def __init__(self,apiKey, requestId, imageBase64, ): """ :param apiKey: api key编号 :param requestId: 请求id,api key下唯一 @@ -42,4 +42,18 @@ def __init__(self,apiKey, requestId, imageBase64): self.apiKey = apiKey self.requestId = requestId self.imageBase64 = imageBase64 + self.taskType = None + self.hwType = None + + def setTaskType(self, taskType): + """ + :param taskType: (Optional) 任务类型 + """ + self.taskType = taskType + + def setHwType(self, hwType): + """ + :param hwType: (Optional) 扩图类型:1-竖向扩图,2-横向扩图(仅对方转长无文字任务有效) + """ + self.hwType = hwType diff --git a/jdcloud_sdk/services/aisearch/client/AisearchClient.py b/jdcloud_sdk/services/aisearch/client/AisearchClient.py index b395d92d..f6390c31 100644 --- a/jdcloud_sdk/services/aisearch/client/AisearchClient.py +++ b/jdcloud_sdk/services/aisearch/client/AisearchClient.py @@ -26,4 +26,4 @@ def __init__(self, credential, config=None, logger=None): if config is None: config = Config('aisearch.jdcloud-api.com') - super(AisearchClient, self).__init__(credential, config, 'aisearch', '0.2.0', logger) + super(AisearchClient, self).__init__(credential, config, 'aisearch', '2.0.0', logger) diff --git a/setup.py b/setup.py index b1fa0be2..ba5370be 100644 --- a/setup.py +++ b/setup.py @@ -9,7 +9,7 @@ setup( name='jdcloud_sdk', - version="1.6.306", + version="1.6.307", long_description=long_description, long_description_content_type="text/markdown", author='JDCloud API Gateway Team',