tccli 3.0.1346.1__py2.py3-none-any.whl → 3.0.1348.1__py2.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.
tccli/__init__.py CHANGED
@@ -1 +1 @@
1
- __version__ = '3.0.1346.1'
1
+ __version__ = '3.0.1348.1'
@@ -39,6 +39,9 @@ SERVICE_VERSIONS = {
39
39
  "afc": [
40
40
  "2020-02-26"
41
41
  ],
42
+ "ai3d": [
43
+ "2025-05-13"
44
+ ],
42
45
  "aiart": [
43
46
  "2022-12-29"
44
47
  ],
@@ -0,0 +1,4 @@
1
+ # -*- coding: utf-8 -*-
2
+
3
+ from tccli.services.ai3d.ai3d_client import action_caller
4
+
@@ -0,0 +1,260 @@
1
+ # -*- coding: utf-8 -*-
2
+ import os
3
+ import sys
4
+ import six
5
+ import json
6
+ import tccli.options_define as OptionsDefine
7
+ import tccli.format_output as FormatOutput
8
+ from tccli import __version__
9
+ from tccli.utils import Utils
10
+ from tccli.exceptions import ConfigurationError, ClientError, ParamError
11
+ from tencentcloud.common import credential
12
+ from tencentcloud.common.profile.http_profile import HttpProfile
13
+ from tencentcloud.common.profile.client_profile import ClientProfile
14
+ from tencentcloud.ai3d.v20250513 import ai3d_client as ai3d_client_v20250513
15
+ from tencentcloud.ai3d.v20250513 import models as models_v20250513
16
+
17
+ from jmespath import search
18
+ import time
19
+
20
+ def doSubmitHunyuanTo3DJob(args, parsed_globals):
21
+ g_param = parse_global_arg(parsed_globals)
22
+
23
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
24
+ cred = credential.CVMRoleCredential()
25
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
26
+ cred = credential.STSAssumeRoleCredential(
27
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
28
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
29
+ )
30
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
31
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
32
+ else:
33
+ cred = credential.Credential(
34
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
35
+ )
36
+ http_profile = HttpProfile(
37
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
38
+ reqMethod="POST",
39
+ endpoint=g_param[OptionsDefine.Endpoint],
40
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
41
+ )
42
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
43
+ if g_param[OptionsDefine.Language]:
44
+ profile.language = g_param[OptionsDefine.Language]
45
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
46
+ client = mod.Ai3dClient(cred, g_param[OptionsDefine.Region], profile)
47
+ client._sdkVersion += ("_CLI_" + __version__)
48
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
49
+ model = models.SubmitHunyuanTo3DJobRequest()
50
+ model.from_json_string(json.dumps(args))
51
+ start_time = time.time()
52
+ while True:
53
+ rsp = client.SubmitHunyuanTo3DJob(model)
54
+ result = rsp.to_json_string()
55
+ try:
56
+ json_obj = json.loads(result)
57
+ except TypeError as e:
58
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
59
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
60
+ break
61
+ cur_time = time.time()
62
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
63
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
64
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
65
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
66
+ else:
67
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
68
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
69
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
70
+
71
+
72
+ def doQueryHunyuanTo3DJob(args, parsed_globals):
73
+ g_param = parse_global_arg(parsed_globals)
74
+
75
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
76
+ cred = credential.CVMRoleCredential()
77
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
78
+ cred = credential.STSAssumeRoleCredential(
79
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
80
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
81
+ )
82
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
83
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
84
+ else:
85
+ cred = credential.Credential(
86
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
87
+ )
88
+ http_profile = HttpProfile(
89
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
90
+ reqMethod="POST",
91
+ endpoint=g_param[OptionsDefine.Endpoint],
92
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
93
+ )
94
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
95
+ if g_param[OptionsDefine.Language]:
96
+ profile.language = g_param[OptionsDefine.Language]
97
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
98
+ client = mod.Ai3dClient(cred, g_param[OptionsDefine.Region], profile)
99
+ client._sdkVersion += ("_CLI_" + __version__)
100
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
101
+ model = models.QueryHunyuanTo3DJobRequest()
102
+ model.from_json_string(json.dumps(args))
103
+ start_time = time.time()
104
+ while True:
105
+ rsp = client.QueryHunyuanTo3DJob(model)
106
+ result = rsp.to_json_string()
107
+ try:
108
+ json_obj = json.loads(result)
109
+ except TypeError as e:
110
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
111
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
112
+ break
113
+ cur_time = time.time()
114
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
115
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
116
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
117
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
118
+ else:
119
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
120
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
121
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
122
+
123
+
124
+ CLIENT_MAP = {
125
+ "v20250513": ai3d_client_v20250513,
126
+
127
+ }
128
+
129
+ MODELS_MAP = {
130
+ "v20250513": models_v20250513,
131
+
132
+ }
133
+
134
+ ACTION_MAP = {
135
+ "SubmitHunyuanTo3DJob": doSubmitHunyuanTo3DJob,
136
+ "QueryHunyuanTo3DJob": doQueryHunyuanTo3DJob,
137
+
138
+ }
139
+
140
+ AVAILABLE_VERSION_LIST = [
141
+ "v20250513",
142
+
143
+ ]
144
+
145
+
146
+ def action_caller():
147
+ return ACTION_MAP
148
+
149
+
150
+ def parse_global_arg(parsed_globals):
151
+ g_param = parsed_globals
152
+ cvm_role_flag = True
153
+ for param in parsed_globals.keys():
154
+ if param in [OptionsDefine.SecretKey, OptionsDefine.SecretId, OptionsDefine.RoleArn,
155
+ OptionsDefine.RoleSessionName]:
156
+ if parsed_globals[param] is not None:
157
+ cvm_role_flag = False
158
+ break
159
+ is_exist_profile = True
160
+ if not parsed_globals["profile"]:
161
+ is_exist_profile = False
162
+ g_param["profile"] = os.environ.get("TCCLI_PROFILE", "default")
163
+
164
+ configure_path = os.path.join(os.path.expanduser("~"), ".tccli")
165
+ is_conf_exist, conf_path = Utils.file_existed(configure_path, g_param["profile"] + ".configure")
166
+ is_cred_exist, cred_path = Utils.file_existed(configure_path, g_param["profile"] + ".credential")
167
+
168
+ conf = {}
169
+ cred = {}
170
+
171
+ if is_conf_exist:
172
+ conf = Utils.load_json_msg(conf_path)
173
+ if is_cred_exist:
174
+ cred = Utils.load_json_msg(cred_path)
175
+
176
+ if not (isinstance(conf, dict) and isinstance(cred, dict)):
177
+ raise ConfigurationError(
178
+ "file: %s or %s is not json format"
179
+ % (g_param["profile"] + ".configure", g_param["profile"] + ".credential"))
180
+
181
+ if OptionsDefine.Token not in cred:
182
+ cred[OptionsDefine.Token] = None
183
+
184
+ if not is_exist_profile:
185
+ if os.environ.get(OptionsDefine.ENV_SECRET_ID) and os.environ.get(OptionsDefine.ENV_SECRET_KEY):
186
+ cred[OptionsDefine.SecretId] = os.environ.get(OptionsDefine.ENV_SECRET_ID)
187
+ cred[OptionsDefine.SecretKey] = os.environ.get(OptionsDefine.ENV_SECRET_KEY)
188
+ cred[OptionsDefine.Token] = os.environ.get(OptionsDefine.ENV_TOKEN)
189
+ cvm_role_flag = False
190
+
191
+ if os.environ.get(OptionsDefine.ENV_REGION):
192
+ conf[OptionsDefine.SysParam][OptionsDefine.Region] = os.environ.get(OptionsDefine.ENV_REGION)
193
+
194
+ if os.environ.get(OptionsDefine.ENV_ROLE_ARN) and os.environ.get(OptionsDefine.ENV_ROLE_SESSION_NAME):
195
+ cred[OptionsDefine.RoleArn] = os.environ.get(OptionsDefine.ENV_ROLE_ARN)
196
+ cred[OptionsDefine.RoleSessionName] = os.environ.get(OptionsDefine.ENV_ROLE_SESSION_NAME)
197
+ cvm_role_flag = False
198
+
199
+ if cvm_role_flag:
200
+ if "type" in cred and cred["type"] == "cvm-role":
201
+ g_param[OptionsDefine.UseCVMRole.replace('-', '_')] = True
202
+
203
+ for param in g_param.keys():
204
+ if g_param[param] is None:
205
+ if param in [OptionsDefine.SecretKey, OptionsDefine.SecretId, OptionsDefine.Token]:
206
+ if param in cred:
207
+ g_param[param] = cred[param]
208
+ elif not (g_param[OptionsDefine.UseCVMRole.replace('-', '_')]
209
+ or os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN)):
210
+ raise ConfigurationError("%s is invalid" % param)
211
+ elif param in [OptionsDefine.Region, OptionsDefine.Output, OptionsDefine.Language]:
212
+ if param in conf[OptionsDefine.SysParam]:
213
+ g_param[param] = conf[OptionsDefine.SysParam][param]
214
+ elif param != OptionsDefine.Language:
215
+ raise ConfigurationError("%s is invalid" % param)
216
+ elif param.replace('_', '-') in [OptionsDefine.RoleArn, OptionsDefine.RoleSessionName]:
217
+ if param.replace('_', '-') in cred:
218
+ g_param[param] = cred[param.replace('_', '-')]
219
+
220
+ try:
221
+ if g_param[OptionsDefine.ServiceVersion]:
222
+ g_param[OptionsDefine.Version] = "v" + g_param[OptionsDefine.ServiceVersion].replace('-', '')
223
+ else:
224
+ version = conf["ai3d"][OptionsDefine.Version]
225
+ g_param[OptionsDefine.Version] = "v" + version.replace('-', '')
226
+
227
+ if g_param[OptionsDefine.Endpoint] is None:
228
+ g_param[OptionsDefine.Endpoint] = conf["ai3d"][OptionsDefine.Endpoint]
229
+ g_param["sts_cred_endpoint"] = conf.get("sts", {}).get("endpoint")
230
+ except Exception as err:
231
+ raise ConfigurationError("config file:%s error, %s" % (conf_path, str(err)))
232
+
233
+ if g_param[OptionsDefine.Version] not in AVAILABLE_VERSION_LIST:
234
+ raise Exception("available versions: %s" % " ".join(AVAILABLE_VERSION_LIST))
235
+
236
+ if g_param[OptionsDefine.Waiter]:
237
+ param = eval(g_param[OptionsDefine.Waiter])
238
+ if 'expr' not in param:
239
+ raise Exception('`expr` in `--waiter` must be defined')
240
+ if 'to' not in param:
241
+ raise Exception('`to` in `--waiter` must be defined')
242
+ if 'timeout' not in param:
243
+ if 'waiter' in conf and 'timeout' in conf['waiter']:
244
+ param['timeout'] = conf['waiter']['timeout']
245
+ else:
246
+ param['timeout'] = 180
247
+ if 'interval' not in param:
248
+ if 'waiter' in conf and 'interval' in conf['waiter']:
249
+ param['interval'] = conf['waiter']['interval']
250
+ else:
251
+ param['interval'] = 5
252
+ param['interval'] = min(param['interval'], param['timeout'])
253
+ g_param['OptionsDefine.WaiterInfo'] = param
254
+
255
+ if six.PY2:
256
+ for key, value in g_param.items():
257
+ if isinstance(value, six.text_type):
258
+ g_param[key] = value.encode('utf-8')
259
+ return g_param
260
+
@@ -0,0 +1,239 @@
1
+ {
2
+ "actions": {
3
+ "QueryHunyuanTo3DJob": {
4
+ "document": "混元生3D接口,基于混元大模型,根据输入的文本描述/图片智能生成3D。\n默认提供1个并发,代表最多能同时处理1个已提交的任务,上一个任务处理完毕后,才能开始处理下一个任务。",
5
+ "input": "QueryHunyuanTo3DJobRequest",
6
+ "name": "查询混元生3D任务",
7
+ "output": "QueryHunyuanTo3DJobResponse",
8
+ "status": "online"
9
+ },
10
+ "SubmitHunyuanTo3DJob": {
11
+ "document": "混元生3D接口,基于混元大模型,根据输入的文本描述/图片智能生成3D。\n默认提供1个并发,代表最多能同时处理1个已提交的任务,上一个任务处理完毕后,才能开始处理下一个任务。",
12
+ "input": "SubmitHunyuanTo3DJobRequest",
13
+ "name": "提交混元生3D任务",
14
+ "output": "SubmitHunyuanTo3DJobResponse",
15
+ "status": "online"
16
+ }
17
+ },
18
+ "metadata": {
19
+ "apiVersion": "2025-05-13",
20
+ "api_brief": "基于混元大模型,支持根据文本描述或上传2D图像以及多视角图像,自动生成带PBR材质的高质量 3D 模型。",
21
+ "serviceNameCN": "腾讯混元生3D",
22
+ "serviceShortName": "ai3d"
23
+ },
24
+ "objects": {
25
+ "File3D": {
26
+ "document": "3D文件",
27
+ "members": [
28
+ {
29
+ "disabled": false,
30
+ "document": "3D文件的格式。取值范围:OBJ",
31
+ "example": "OBJ",
32
+ "member": "string",
33
+ "name": "Type",
34
+ "output_required": false,
35
+ "required": false,
36
+ "type": "string",
37
+ "value_allowed_null": false
38
+ },
39
+ {
40
+ "disabled": false,
41
+ "document": "文件的Url(有效期24小时)",
42
+ "example": "https://xxx.obj",
43
+ "member": "string",
44
+ "name": "Url",
45
+ "output_required": false,
46
+ "required": false,
47
+ "type": "string",
48
+ "value_allowed_null": false
49
+ },
50
+ {
51
+ "disabled": false,
52
+ "document": "预览图片Url",
53
+ "example": "https://xxx.png",
54
+ "member": "string",
55
+ "name": "PreviewImageUrl",
56
+ "output_required": false,
57
+ "required": false,
58
+ "type": "string",
59
+ "value_allowed_null": false
60
+ }
61
+ ],
62
+ "usage": "both"
63
+ },
64
+ "QueryHunyuanTo3DJobRequest": {
65
+ "document": "QueryHunyuanTo3DJob请求参数结构体",
66
+ "members": [
67
+ {
68
+ "disabled": false,
69
+ "document": "任务ID。",
70
+ "example": "1315932989749215232",
71
+ "member": "string",
72
+ "name": "JobId",
73
+ "required": false,
74
+ "type": "string"
75
+ }
76
+ ],
77
+ "type": "object"
78
+ },
79
+ "QueryHunyuanTo3DJobResponse": {
80
+ "document": "QueryHunyuanTo3DJob返回参数结构体",
81
+ "members": [
82
+ {
83
+ "disabled": false,
84
+ "document": "任务状态。WAIT:等待中,RUN:执行中,FAIL:任务失败,DONE:任务成功",
85
+ "example": "RUN",
86
+ "member": "string",
87
+ "name": "Status",
88
+ "output_required": false,
89
+ "type": "string",
90
+ "value_allowed_null": false
91
+ },
92
+ {
93
+ "disabled": false,
94
+ "document": "错误码",
95
+ "example": "InvalidParameter",
96
+ "member": "string",
97
+ "name": "ErrorCode",
98
+ "output_required": false,
99
+ "type": "string",
100
+ "value_allowed_null": false
101
+ },
102
+ {
103
+ "disabled": false,
104
+ "document": "错误信息",
105
+ "example": "参数错误",
106
+ "member": "string",
107
+ "name": "ErrorMessage",
108
+ "output_required": false,
109
+ "type": "string",
110
+ "value_allowed_null": false
111
+ },
112
+ {
113
+ "disabled": false,
114
+ "document": "生成的3D文件数组。",
115
+ "example": "无",
116
+ "member": "File3D",
117
+ "name": "ResultFile3Ds",
118
+ "output_required": false,
119
+ "type": "list",
120
+ "value_allowed_null": false
121
+ },
122
+ {
123
+ "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
124
+ "member": "string",
125
+ "name": "RequestId",
126
+ "type": "string"
127
+ }
128
+ ],
129
+ "type": "object"
130
+ },
131
+ "SubmitHunyuanTo3DJobRequest": {
132
+ "document": "SubmitHunyuanTo3DJob请求参数结构体",
133
+ "members": [
134
+ {
135
+ "disabled": false,
136
+ "document": "文生3D,3D内容的描述,中文正向提示词。\n最多支持200个 utf-8 字符。\n文生3D, image、image_url和 prompt必填其一,且prompt和image/image_url不能同时存在。",
137
+ "example": "一只小猫",
138
+ "member": "string",
139
+ "name": "Prompt",
140
+ "required": false,
141
+ "type": "string"
142
+ },
143
+ {
144
+ "disabled": false,
145
+ "document": "输入图 Base64 数据。\n大小:单边分辨率要求不小于128,不大于5000。大小不超过8m(base64编码后会大30%左右,建议实际输入图片不超过6m)\n格式:jpg,png,jpeg,webp。\nImageBase64、ImageUrl和 Prompt必填其一,且Prompt和ImageBase64/ImageUrl不能同时存在。",
146
+ "example": "/9j/4QlQaHR0c...N6a2M5ZCI",
147
+ "member": "string",
148
+ "name": "ImageBase64",
149
+ "required": false,
150
+ "type": "string"
151
+ },
152
+ {
153
+ "disabled": false,
154
+ "document": "输入图Url。\n大小:单边分辨率要求不小于128,不大于5000。大小不超过8m(base64编码后会大30%左右,建议实际输入图片不超过6m)\n格式:jpg,png,jpeg,webp。\nImageBase64/ImageUrl和 Prompt必填其一,且Prompt和ImageBase64/ImageUrl不能同时存在。",
155
+ "example": "https://xxx.com/imageurl.jpg",
156
+ "member": "string",
157
+ "name": "ImageUrl",
158
+ "required": false,
159
+ "type": "string"
160
+ },
161
+ {
162
+ "disabled": false,
163
+ "document": "多视角的模型图片,视角参考值:\nleft:左视图;\nright:右视图;\nback:后视图;\n\n每个视角仅限制一张图片。\n●图片大小限制:编码后大小不可超过8M。\n●图片分辨率限制:单边分辨率小于5000且大于128。\n●支持图片格式:支持jpg或png",
164
+ "example": "[{\"ViewType\":\"back\", \"ViewImageUrl\":\"https://xxx.com/imageurl.jpg\"}]",
165
+ "member": "ViewImage",
166
+ "name": "MultiViewImages",
167
+ "required": false,
168
+ "type": "list"
169
+ },
170
+ {
171
+ "disabled": false,
172
+ "document": "生成模型的格式,仅限制生成一种格式。\n生成模型文件组默认返回obj格式。\n可选值:OBJ,GLB,STL,USDZ,FBX,MP4。",
173
+ "example": "OBJ",
174
+ "member": "string",
175
+ "name": "ResultFormat",
176
+ "required": false,
177
+ "type": "string"
178
+ },
179
+ {
180
+ "disabled": false,
181
+ "document": "是否开启 PBR材质生成,默认 false。",
182
+ "example": "false",
183
+ "member": "bool",
184
+ "name": "EnablePBR",
185
+ "required": false,
186
+ "type": "bool"
187
+ }
188
+ ],
189
+ "type": "object"
190
+ },
191
+ "SubmitHunyuanTo3DJobResponse": {
192
+ "document": "SubmitHunyuanTo3DJob返回参数结构体",
193
+ "members": [
194
+ {
195
+ "disabled": false,
196
+ "document": "任务ID(有效期24小时)",
197
+ "example": "1315932989749215232",
198
+ "member": "string",
199
+ "name": "JobId",
200
+ "output_required": false,
201
+ "type": "string",
202
+ "value_allowed_null": false
203
+ },
204
+ {
205
+ "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
206
+ "member": "string",
207
+ "name": "RequestId",
208
+ "type": "string"
209
+ }
210
+ ],
211
+ "type": "object"
212
+ },
213
+ "ViewImage": {
214
+ "document": "多视角图片",
215
+ "members": [
216
+ {
217
+ "disabled": false,
218
+ "document": "视角类型。\n取值:back、left、right",
219
+ "example": "back",
220
+ "member": "string",
221
+ "name": "ViewType",
222
+ "required": false,
223
+ "type": "string"
224
+ },
225
+ {
226
+ "disabled": false,
227
+ "document": "图片Url地址",
228
+ "example": "http://xxx.com/image.jpg",
229
+ "member": "string",
230
+ "name": "ViewImageUrl",
231
+ "required": false,
232
+ "type": "string"
233
+ }
234
+ ],
235
+ "usage": "in"
236
+ }
237
+ },
238
+ "version": "1.0"
239
+ }
@@ -0,0 +1,21 @@
1
+ {
2
+ "actions": {
3
+ "QueryHunyuanTo3DJob": [
4
+ {
5
+ "document": "",
6
+ "input": "POST / HTTP/1.1\nHost: ai3d.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: QueryHunyuanTo3DJob\n<公共请求参数>\n\n{\n \"JobId\": \"1315932989749215232\"\n}",
7
+ "output": "{\n \"Response\": {\n \"ErrorCode\": \"\",\n \"ErrorMessage\": \"\",\n \"RequestId\": \"cfbcde8e-dc35-47ec-adda-0fa6d5db1dd2\",\n \"ResultFile3Ds\": [\n {\n \"Type\": \"STL\",\n \"Url\": \"https://xxx.cos.ap-guangzhou.tencentcos.cn/xxx.stl\"\n }\n ],\n \"Status\": \"DONE\"\n }\n}",
8
+ "title": "调用请求示例"
9
+ }
10
+ ],
11
+ "SubmitHunyuanTo3DJob": [
12
+ {
13
+ "document": "",
14
+ "input": "POST / HTTP/1.1\nHost: ai3d.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: SubmitHunyuanTo3DJob\n<公共请求参数>\n\n{\n \"ImageUrl\": \"https://xxx.png\"\n}",
15
+ "output": "{\n \"Response\": {\n \"JobId\": \"1315932989749215232\",\n \"RequestId\": \"1efb4823-902e-4809-9656-aea168410e54\"\n }\n}",
16
+ "title": "调用请求示例"
17
+ }
18
+ ]
19
+ },
20
+ "version": "1.0"
21
+ }
@@ -8497,6 +8497,15 @@
8497
8497
  "name": "Priority",
8498
8498
  "required": false,
8499
8499
  "type": "int"
8500
+ },
8501
+ {
8502
+ "disabled": false,
8503
+ "document": "是否将文本加入到llm历史上下文中",
8504
+ "example": "true",
8505
+ "member": "bool",
8506
+ "name": "AddHistory",
8507
+ "required": false,
8508
+ "type": "bool"
8500
8509
  }
8501
8510
  ],
8502
8511
  "usage": "in"