alibabacloud-quanmiaolightapp20240801 2.13.5__py3-none-any.whl → 2.13.6__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_quanmiaolightapp20240801/__init__.py +1 -1
- alibabacloud_quanmiaolightapp20240801/client.py +80 -8
- alibabacloud_quanmiaolightapp20240801/models/__init__.py +2 -0
- alibabacloud_quanmiaolightapp20240801/models/_run_marketing_information_writing_request.py +58 -0
- alibabacloud_quanmiaolightapp20240801/models/_run_marketing_information_writing_shrink_request.py +145 -0
- {alibabacloud_quanmiaolightapp20240801-2.13.5.dist-info → alibabacloud_quanmiaolightapp20240801-2.13.6.dist-info}/METADATA +1 -1
- {alibabacloud_quanmiaolightapp20240801-2.13.5.dist-info → alibabacloud_quanmiaolightapp20240801-2.13.6.dist-info}/RECORD +10 -9
- {alibabacloud_quanmiaolightapp20240801-2.13.5.dist-info → alibabacloud_quanmiaolightapp20240801-2.13.6.dist-info}/LICENSE +0 -0
- {alibabacloud_quanmiaolightapp20240801-2.13.5.dist-info → alibabacloud_quanmiaolightapp20240801-2.13.6.dist-info}/WHEEL +0 -0
- {alibabacloud_quanmiaolightapp20240801-2.13.5.dist-info → alibabacloud_quanmiaolightapp20240801-2.13.6.dist-info}/top_level.txt +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
__version__ = '2.13.
|
|
1
|
+
__version__ = '2.13.6'
|
|
@@ -2435,11 +2435,15 @@ class Client(OpenApiClient):
|
|
|
2435
2435
|
def run_marketing_information_writing_with_sse(
|
|
2436
2436
|
self,
|
|
2437
2437
|
workspace_id: str,
|
|
2438
|
-
|
|
2438
|
+
tmp_req: main_models.RunMarketingInformationWritingRequest,
|
|
2439
2439
|
headers: Dict[str, str],
|
|
2440
2440
|
runtime: RuntimeOptions,
|
|
2441
2441
|
) -> Generator[main_models.RunMarketingInformationWritingResponse, None, None]:
|
|
2442
|
-
|
|
2442
|
+
tmp_req.validate()
|
|
2443
|
+
request = main_models.RunMarketingInformationWritingShrinkRequest()
|
|
2444
|
+
Utils.convert(tmp_req, request)
|
|
2445
|
+
if not DaraCore.is_null(tmp_req.ext_parameters):
|
|
2446
|
+
request.ext_parameters_shrink = Utils.array_to_string_with_specified_style(tmp_req.ext_parameters, 'extParameters', 'json')
|
|
2443
2447
|
body = {}
|
|
2444
2448
|
if not DaraCore.is_null(request.api_key):
|
|
2445
2449
|
body['apiKey'] = request.api_key
|
|
@@ -2447,14 +2451,28 @@ class Client(OpenApiClient):
|
|
|
2447
2451
|
body['customLimitation'] = request.custom_limitation
|
|
2448
2452
|
if not DaraCore.is_null(request.custom_prompt):
|
|
2449
2453
|
body['customPrompt'] = request.custom_prompt
|
|
2454
|
+
if not DaraCore.is_null(request.ext_parameters_shrink):
|
|
2455
|
+
body['extParameters'] = request.ext_parameters_shrink
|
|
2456
|
+
if not DaraCore.is_null(request.generate_count):
|
|
2457
|
+
body['generateCount'] = request.generate_count
|
|
2450
2458
|
if not DaraCore.is_null(request.input_example):
|
|
2451
2459
|
body['inputExample'] = request.input_example
|
|
2460
|
+
if not DaraCore.is_null(request.keywords):
|
|
2461
|
+
body['keywords'] = request.keywords
|
|
2462
|
+
if not DaraCore.is_null(request.language):
|
|
2463
|
+
body['language'] = request.language
|
|
2452
2464
|
if not DaraCore.is_null(request.model_id):
|
|
2453
2465
|
body['modelId'] = request.model_id
|
|
2466
|
+
if not DaraCore.is_null(request.other_requirements):
|
|
2467
|
+
body['otherRequirements'] = request.other_requirements
|
|
2454
2468
|
if not DaraCore.is_null(request.output_example):
|
|
2455
2469
|
body['outputExample'] = request.output_example
|
|
2470
|
+
if not DaraCore.is_null(request.prompt):
|
|
2471
|
+
body['prompt'] = request.prompt
|
|
2456
2472
|
if not DaraCore.is_null(request.source_material):
|
|
2457
2473
|
body['sourceMaterial'] = request.source_material
|
|
2474
|
+
if not DaraCore.is_null(request.word_count_range):
|
|
2475
|
+
body['wordCountRange'] = request.word_count_range
|
|
2458
2476
|
if not DaraCore.is_null(request.writing_type):
|
|
2459
2477
|
body['writingType'] = request.writing_type
|
|
2460
2478
|
req = open_api_util_models.OpenApiRequest(
|
|
@@ -2489,11 +2507,15 @@ class Client(OpenApiClient):
|
|
|
2489
2507
|
async def run_marketing_information_writing_with_sse_async(
|
|
2490
2508
|
self,
|
|
2491
2509
|
workspace_id: str,
|
|
2492
|
-
|
|
2510
|
+
tmp_req: main_models.RunMarketingInformationWritingRequest,
|
|
2493
2511
|
headers: Dict[str, str],
|
|
2494
2512
|
runtime: RuntimeOptions,
|
|
2495
2513
|
) -> AsyncGenerator[main_models.RunMarketingInformationWritingResponse, None, None]:
|
|
2496
|
-
|
|
2514
|
+
tmp_req.validate()
|
|
2515
|
+
request = main_models.RunMarketingInformationWritingShrinkRequest()
|
|
2516
|
+
Utils.convert(tmp_req, request)
|
|
2517
|
+
if not DaraCore.is_null(tmp_req.ext_parameters):
|
|
2518
|
+
request.ext_parameters_shrink = Utils.array_to_string_with_specified_style(tmp_req.ext_parameters, 'extParameters', 'json')
|
|
2497
2519
|
body = {}
|
|
2498
2520
|
if not DaraCore.is_null(request.api_key):
|
|
2499
2521
|
body['apiKey'] = request.api_key
|
|
@@ -2501,14 +2523,28 @@ class Client(OpenApiClient):
|
|
|
2501
2523
|
body['customLimitation'] = request.custom_limitation
|
|
2502
2524
|
if not DaraCore.is_null(request.custom_prompt):
|
|
2503
2525
|
body['customPrompt'] = request.custom_prompt
|
|
2526
|
+
if not DaraCore.is_null(request.ext_parameters_shrink):
|
|
2527
|
+
body['extParameters'] = request.ext_parameters_shrink
|
|
2528
|
+
if not DaraCore.is_null(request.generate_count):
|
|
2529
|
+
body['generateCount'] = request.generate_count
|
|
2504
2530
|
if not DaraCore.is_null(request.input_example):
|
|
2505
2531
|
body['inputExample'] = request.input_example
|
|
2532
|
+
if not DaraCore.is_null(request.keywords):
|
|
2533
|
+
body['keywords'] = request.keywords
|
|
2534
|
+
if not DaraCore.is_null(request.language):
|
|
2535
|
+
body['language'] = request.language
|
|
2506
2536
|
if not DaraCore.is_null(request.model_id):
|
|
2507
2537
|
body['modelId'] = request.model_id
|
|
2538
|
+
if not DaraCore.is_null(request.other_requirements):
|
|
2539
|
+
body['otherRequirements'] = request.other_requirements
|
|
2508
2540
|
if not DaraCore.is_null(request.output_example):
|
|
2509
2541
|
body['outputExample'] = request.output_example
|
|
2542
|
+
if not DaraCore.is_null(request.prompt):
|
|
2543
|
+
body['prompt'] = request.prompt
|
|
2510
2544
|
if not DaraCore.is_null(request.source_material):
|
|
2511
2545
|
body['sourceMaterial'] = request.source_material
|
|
2546
|
+
if not DaraCore.is_null(request.word_count_range):
|
|
2547
|
+
body['wordCountRange'] = request.word_count_range
|
|
2512
2548
|
if not DaraCore.is_null(request.writing_type):
|
|
2513
2549
|
body['writingType'] = request.writing_type
|
|
2514
2550
|
req = open_api_util_models.OpenApiRequest(
|
|
@@ -2543,11 +2579,15 @@ class Client(OpenApiClient):
|
|
|
2543
2579
|
def run_marketing_information_writing_with_options(
|
|
2544
2580
|
self,
|
|
2545
2581
|
workspace_id: str,
|
|
2546
|
-
|
|
2582
|
+
tmp_req: main_models.RunMarketingInformationWritingRequest,
|
|
2547
2583
|
headers: Dict[str, str],
|
|
2548
2584
|
runtime: RuntimeOptions,
|
|
2549
2585
|
) -> main_models.RunMarketingInformationWritingResponse:
|
|
2550
|
-
|
|
2586
|
+
tmp_req.validate()
|
|
2587
|
+
request = main_models.RunMarketingInformationWritingShrinkRequest()
|
|
2588
|
+
Utils.convert(tmp_req, request)
|
|
2589
|
+
if not DaraCore.is_null(tmp_req.ext_parameters):
|
|
2590
|
+
request.ext_parameters_shrink = Utils.array_to_string_with_specified_style(tmp_req.ext_parameters, 'extParameters', 'json')
|
|
2551
2591
|
body = {}
|
|
2552
2592
|
if not DaraCore.is_null(request.api_key):
|
|
2553
2593
|
body['apiKey'] = request.api_key
|
|
@@ -2555,14 +2595,28 @@ class Client(OpenApiClient):
|
|
|
2555
2595
|
body['customLimitation'] = request.custom_limitation
|
|
2556
2596
|
if not DaraCore.is_null(request.custom_prompt):
|
|
2557
2597
|
body['customPrompt'] = request.custom_prompt
|
|
2598
|
+
if not DaraCore.is_null(request.ext_parameters_shrink):
|
|
2599
|
+
body['extParameters'] = request.ext_parameters_shrink
|
|
2600
|
+
if not DaraCore.is_null(request.generate_count):
|
|
2601
|
+
body['generateCount'] = request.generate_count
|
|
2558
2602
|
if not DaraCore.is_null(request.input_example):
|
|
2559
2603
|
body['inputExample'] = request.input_example
|
|
2604
|
+
if not DaraCore.is_null(request.keywords):
|
|
2605
|
+
body['keywords'] = request.keywords
|
|
2606
|
+
if not DaraCore.is_null(request.language):
|
|
2607
|
+
body['language'] = request.language
|
|
2560
2608
|
if not DaraCore.is_null(request.model_id):
|
|
2561
2609
|
body['modelId'] = request.model_id
|
|
2610
|
+
if not DaraCore.is_null(request.other_requirements):
|
|
2611
|
+
body['otherRequirements'] = request.other_requirements
|
|
2562
2612
|
if not DaraCore.is_null(request.output_example):
|
|
2563
2613
|
body['outputExample'] = request.output_example
|
|
2614
|
+
if not DaraCore.is_null(request.prompt):
|
|
2615
|
+
body['prompt'] = request.prompt
|
|
2564
2616
|
if not DaraCore.is_null(request.source_material):
|
|
2565
2617
|
body['sourceMaterial'] = request.source_material
|
|
2618
|
+
if not DaraCore.is_null(request.word_count_range):
|
|
2619
|
+
body['wordCountRange'] = request.word_count_range
|
|
2566
2620
|
if not DaraCore.is_null(request.writing_type):
|
|
2567
2621
|
body['writingType'] = request.writing_type
|
|
2568
2622
|
req = open_api_util_models.OpenApiRequest(
|
|
@@ -2588,11 +2642,15 @@ class Client(OpenApiClient):
|
|
|
2588
2642
|
async def run_marketing_information_writing_with_options_async(
|
|
2589
2643
|
self,
|
|
2590
2644
|
workspace_id: str,
|
|
2591
|
-
|
|
2645
|
+
tmp_req: main_models.RunMarketingInformationWritingRequest,
|
|
2592
2646
|
headers: Dict[str, str],
|
|
2593
2647
|
runtime: RuntimeOptions,
|
|
2594
2648
|
) -> main_models.RunMarketingInformationWritingResponse:
|
|
2595
|
-
|
|
2649
|
+
tmp_req.validate()
|
|
2650
|
+
request = main_models.RunMarketingInformationWritingShrinkRequest()
|
|
2651
|
+
Utils.convert(tmp_req, request)
|
|
2652
|
+
if not DaraCore.is_null(tmp_req.ext_parameters):
|
|
2653
|
+
request.ext_parameters_shrink = Utils.array_to_string_with_specified_style(tmp_req.ext_parameters, 'extParameters', 'json')
|
|
2596
2654
|
body = {}
|
|
2597
2655
|
if not DaraCore.is_null(request.api_key):
|
|
2598
2656
|
body['apiKey'] = request.api_key
|
|
@@ -2600,14 +2658,28 @@ class Client(OpenApiClient):
|
|
|
2600
2658
|
body['customLimitation'] = request.custom_limitation
|
|
2601
2659
|
if not DaraCore.is_null(request.custom_prompt):
|
|
2602
2660
|
body['customPrompt'] = request.custom_prompt
|
|
2661
|
+
if not DaraCore.is_null(request.ext_parameters_shrink):
|
|
2662
|
+
body['extParameters'] = request.ext_parameters_shrink
|
|
2663
|
+
if not DaraCore.is_null(request.generate_count):
|
|
2664
|
+
body['generateCount'] = request.generate_count
|
|
2603
2665
|
if not DaraCore.is_null(request.input_example):
|
|
2604
2666
|
body['inputExample'] = request.input_example
|
|
2667
|
+
if not DaraCore.is_null(request.keywords):
|
|
2668
|
+
body['keywords'] = request.keywords
|
|
2669
|
+
if not DaraCore.is_null(request.language):
|
|
2670
|
+
body['language'] = request.language
|
|
2605
2671
|
if not DaraCore.is_null(request.model_id):
|
|
2606
2672
|
body['modelId'] = request.model_id
|
|
2673
|
+
if not DaraCore.is_null(request.other_requirements):
|
|
2674
|
+
body['otherRequirements'] = request.other_requirements
|
|
2607
2675
|
if not DaraCore.is_null(request.output_example):
|
|
2608
2676
|
body['outputExample'] = request.output_example
|
|
2677
|
+
if not DaraCore.is_null(request.prompt):
|
|
2678
|
+
body['prompt'] = request.prompt
|
|
2609
2679
|
if not DaraCore.is_null(request.source_material):
|
|
2610
2680
|
body['sourceMaterial'] = request.source_material
|
|
2681
|
+
if not DaraCore.is_null(request.word_count_range):
|
|
2682
|
+
body['wordCountRange'] = request.word_count_range
|
|
2611
2683
|
if not DaraCore.is_null(request.writing_type):
|
|
2612
2684
|
body['writingType'] = request.writing_type
|
|
2613
2685
|
req = open_api_util_models.OpenApiRequest(
|
|
@@ -68,6 +68,7 @@ from ._run_marketing_information_extract_shrink_request import RunMarketingInfor
|
|
|
68
68
|
from ._run_marketing_information_extract_response_body import RunMarketingInformationExtractResponseBody
|
|
69
69
|
from ._run_marketing_information_extract_response import RunMarketingInformationExtractResponse
|
|
70
70
|
from ._run_marketing_information_writing_request import RunMarketingInformationWritingRequest
|
|
71
|
+
from ._run_marketing_information_writing_shrink_request import RunMarketingInformationWritingShrinkRequest
|
|
71
72
|
from ._run_marketing_information_writing_response_body import RunMarketingInformationWritingResponseBody
|
|
72
73
|
from ._run_marketing_information_writing_response import RunMarketingInformationWritingResponse
|
|
73
74
|
from ._run_network_content_audit_request import RunNetworkContentAuditRequest
|
|
@@ -413,6 +414,7 @@ __all__ = [
|
|
|
413
414
|
RunMarketingInformationExtractResponseBody,
|
|
414
415
|
RunMarketingInformationExtractResponse,
|
|
415
416
|
RunMarketingInformationWritingRequest,
|
|
417
|
+
RunMarketingInformationWritingShrinkRequest,
|
|
416
418
|
RunMarketingInformationWritingResponseBody,
|
|
417
419
|
RunMarketingInformationWritingResponse,
|
|
418
420
|
RunNetworkContentAuditRequest,
|
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
# This file is auto-generated, don't edit it. Thanks.
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
|
|
5
|
+
from typing import Dict
|
|
6
|
+
|
|
5
7
|
from darabonba.model import DaraModel
|
|
6
8
|
|
|
7
9
|
class RunMarketingInformationWritingRequest(DaraModel):
|
|
@@ -10,19 +12,33 @@ class RunMarketingInformationWritingRequest(DaraModel):
|
|
|
10
12
|
api_key: str = None,
|
|
11
13
|
custom_limitation: str = None,
|
|
12
14
|
custom_prompt: str = None,
|
|
15
|
+
ext_parameters: Dict[str, str] = None,
|
|
16
|
+
generate_count: str = None,
|
|
13
17
|
input_example: str = None,
|
|
18
|
+
keywords: str = None,
|
|
19
|
+
language: str = None,
|
|
14
20
|
model_id: str = None,
|
|
21
|
+
other_requirements: str = None,
|
|
15
22
|
output_example: str = None,
|
|
23
|
+
prompt: str = None,
|
|
16
24
|
source_material: str = None,
|
|
25
|
+
word_count_range: str = None,
|
|
17
26
|
writing_type: str = None,
|
|
18
27
|
):
|
|
19
28
|
self.api_key = api_key
|
|
20
29
|
self.custom_limitation = custom_limitation
|
|
21
30
|
self.custom_prompt = custom_prompt
|
|
31
|
+
self.ext_parameters = ext_parameters
|
|
32
|
+
self.generate_count = generate_count
|
|
22
33
|
self.input_example = input_example
|
|
34
|
+
self.keywords = keywords
|
|
35
|
+
self.language = language
|
|
23
36
|
self.model_id = model_id
|
|
37
|
+
self.other_requirements = other_requirements
|
|
24
38
|
self.output_example = output_example
|
|
39
|
+
self.prompt = prompt
|
|
25
40
|
self.source_material = source_material
|
|
41
|
+
self.word_count_range = word_count_range
|
|
26
42
|
self.writing_type = writing_type
|
|
27
43
|
|
|
28
44
|
def validate(self):
|
|
@@ -42,18 +58,39 @@ class RunMarketingInformationWritingRequest(DaraModel):
|
|
|
42
58
|
if self.custom_prompt is not None:
|
|
43
59
|
result['customPrompt'] = self.custom_prompt
|
|
44
60
|
|
|
61
|
+
if self.ext_parameters is not None:
|
|
62
|
+
result['extParameters'] = self.ext_parameters
|
|
63
|
+
|
|
64
|
+
if self.generate_count is not None:
|
|
65
|
+
result['generateCount'] = self.generate_count
|
|
66
|
+
|
|
45
67
|
if self.input_example is not None:
|
|
46
68
|
result['inputExample'] = self.input_example
|
|
47
69
|
|
|
70
|
+
if self.keywords is not None:
|
|
71
|
+
result['keywords'] = self.keywords
|
|
72
|
+
|
|
73
|
+
if self.language is not None:
|
|
74
|
+
result['language'] = self.language
|
|
75
|
+
|
|
48
76
|
if self.model_id is not None:
|
|
49
77
|
result['modelId'] = self.model_id
|
|
50
78
|
|
|
79
|
+
if self.other_requirements is not None:
|
|
80
|
+
result['otherRequirements'] = self.other_requirements
|
|
81
|
+
|
|
51
82
|
if self.output_example is not None:
|
|
52
83
|
result['outputExample'] = self.output_example
|
|
53
84
|
|
|
85
|
+
if self.prompt is not None:
|
|
86
|
+
result['prompt'] = self.prompt
|
|
87
|
+
|
|
54
88
|
if self.source_material is not None:
|
|
55
89
|
result['sourceMaterial'] = self.source_material
|
|
56
90
|
|
|
91
|
+
if self.word_count_range is not None:
|
|
92
|
+
result['wordCountRange'] = self.word_count_range
|
|
93
|
+
|
|
57
94
|
if self.writing_type is not None:
|
|
58
95
|
result['writingType'] = self.writing_type
|
|
59
96
|
|
|
@@ -70,18 +107,39 @@ class RunMarketingInformationWritingRequest(DaraModel):
|
|
|
70
107
|
if m.get('customPrompt') is not None:
|
|
71
108
|
self.custom_prompt = m.get('customPrompt')
|
|
72
109
|
|
|
110
|
+
if m.get('extParameters') is not None:
|
|
111
|
+
self.ext_parameters = m.get('extParameters')
|
|
112
|
+
|
|
113
|
+
if m.get('generateCount') is not None:
|
|
114
|
+
self.generate_count = m.get('generateCount')
|
|
115
|
+
|
|
73
116
|
if m.get('inputExample') is not None:
|
|
74
117
|
self.input_example = m.get('inputExample')
|
|
75
118
|
|
|
119
|
+
if m.get('keywords') is not None:
|
|
120
|
+
self.keywords = m.get('keywords')
|
|
121
|
+
|
|
122
|
+
if m.get('language') is not None:
|
|
123
|
+
self.language = m.get('language')
|
|
124
|
+
|
|
76
125
|
if m.get('modelId') is not None:
|
|
77
126
|
self.model_id = m.get('modelId')
|
|
78
127
|
|
|
128
|
+
if m.get('otherRequirements') is not None:
|
|
129
|
+
self.other_requirements = m.get('otherRequirements')
|
|
130
|
+
|
|
79
131
|
if m.get('outputExample') is not None:
|
|
80
132
|
self.output_example = m.get('outputExample')
|
|
81
133
|
|
|
134
|
+
if m.get('prompt') is not None:
|
|
135
|
+
self.prompt = m.get('prompt')
|
|
136
|
+
|
|
82
137
|
if m.get('sourceMaterial') is not None:
|
|
83
138
|
self.source_material = m.get('sourceMaterial')
|
|
84
139
|
|
|
140
|
+
if m.get('wordCountRange') is not None:
|
|
141
|
+
self.word_count_range = m.get('wordCountRange')
|
|
142
|
+
|
|
85
143
|
if m.get('writingType') is not None:
|
|
86
144
|
self.writing_type = m.get('writingType')
|
|
87
145
|
|
alibabacloud_quanmiaolightapp20240801/models/_run_marketing_information_writing_shrink_request.py
ADDED
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# This file is auto-generated, don't edit it. Thanks.
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from darabonba.model import DaraModel
|
|
6
|
+
|
|
7
|
+
class RunMarketingInformationWritingShrinkRequest(DaraModel):
|
|
8
|
+
def __init__(
|
|
9
|
+
self,
|
|
10
|
+
api_key: str = None,
|
|
11
|
+
custom_limitation: str = None,
|
|
12
|
+
custom_prompt: str = None,
|
|
13
|
+
ext_parameters_shrink: str = None,
|
|
14
|
+
generate_count: str = None,
|
|
15
|
+
input_example: str = None,
|
|
16
|
+
keywords: str = None,
|
|
17
|
+
language: str = None,
|
|
18
|
+
model_id: str = None,
|
|
19
|
+
other_requirements: str = None,
|
|
20
|
+
output_example: str = None,
|
|
21
|
+
prompt: str = None,
|
|
22
|
+
source_material: str = None,
|
|
23
|
+
word_count_range: str = None,
|
|
24
|
+
writing_type: str = None,
|
|
25
|
+
):
|
|
26
|
+
self.api_key = api_key
|
|
27
|
+
self.custom_limitation = custom_limitation
|
|
28
|
+
self.custom_prompt = custom_prompt
|
|
29
|
+
self.ext_parameters_shrink = ext_parameters_shrink
|
|
30
|
+
self.generate_count = generate_count
|
|
31
|
+
self.input_example = input_example
|
|
32
|
+
self.keywords = keywords
|
|
33
|
+
self.language = language
|
|
34
|
+
self.model_id = model_id
|
|
35
|
+
self.other_requirements = other_requirements
|
|
36
|
+
self.output_example = output_example
|
|
37
|
+
self.prompt = prompt
|
|
38
|
+
self.source_material = source_material
|
|
39
|
+
self.word_count_range = word_count_range
|
|
40
|
+
self.writing_type = writing_type
|
|
41
|
+
|
|
42
|
+
def validate(self):
|
|
43
|
+
pass
|
|
44
|
+
|
|
45
|
+
def to_map(self):
|
|
46
|
+
result = dict()
|
|
47
|
+
_map = super().to_map()
|
|
48
|
+
if _map is not None:
|
|
49
|
+
result = _map
|
|
50
|
+
if self.api_key is not None:
|
|
51
|
+
result['apiKey'] = self.api_key
|
|
52
|
+
|
|
53
|
+
if self.custom_limitation is not None:
|
|
54
|
+
result['customLimitation'] = self.custom_limitation
|
|
55
|
+
|
|
56
|
+
if self.custom_prompt is not None:
|
|
57
|
+
result['customPrompt'] = self.custom_prompt
|
|
58
|
+
|
|
59
|
+
if self.ext_parameters_shrink is not None:
|
|
60
|
+
result['extParameters'] = self.ext_parameters_shrink
|
|
61
|
+
|
|
62
|
+
if self.generate_count is not None:
|
|
63
|
+
result['generateCount'] = self.generate_count
|
|
64
|
+
|
|
65
|
+
if self.input_example is not None:
|
|
66
|
+
result['inputExample'] = self.input_example
|
|
67
|
+
|
|
68
|
+
if self.keywords is not None:
|
|
69
|
+
result['keywords'] = self.keywords
|
|
70
|
+
|
|
71
|
+
if self.language is not None:
|
|
72
|
+
result['language'] = self.language
|
|
73
|
+
|
|
74
|
+
if self.model_id is not None:
|
|
75
|
+
result['modelId'] = self.model_id
|
|
76
|
+
|
|
77
|
+
if self.other_requirements is not None:
|
|
78
|
+
result['otherRequirements'] = self.other_requirements
|
|
79
|
+
|
|
80
|
+
if self.output_example is not None:
|
|
81
|
+
result['outputExample'] = self.output_example
|
|
82
|
+
|
|
83
|
+
if self.prompt is not None:
|
|
84
|
+
result['prompt'] = self.prompt
|
|
85
|
+
|
|
86
|
+
if self.source_material is not None:
|
|
87
|
+
result['sourceMaterial'] = self.source_material
|
|
88
|
+
|
|
89
|
+
if self.word_count_range is not None:
|
|
90
|
+
result['wordCountRange'] = self.word_count_range
|
|
91
|
+
|
|
92
|
+
if self.writing_type is not None:
|
|
93
|
+
result['writingType'] = self.writing_type
|
|
94
|
+
|
|
95
|
+
return result
|
|
96
|
+
|
|
97
|
+
def from_map(self, m: dict = None):
|
|
98
|
+
m = m or dict()
|
|
99
|
+
if m.get('apiKey') is not None:
|
|
100
|
+
self.api_key = m.get('apiKey')
|
|
101
|
+
|
|
102
|
+
if m.get('customLimitation') is not None:
|
|
103
|
+
self.custom_limitation = m.get('customLimitation')
|
|
104
|
+
|
|
105
|
+
if m.get('customPrompt') is not None:
|
|
106
|
+
self.custom_prompt = m.get('customPrompt')
|
|
107
|
+
|
|
108
|
+
if m.get('extParameters') is not None:
|
|
109
|
+
self.ext_parameters_shrink = m.get('extParameters')
|
|
110
|
+
|
|
111
|
+
if m.get('generateCount') is not None:
|
|
112
|
+
self.generate_count = m.get('generateCount')
|
|
113
|
+
|
|
114
|
+
if m.get('inputExample') is not None:
|
|
115
|
+
self.input_example = m.get('inputExample')
|
|
116
|
+
|
|
117
|
+
if m.get('keywords') is not None:
|
|
118
|
+
self.keywords = m.get('keywords')
|
|
119
|
+
|
|
120
|
+
if m.get('language') is not None:
|
|
121
|
+
self.language = m.get('language')
|
|
122
|
+
|
|
123
|
+
if m.get('modelId') is not None:
|
|
124
|
+
self.model_id = m.get('modelId')
|
|
125
|
+
|
|
126
|
+
if m.get('otherRequirements') is not None:
|
|
127
|
+
self.other_requirements = m.get('otherRequirements')
|
|
128
|
+
|
|
129
|
+
if m.get('outputExample') is not None:
|
|
130
|
+
self.output_example = m.get('outputExample')
|
|
131
|
+
|
|
132
|
+
if m.get('prompt') is not None:
|
|
133
|
+
self.prompt = m.get('prompt')
|
|
134
|
+
|
|
135
|
+
if m.get('sourceMaterial') is not None:
|
|
136
|
+
self.source_material = m.get('sourceMaterial')
|
|
137
|
+
|
|
138
|
+
if m.get('wordCountRange') is not None:
|
|
139
|
+
self.word_count_range = m.get('wordCountRange')
|
|
140
|
+
|
|
141
|
+
if m.get('writingType') is not None:
|
|
142
|
+
self.writing_type = m.get('writingType')
|
|
143
|
+
|
|
144
|
+
return self
|
|
145
|
+
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: alibabacloud-quanmiaolightapp20240801
|
|
3
|
-
Version: 2.13.
|
|
3
|
+
Version: 2.13.6
|
|
4
4
|
Summary: Alibaba Cloud QuanMiaoLightApp (20240801) SDK Library for Python
|
|
5
5
|
Home-page: https://github.com/aliyun/alibabacloud-python-sdk
|
|
6
6
|
Author: Alibaba Cloud SDK
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
alibabacloud_quanmiaolightapp20240801/__init__.py,sha256=
|
|
2
|
-
alibabacloud_quanmiaolightapp20240801/client.py,sha256=
|
|
3
|
-
alibabacloud_quanmiaolightapp20240801/models/__init__.py,sha256=
|
|
1
|
+
alibabacloud_quanmiaolightapp20240801/__init__.py,sha256=T7h7jO3yHgkxXus-G4yJHdUMh_vywq6QkN_SAQMWWgs,22
|
|
2
|
+
alibabacloud_quanmiaolightapp20240801/client.py,sha256=fOAClbjJdiDdal7MDRQ4VQijdFQKW1m24A2t4vfkllg,274859
|
|
3
|
+
alibabacloud_quanmiaolightapp20240801/models/__init__.py,sha256=FXoy7XXlKFwCe1NWjufKkJj7goxA11qgGi9iNNIOYk4,50181
|
|
4
4
|
alibabacloud_quanmiaolightapp20240801/models/_cancel_async_task_request.py,sha256=tvPCt8NyWiQTk02f2ybBS1xVGRoBuG4zo45IJmn_a_o,739
|
|
5
5
|
alibabacloud_quanmiaolightapp20240801/models/_cancel_async_task_response.py,sha256=zk3UG3omCfmExnKvD9PzopOGQ2Eeey9Deak9z6crSLY,1490
|
|
6
6
|
alibabacloud_quanmiaolightapp20240801/models/_cancel_async_task_response_body.py,sha256=E2eLi3h2k705N--_93lC6F04mjvQkXDUgn4hkORawW0,1967
|
|
@@ -66,9 +66,10 @@ alibabacloud_quanmiaolightapp20240801/models/_run_marketing_information_extract_
|
|
|
66
66
|
alibabacloud_quanmiaolightapp20240801/models/_run_marketing_information_extract_response.py,sha256=888duk-Wzfwoh4aCOTOs_LnoUp2Aph19eubImc6PuXs,1535
|
|
67
67
|
alibabacloud_quanmiaolightapp20240801/models/_run_marketing_information_extract_response_body.py,sha256=6q3CQQsgjtTbAwBHpXDsRQ8qJRk4TNQxXYNvBSRlGPc,6630
|
|
68
68
|
alibabacloud_quanmiaolightapp20240801/models/_run_marketing_information_extract_shrink_request.py,sha256=0n_tVwcAPp2gMlLt9hnKg2OUD-2OiLM0Co-GyOGW3PI,1669
|
|
69
|
-
alibabacloud_quanmiaolightapp20240801/models/_run_marketing_information_writing_request.py,sha256=
|
|
69
|
+
alibabacloud_quanmiaolightapp20240801/models/_run_marketing_information_writing_request.py,sha256=tdiJgSzz428fvlD1-DxBsONkmTdihpodLJQoDCtSG1o,4662
|
|
70
70
|
alibabacloud_quanmiaolightapp20240801/models/_run_marketing_information_writing_response.py,sha256=JolSWq5zO4yd_ffIC3NvjipRyot19Yiesj1VXSDnF5k,1535
|
|
71
71
|
alibabacloud_quanmiaolightapp20240801/models/_run_marketing_information_writing_response_body.py,sha256=dgv4PtsgDtOKbEOMN8Tg_q6Rm70w7gylabgAffJgJ9g,7199
|
|
72
|
+
alibabacloud_quanmiaolightapp20240801/models/_run_marketing_information_writing_shrink_request.py,sha256=ypWH4eqx09yYOEoYLIR5xtqrsJF2JJiJyUODIOo-J60,4674
|
|
72
73
|
alibabacloud_quanmiaolightapp20240801/models/_run_network_content_audit_request.py,sha256=rcbZbNaW6xtH8FoPhhFxyf_zRDveHAolEPKM4rb2S-g,3980
|
|
73
74
|
alibabacloud_quanmiaolightapp20240801/models/_run_network_content_audit_response.py,sha256=XV6tSvGNhTxe7lkeGagT-xhXbOhwsI9SOZEnmcgmoZw,1511
|
|
74
75
|
alibabacloud_quanmiaolightapp20240801/models/_run_network_content_audit_response_body.py,sha256=Kwg1KIHliEbdaYBJMUA6-ulK_kYWKOFByyPuu8ZTQAc,6640
|
|
@@ -140,8 +141,8 @@ alibabacloud_quanmiaolightapp20240801/models/_update_video_detect_shot_config_re
|
|
|
140
141
|
alibabacloud_quanmiaolightapp20240801/models/_update_video_detect_shot_task_request.py,sha256=bkooRwUJMgEVYBqnfFN8eNU71TnjEZB1yJjL_9MSSAE,1087
|
|
141
142
|
alibabacloud_quanmiaolightapp20240801/models/_update_video_detect_shot_task_response.py,sha256=C53t0BHTwXF_roqwqv6WsLKzTcgqKPPq1LQt4Ipw0u4,1520
|
|
142
143
|
alibabacloud_quanmiaolightapp20240801/models/_update_video_detect_shot_task_response_body.py,sha256=OwrmqAyijNdnACjoPim2G5ZYMkREKBRRgbKK2AWrFpU,3440
|
|
143
|
-
alibabacloud_quanmiaolightapp20240801-2.13.
|
|
144
|
-
alibabacloud_quanmiaolightapp20240801-2.13.
|
|
145
|
-
alibabacloud_quanmiaolightapp20240801-2.13.
|
|
146
|
-
alibabacloud_quanmiaolightapp20240801-2.13.
|
|
147
|
-
alibabacloud_quanmiaolightapp20240801-2.13.
|
|
144
|
+
alibabacloud_quanmiaolightapp20240801-2.13.6.dist-info/LICENSE,sha256=0CFItL6bHvxqS44T6vlLoW2R4Zaic304OO3WxN0oXF0,600
|
|
145
|
+
alibabacloud_quanmiaolightapp20240801-2.13.6.dist-info/METADATA,sha256=_na8_ziP9Zd698O7lKu7ir_ZPtN0_jUuq56d-7HADqU,2381
|
|
146
|
+
alibabacloud_quanmiaolightapp20240801-2.13.6.dist-info/WHEEL,sha256=2wepM1nk4DS4eFpYrW1TTqPcoGNfHhhO_i5m4cOimbo,92
|
|
147
|
+
alibabacloud_quanmiaolightapp20240801-2.13.6.dist-info/top_level.txt,sha256=8OeD8NiIhtrm1c4lX_9fGb1YEX3tX01Q8FcLZMKbXlE,38
|
|
148
|
+
alibabacloud_quanmiaolightapp20240801-2.13.6.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|