Skip to content

Commit 66f54de

Browse files
Merge pull request #287 from jdcloud-apigateway/master
publish jdcloud-sdk-python 1.6.307
2 parents 7933670 + e244b39 commit 66f54de

4 files changed

Lines changed: 23 additions & 9 deletions

File tree

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
# 更新历史 #
22

3-
API版本:0.1.0
3+
API版本:2.0.0
44

5-
| 发布时间 | 版本号 | 更新 | 说明 |
6-
|------------|-------|-------|------|
7-
| 2025-04-29 | 0.1.0 | MVP版本 | 基础功能 |
8-
|------------|-------|-------|------|
9-
| 2025-12-29 | 0.2.0 | 图片处理 | 基础功能 |
5+
| 发布时间 | 版本号 | 更新 | 说明 |
6+
|------------|-------|----------|----------------|
7+
| 2025-04-29 | 0.1.0 | MVP版本 | 基础功能 |
8+
| 2025-12-29 | 0.2.0 | 图片处理 | 基础功能 |
9+
| 2026-01-28 | 2.0.0 | AI扩图 | 新增长转方无文字&方转长功能 |

jdcloud_sdk/services/aisearch/apis/ExternalSubmitSquareToLongTaskBase64Request.py

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def __init__(self, parameters, header=None, version="v1"):
3232

3333
class ExternalSubmitSquareToLongTaskBase64Parameters(object):
3434

35-
def __init__(self,apiKey, requestId, imageBase64):
35+
def __init__(self,apiKey, requestId, imageBase64, ):
3636
"""
3737
:param apiKey: api key编号
3838
:param requestId: 请求id,api key下唯一
@@ -42,4 +42,18 @@ def __init__(self,apiKey, requestId, imageBase64):
4242
self.apiKey = apiKey
4343
self.requestId = requestId
4444
self.imageBase64 = imageBase64
45+
self.taskType = None
46+
self.hwType = None
47+
48+
def setTaskType(self, taskType):
49+
"""
50+
:param taskType: (Optional) 任务类型
51+
"""
52+
self.taskType = taskType
53+
54+
def setHwType(self, hwType):
55+
"""
56+
:param hwType: (Optional) 扩图类型:1-竖向扩图,2-横向扩图(仅对方转长无文字任务有效)
57+
"""
58+
self.hwType = hwType
4559

jdcloud_sdk/services/aisearch/client/AisearchClient.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,4 @@ def __init__(self, credential, config=None, logger=None):
2626
if config is None:
2727
config = Config('aisearch.jdcloud-api.com')
2828

29-
super(AisearchClient, self).__init__(credential, config, 'aisearch', '0.2.0', logger)
29+
super(AisearchClient, self).__init__(credential, config, 'aisearch', '2.0.0', logger)

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
setup(
1111
name='jdcloud_sdk',
12-
version="1.6.306",
12+
version="1.6.307",
1313
long_description=long_description,
1414
long_description_content_type="text/markdown",
1515
author='JDCloud API Gateway Team',

0 commit comments

Comments
 (0)