alibabacloud-lingmou20250527 1.1.0__py3-none-any.whl → 1.2.1__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.
- alibabacloud_lingmou20250527/__init__.py +1 -1
- alibabacloud_lingmou20250527/client.py +452 -0
- alibabacloud_lingmou20250527/models.py +1092 -177
- {alibabacloud_lingmou20250527-1.1.0.dist-info → alibabacloud_lingmou20250527-1.2.1.dist-info}/METADATA +1 -1
- alibabacloud_lingmou20250527-1.2.1.dist-info/RECORD +8 -0
- alibabacloud_lingmou20250527-1.1.0.dist-info/RECORD +0 -8
- {alibabacloud_lingmou20250527-1.1.0.dist-info → alibabacloud_lingmou20250527-1.2.1.dist-info}/LICENSE +0 -0
- {alibabacloud_lingmou20250527-1.1.0.dist-info → alibabacloud_lingmou20250527-1.2.1.dist-info}/WHEEL +0 -0
- {alibabacloud_lingmou20250527-1.1.0.dist-info → alibabacloud_lingmou20250527-1.2.1.dist-info}/top_level.txt +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
__version__ = '1.1
|
|
1
|
+
__version__ = '1.2.1'
|
|
@@ -157,6 +157,222 @@ class Client(OpenApiClient):
|
|
|
157
157
|
headers = {}
|
|
158
158
|
return await self.close_chat_instance_sessions_with_options_async(instance_id, request, headers, runtime)
|
|
159
159
|
|
|
160
|
+
def create_background_pic_with_options(
|
|
161
|
+
self,
|
|
162
|
+
request: ling_mou_20250527_models.CreateBackgroundPicRequest,
|
|
163
|
+
headers: Dict[str, str],
|
|
164
|
+
runtime: util_models.RuntimeOptions,
|
|
165
|
+
) -> ling_mou_20250527_models.CreateBackgroundPicResponse:
|
|
166
|
+
"""
|
|
167
|
+
@summary 创建背景素材
|
|
168
|
+
|
|
169
|
+
@param request: CreateBackgroundPicRequest
|
|
170
|
+
@param headers: map
|
|
171
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
172
|
+
@return: CreateBackgroundPicResponse
|
|
173
|
+
"""
|
|
174
|
+
UtilClient.validate_model(request)
|
|
175
|
+
query = {}
|
|
176
|
+
if not UtilClient.is_unset(request.filename):
|
|
177
|
+
query['filename'] = request.filename
|
|
178
|
+
if not UtilClient.is_unset(request.oss_key):
|
|
179
|
+
query['ossKey'] = request.oss_key
|
|
180
|
+
req = open_api_models.OpenApiRequest(
|
|
181
|
+
headers=headers,
|
|
182
|
+
query=OpenApiUtilClient.query(query)
|
|
183
|
+
)
|
|
184
|
+
params = open_api_models.Params(
|
|
185
|
+
action='CreateBackgroundPic',
|
|
186
|
+
version='2025-05-27',
|
|
187
|
+
protocol='HTTPS',
|
|
188
|
+
pathname=f'/openapi/chat/createBackgroundPic',
|
|
189
|
+
method='POST',
|
|
190
|
+
auth_type='AK',
|
|
191
|
+
style='ROA',
|
|
192
|
+
req_body_type='json',
|
|
193
|
+
body_type='json'
|
|
194
|
+
)
|
|
195
|
+
return TeaCore.from_map(
|
|
196
|
+
ling_mou_20250527_models.CreateBackgroundPicResponse(),
|
|
197
|
+
self.call_api(params, req, runtime)
|
|
198
|
+
)
|
|
199
|
+
|
|
200
|
+
async def create_background_pic_with_options_async(
|
|
201
|
+
self,
|
|
202
|
+
request: ling_mou_20250527_models.CreateBackgroundPicRequest,
|
|
203
|
+
headers: Dict[str, str],
|
|
204
|
+
runtime: util_models.RuntimeOptions,
|
|
205
|
+
) -> ling_mou_20250527_models.CreateBackgroundPicResponse:
|
|
206
|
+
"""
|
|
207
|
+
@summary 创建背景素材
|
|
208
|
+
|
|
209
|
+
@param request: CreateBackgroundPicRequest
|
|
210
|
+
@param headers: map
|
|
211
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
212
|
+
@return: CreateBackgroundPicResponse
|
|
213
|
+
"""
|
|
214
|
+
UtilClient.validate_model(request)
|
|
215
|
+
query = {}
|
|
216
|
+
if not UtilClient.is_unset(request.filename):
|
|
217
|
+
query['filename'] = request.filename
|
|
218
|
+
if not UtilClient.is_unset(request.oss_key):
|
|
219
|
+
query['ossKey'] = request.oss_key
|
|
220
|
+
req = open_api_models.OpenApiRequest(
|
|
221
|
+
headers=headers,
|
|
222
|
+
query=OpenApiUtilClient.query(query)
|
|
223
|
+
)
|
|
224
|
+
params = open_api_models.Params(
|
|
225
|
+
action='CreateBackgroundPic',
|
|
226
|
+
version='2025-05-27',
|
|
227
|
+
protocol='HTTPS',
|
|
228
|
+
pathname=f'/openapi/chat/createBackgroundPic',
|
|
229
|
+
method='POST',
|
|
230
|
+
auth_type='AK',
|
|
231
|
+
style='ROA',
|
|
232
|
+
req_body_type='json',
|
|
233
|
+
body_type='json'
|
|
234
|
+
)
|
|
235
|
+
return TeaCore.from_map(
|
|
236
|
+
ling_mou_20250527_models.CreateBackgroundPicResponse(),
|
|
237
|
+
await self.call_api_async(params, req, runtime)
|
|
238
|
+
)
|
|
239
|
+
|
|
240
|
+
def create_background_pic(
|
|
241
|
+
self,
|
|
242
|
+
request: ling_mou_20250527_models.CreateBackgroundPicRequest,
|
|
243
|
+
) -> ling_mou_20250527_models.CreateBackgroundPicResponse:
|
|
244
|
+
"""
|
|
245
|
+
@summary 创建背景素材
|
|
246
|
+
|
|
247
|
+
@param request: CreateBackgroundPicRequest
|
|
248
|
+
@return: CreateBackgroundPicResponse
|
|
249
|
+
"""
|
|
250
|
+
runtime = util_models.RuntimeOptions()
|
|
251
|
+
headers = {}
|
|
252
|
+
return self.create_background_pic_with_options(request, headers, runtime)
|
|
253
|
+
|
|
254
|
+
async def create_background_pic_async(
|
|
255
|
+
self,
|
|
256
|
+
request: ling_mou_20250527_models.CreateBackgroundPicRequest,
|
|
257
|
+
) -> ling_mou_20250527_models.CreateBackgroundPicResponse:
|
|
258
|
+
"""
|
|
259
|
+
@summary 创建背景素材
|
|
260
|
+
|
|
261
|
+
@param request: CreateBackgroundPicRequest
|
|
262
|
+
@return: CreateBackgroundPicResponse
|
|
263
|
+
"""
|
|
264
|
+
runtime = util_models.RuntimeOptions()
|
|
265
|
+
headers = {}
|
|
266
|
+
return await self.create_background_pic_with_options_async(request, headers, runtime)
|
|
267
|
+
|
|
268
|
+
def create_chat_config_with_options(
|
|
269
|
+
self,
|
|
270
|
+
request: ling_mou_20250527_models.CreateChatConfigRequest,
|
|
271
|
+
headers: Dict[str, str],
|
|
272
|
+
runtime: util_models.RuntimeOptions,
|
|
273
|
+
) -> ling_mou_20250527_models.CreateChatConfigResponse:
|
|
274
|
+
"""
|
|
275
|
+
@summary 背景配置
|
|
276
|
+
|
|
277
|
+
@param request: CreateChatConfigRequest
|
|
278
|
+
@param headers: map
|
|
279
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
280
|
+
@return: CreateChatConfigResponse
|
|
281
|
+
"""
|
|
282
|
+
UtilClient.validate_model(request)
|
|
283
|
+
query = {}
|
|
284
|
+
if not UtilClient.is_unset(request.avatar_id):
|
|
285
|
+
query['avatarId'] = request.avatar_id
|
|
286
|
+
if not UtilClient.is_unset(request.background_id):
|
|
287
|
+
query['backgroundId'] = request.background_id
|
|
288
|
+
req = open_api_models.OpenApiRequest(
|
|
289
|
+
headers=headers,
|
|
290
|
+
query=OpenApiUtilClient.query(query)
|
|
291
|
+
)
|
|
292
|
+
params = open_api_models.Params(
|
|
293
|
+
action='CreateChatConfig',
|
|
294
|
+
version='2025-05-27',
|
|
295
|
+
protocol='HTTPS',
|
|
296
|
+
pathname=f'/openapi/chat/createChatConfig',
|
|
297
|
+
method='POST',
|
|
298
|
+
auth_type='AK',
|
|
299
|
+
style='ROA',
|
|
300
|
+
req_body_type='json',
|
|
301
|
+
body_type='json'
|
|
302
|
+
)
|
|
303
|
+
return TeaCore.from_map(
|
|
304
|
+
ling_mou_20250527_models.CreateChatConfigResponse(),
|
|
305
|
+
self.call_api(params, req, runtime)
|
|
306
|
+
)
|
|
307
|
+
|
|
308
|
+
async def create_chat_config_with_options_async(
|
|
309
|
+
self,
|
|
310
|
+
request: ling_mou_20250527_models.CreateChatConfigRequest,
|
|
311
|
+
headers: Dict[str, str],
|
|
312
|
+
runtime: util_models.RuntimeOptions,
|
|
313
|
+
) -> ling_mou_20250527_models.CreateChatConfigResponse:
|
|
314
|
+
"""
|
|
315
|
+
@summary 背景配置
|
|
316
|
+
|
|
317
|
+
@param request: CreateChatConfigRequest
|
|
318
|
+
@param headers: map
|
|
319
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
320
|
+
@return: CreateChatConfigResponse
|
|
321
|
+
"""
|
|
322
|
+
UtilClient.validate_model(request)
|
|
323
|
+
query = {}
|
|
324
|
+
if not UtilClient.is_unset(request.avatar_id):
|
|
325
|
+
query['avatarId'] = request.avatar_id
|
|
326
|
+
if not UtilClient.is_unset(request.background_id):
|
|
327
|
+
query['backgroundId'] = request.background_id
|
|
328
|
+
req = open_api_models.OpenApiRequest(
|
|
329
|
+
headers=headers,
|
|
330
|
+
query=OpenApiUtilClient.query(query)
|
|
331
|
+
)
|
|
332
|
+
params = open_api_models.Params(
|
|
333
|
+
action='CreateChatConfig',
|
|
334
|
+
version='2025-05-27',
|
|
335
|
+
protocol='HTTPS',
|
|
336
|
+
pathname=f'/openapi/chat/createChatConfig',
|
|
337
|
+
method='POST',
|
|
338
|
+
auth_type='AK',
|
|
339
|
+
style='ROA',
|
|
340
|
+
req_body_type='json',
|
|
341
|
+
body_type='json'
|
|
342
|
+
)
|
|
343
|
+
return TeaCore.from_map(
|
|
344
|
+
ling_mou_20250527_models.CreateChatConfigResponse(),
|
|
345
|
+
await self.call_api_async(params, req, runtime)
|
|
346
|
+
)
|
|
347
|
+
|
|
348
|
+
def create_chat_config(
|
|
349
|
+
self,
|
|
350
|
+
request: ling_mou_20250527_models.CreateChatConfigRequest,
|
|
351
|
+
) -> ling_mou_20250527_models.CreateChatConfigResponse:
|
|
352
|
+
"""
|
|
353
|
+
@summary 背景配置
|
|
354
|
+
|
|
355
|
+
@param request: CreateChatConfigRequest
|
|
356
|
+
@return: CreateChatConfigResponse
|
|
357
|
+
"""
|
|
358
|
+
runtime = util_models.RuntimeOptions()
|
|
359
|
+
headers = {}
|
|
360
|
+
return self.create_chat_config_with_options(request, headers, runtime)
|
|
361
|
+
|
|
362
|
+
async def create_chat_config_async(
|
|
363
|
+
self,
|
|
364
|
+
request: ling_mou_20250527_models.CreateChatConfigRequest,
|
|
365
|
+
) -> ling_mou_20250527_models.CreateChatConfigResponse:
|
|
366
|
+
"""
|
|
367
|
+
@summary 背景配置
|
|
368
|
+
|
|
369
|
+
@param request: CreateChatConfigRequest
|
|
370
|
+
@return: CreateChatConfigResponse
|
|
371
|
+
"""
|
|
372
|
+
runtime = util_models.RuntimeOptions()
|
|
373
|
+
headers = {}
|
|
374
|
+
return await self.create_chat_config_with_options_async(request, headers, runtime)
|
|
375
|
+
|
|
160
376
|
def create_chat_session_with_options(
|
|
161
377
|
self,
|
|
162
378
|
id: str,
|
|
@@ -273,6 +489,242 @@ class Client(OpenApiClient):
|
|
|
273
489
|
headers = {}
|
|
274
490
|
return await self.create_chat_session_with_options_async(id, request, headers, runtime)
|
|
275
491
|
|
|
492
|
+
def create_no_train_pic_avatar_with_options(
|
|
493
|
+
self,
|
|
494
|
+
request: ling_mou_20250527_models.CreateNoTrainPicAvatarRequest,
|
|
495
|
+
headers: Dict[str, str],
|
|
496
|
+
runtime: util_models.RuntimeOptions,
|
|
497
|
+
) -> ling_mou_20250527_models.CreateNoTrainPicAvatarResponse:
|
|
498
|
+
"""
|
|
499
|
+
@summary 创建对话免训照片数字人
|
|
500
|
+
|
|
501
|
+
@param request: CreateNoTrainPicAvatarRequest
|
|
502
|
+
@param headers: map
|
|
503
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
504
|
+
@return: CreateNoTrainPicAvatarResponse
|
|
505
|
+
"""
|
|
506
|
+
UtilClient.validate_model(request)
|
|
507
|
+
query = {}
|
|
508
|
+
if not UtilClient.is_unset(request.expressiveness):
|
|
509
|
+
query['expressiveness'] = request.expressiveness
|
|
510
|
+
if not UtilClient.is_unset(request.gender):
|
|
511
|
+
query['gender'] = request.gender
|
|
512
|
+
if not UtilClient.is_unset(request.generate_assets):
|
|
513
|
+
query['generateAssets'] = request.generate_assets
|
|
514
|
+
if not UtilClient.is_unset(request.image_oss_path):
|
|
515
|
+
query['imageOssPath'] = request.image_oss_path
|
|
516
|
+
if not UtilClient.is_unset(request.jwt_token):
|
|
517
|
+
query['jwtToken'] = request.jwt_token
|
|
518
|
+
if not UtilClient.is_unset(request.name):
|
|
519
|
+
query['name'] = request.name
|
|
520
|
+
if not UtilClient.is_unset(request.transparent):
|
|
521
|
+
query['transparent'] = request.transparent
|
|
522
|
+
req = open_api_models.OpenApiRequest(
|
|
523
|
+
headers=headers,
|
|
524
|
+
query=OpenApiUtilClient.query(query)
|
|
525
|
+
)
|
|
526
|
+
params = open_api_models.Params(
|
|
527
|
+
action='CreateNoTrainPicAvatar',
|
|
528
|
+
version='2025-05-27',
|
|
529
|
+
protocol='HTTPS',
|
|
530
|
+
pathname=f'/openapi/chat/createNoTrainPicAvatar',
|
|
531
|
+
method='POST',
|
|
532
|
+
auth_type='AK',
|
|
533
|
+
style='ROA',
|
|
534
|
+
req_body_type='json',
|
|
535
|
+
body_type='json'
|
|
536
|
+
)
|
|
537
|
+
return TeaCore.from_map(
|
|
538
|
+
ling_mou_20250527_models.CreateNoTrainPicAvatarResponse(),
|
|
539
|
+
self.call_api(params, req, runtime)
|
|
540
|
+
)
|
|
541
|
+
|
|
542
|
+
async def create_no_train_pic_avatar_with_options_async(
|
|
543
|
+
self,
|
|
544
|
+
request: ling_mou_20250527_models.CreateNoTrainPicAvatarRequest,
|
|
545
|
+
headers: Dict[str, str],
|
|
546
|
+
runtime: util_models.RuntimeOptions,
|
|
547
|
+
) -> ling_mou_20250527_models.CreateNoTrainPicAvatarResponse:
|
|
548
|
+
"""
|
|
549
|
+
@summary 创建对话免训照片数字人
|
|
550
|
+
|
|
551
|
+
@param request: CreateNoTrainPicAvatarRequest
|
|
552
|
+
@param headers: map
|
|
553
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
554
|
+
@return: CreateNoTrainPicAvatarResponse
|
|
555
|
+
"""
|
|
556
|
+
UtilClient.validate_model(request)
|
|
557
|
+
query = {}
|
|
558
|
+
if not UtilClient.is_unset(request.expressiveness):
|
|
559
|
+
query['expressiveness'] = request.expressiveness
|
|
560
|
+
if not UtilClient.is_unset(request.gender):
|
|
561
|
+
query['gender'] = request.gender
|
|
562
|
+
if not UtilClient.is_unset(request.generate_assets):
|
|
563
|
+
query['generateAssets'] = request.generate_assets
|
|
564
|
+
if not UtilClient.is_unset(request.image_oss_path):
|
|
565
|
+
query['imageOssPath'] = request.image_oss_path
|
|
566
|
+
if not UtilClient.is_unset(request.jwt_token):
|
|
567
|
+
query['jwtToken'] = request.jwt_token
|
|
568
|
+
if not UtilClient.is_unset(request.name):
|
|
569
|
+
query['name'] = request.name
|
|
570
|
+
if not UtilClient.is_unset(request.transparent):
|
|
571
|
+
query['transparent'] = request.transparent
|
|
572
|
+
req = open_api_models.OpenApiRequest(
|
|
573
|
+
headers=headers,
|
|
574
|
+
query=OpenApiUtilClient.query(query)
|
|
575
|
+
)
|
|
576
|
+
params = open_api_models.Params(
|
|
577
|
+
action='CreateNoTrainPicAvatar',
|
|
578
|
+
version='2025-05-27',
|
|
579
|
+
protocol='HTTPS',
|
|
580
|
+
pathname=f'/openapi/chat/createNoTrainPicAvatar',
|
|
581
|
+
method='POST',
|
|
582
|
+
auth_type='AK',
|
|
583
|
+
style='ROA',
|
|
584
|
+
req_body_type='json',
|
|
585
|
+
body_type='json'
|
|
586
|
+
)
|
|
587
|
+
return TeaCore.from_map(
|
|
588
|
+
ling_mou_20250527_models.CreateNoTrainPicAvatarResponse(),
|
|
589
|
+
await self.call_api_async(params, req, runtime)
|
|
590
|
+
)
|
|
591
|
+
|
|
592
|
+
def create_no_train_pic_avatar(
|
|
593
|
+
self,
|
|
594
|
+
request: ling_mou_20250527_models.CreateNoTrainPicAvatarRequest,
|
|
595
|
+
) -> ling_mou_20250527_models.CreateNoTrainPicAvatarResponse:
|
|
596
|
+
"""
|
|
597
|
+
@summary 创建对话免训照片数字人
|
|
598
|
+
|
|
599
|
+
@param request: CreateNoTrainPicAvatarRequest
|
|
600
|
+
@return: CreateNoTrainPicAvatarResponse
|
|
601
|
+
"""
|
|
602
|
+
runtime = util_models.RuntimeOptions()
|
|
603
|
+
headers = {}
|
|
604
|
+
return self.create_no_train_pic_avatar_with_options(request, headers, runtime)
|
|
605
|
+
|
|
606
|
+
async def create_no_train_pic_avatar_async(
|
|
607
|
+
self,
|
|
608
|
+
request: ling_mou_20250527_models.CreateNoTrainPicAvatarRequest,
|
|
609
|
+
) -> ling_mou_20250527_models.CreateNoTrainPicAvatarResponse:
|
|
610
|
+
"""
|
|
611
|
+
@summary 创建对话免训照片数字人
|
|
612
|
+
|
|
613
|
+
@param request: CreateNoTrainPicAvatarRequest
|
|
614
|
+
@return: CreateNoTrainPicAvatarResponse
|
|
615
|
+
"""
|
|
616
|
+
runtime = util_models.RuntimeOptions()
|
|
617
|
+
headers = {}
|
|
618
|
+
return await self.create_no_train_pic_avatar_with_options_async(request, headers, runtime)
|
|
619
|
+
|
|
620
|
+
def get_upload_policy_with_options(
|
|
621
|
+
self,
|
|
622
|
+
request: ling_mou_20250527_models.GetUploadPolicyRequest,
|
|
623
|
+
headers: Dict[str, str],
|
|
624
|
+
runtime: util_models.RuntimeOptions,
|
|
625
|
+
) -> ling_mou_20250527_models.GetUploadPolicyResponse:
|
|
626
|
+
"""
|
|
627
|
+
@summary 获取对话免训图片素材上传凭证
|
|
628
|
+
|
|
629
|
+
@param request: GetUploadPolicyRequest
|
|
630
|
+
@param headers: map
|
|
631
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
632
|
+
@return: GetUploadPolicyResponse
|
|
633
|
+
"""
|
|
634
|
+
UtilClient.validate_model(request)
|
|
635
|
+
query = {}
|
|
636
|
+
if not UtilClient.is_unset(request.jwt_token):
|
|
637
|
+
query['jwtToken'] = request.jwt_token
|
|
638
|
+
if not UtilClient.is_unset(request.type):
|
|
639
|
+
query['type'] = request.type
|
|
640
|
+
req = open_api_models.OpenApiRequest(
|
|
641
|
+
headers=headers,
|
|
642
|
+
query=OpenApiUtilClient.query(query)
|
|
643
|
+
)
|
|
644
|
+
params = open_api_models.Params(
|
|
645
|
+
action='GetUploadPolicy',
|
|
646
|
+
version='2025-05-27',
|
|
647
|
+
protocol='HTTPS',
|
|
648
|
+
pathname=f'/openapi/chat/getUploadPolicy',
|
|
649
|
+
method='GET',
|
|
650
|
+
auth_type='AK',
|
|
651
|
+
style='ROA',
|
|
652
|
+
req_body_type='json',
|
|
653
|
+
body_type='json'
|
|
654
|
+
)
|
|
655
|
+
return TeaCore.from_map(
|
|
656
|
+
ling_mou_20250527_models.GetUploadPolicyResponse(),
|
|
657
|
+
self.call_api(params, req, runtime)
|
|
658
|
+
)
|
|
659
|
+
|
|
660
|
+
async def get_upload_policy_with_options_async(
|
|
661
|
+
self,
|
|
662
|
+
request: ling_mou_20250527_models.GetUploadPolicyRequest,
|
|
663
|
+
headers: Dict[str, str],
|
|
664
|
+
runtime: util_models.RuntimeOptions,
|
|
665
|
+
) -> ling_mou_20250527_models.GetUploadPolicyResponse:
|
|
666
|
+
"""
|
|
667
|
+
@summary 获取对话免训图片素材上传凭证
|
|
668
|
+
|
|
669
|
+
@param request: GetUploadPolicyRequest
|
|
670
|
+
@param headers: map
|
|
671
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
672
|
+
@return: GetUploadPolicyResponse
|
|
673
|
+
"""
|
|
674
|
+
UtilClient.validate_model(request)
|
|
675
|
+
query = {}
|
|
676
|
+
if not UtilClient.is_unset(request.jwt_token):
|
|
677
|
+
query['jwtToken'] = request.jwt_token
|
|
678
|
+
if not UtilClient.is_unset(request.type):
|
|
679
|
+
query['type'] = request.type
|
|
680
|
+
req = open_api_models.OpenApiRequest(
|
|
681
|
+
headers=headers,
|
|
682
|
+
query=OpenApiUtilClient.query(query)
|
|
683
|
+
)
|
|
684
|
+
params = open_api_models.Params(
|
|
685
|
+
action='GetUploadPolicy',
|
|
686
|
+
version='2025-05-27',
|
|
687
|
+
protocol='HTTPS',
|
|
688
|
+
pathname=f'/openapi/chat/getUploadPolicy',
|
|
689
|
+
method='GET',
|
|
690
|
+
auth_type='AK',
|
|
691
|
+
style='ROA',
|
|
692
|
+
req_body_type='json',
|
|
693
|
+
body_type='json'
|
|
694
|
+
)
|
|
695
|
+
return TeaCore.from_map(
|
|
696
|
+
ling_mou_20250527_models.GetUploadPolicyResponse(),
|
|
697
|
+
await self.call_api_async(params, req, runtime)
|
|
698
|
+
)
|
|
699
|
+
|
|
700
|
+
def get_upload_policy(
|
|
701
|
+
self,
|
|
702
|
+
request: ling_mou_20250527_models.GetUploadPolicyRequest,
|
|
703
|
+
) -> ling_mou_20250527_models.GetUploadPolicyResponse:
|
|
704
|
+
"""
|
|
705
|
+
@summary 获取对话免训图片素材上传凭证
|
|
706
|
+
|
|
707
|
+
@param request: GetUploadPolicyRequest
|
|
708
|
+
@return: GetUploadPolicyResponse
|
|
709
|
+
"""
|
|
710
|
+
runtime = util_models.RuntimeOptions()
|
|
711
|
+
headers = {}
|
|
712
|
+
return self.get_upload_policy_with_options(request, headers, runtime)
|
|
713
|
+
|
|
714
|
+
async def get_upload_policy_async(
|
|
715
|
+
self,
|
|
716
|
+
request: ling_mou_20250527_models.GetUploadPolicyRequest,
|
|
717
|
+
) -> ling_mou_20250527_models.GetUploadPolicyResponse:
|
|
718
|
+
"""
|
|
719
|
+
@summary 获取对话免训图片素材上传凭证
|
|
720
|
+
|
|
721
|
+
@param request: GetUploadPolicyRequest
|
|
722
|
+
@return: GetUploadPolicyResponse
|
|
723
|
+
"""
|
|
724
|
+
runtime = util_models.RuntimeOptions()
|
|
725
|
+
headers = {}
|
|
726
|
+
return await self.get_upload_policy_with_options_async(request, headers, runtime)
|
|
727
|
+
|
|
276
728
|
def query_chat_instance_sessions_with_options(
|
|
277
729
|
self,
|
|
278
730
|
instance_id: str,
|