Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions jdcloud_sdk/services/aisearch/ChangeLog.md
Original file line number Diff line number Diff line change
@@ -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扩图 | 新增长转方无文字&方转长功能 |
Original file line number Diff line number Diff line change
Expand Up @@ -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下唯一
Expand All @@ -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

2 changes: 1 addition & 1 deletion jdcloud_sdk/services/aisearch/client/AisearchClient.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down