@alicloud/quanmiaolightapp20240801 1.5.0 → 2.0.0
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.
- package/dist/client.d.ts +52 -159
- package/dist/client.js +76 -203
- package/dist/client.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +94 -275
package/src/client.ts
CHANGED
|
@@ -260,92 +260,6 @@ export class ListHotTopicSummariesResponse extends $tea.Model {
|
|
|
260
260
|
}
|
|
261
261
|
}
|
|
262
262
|
|
|
263
|
-
export class RunCommentGenerationRequest extends $tea.Model {
|
|
264
|
-
/**
|
|
265
|
-
* @example
|
|
266
|
-
* 20
|
|
267
|
-
*/
|
|
268
|
-
length?: string;
|
|
269
|
-
/**
|
|
270
|
-
* @example
|
|
271
|
-
* 10
|
|
272
|
-
*/
|
|
273
|
-
numComments?: string;
|
|
274
|
-
sourceMaterial?: string;
|
|
275
|
-
style?: string;
|
|
276
|
-
static names(): { [key: string]: string } {
|
|
277
|
-
return {
|
|
278
|
-
length: 'length',
|
|
279
|
-
numComments: 'numComments',
|
|
280
|
-
sourceMaterial: 'sourceMaterial',
|
|
281
|
-
style: 'style',
|
|
282
|
-
};
|
|
283
|
-
}
|
|
284
|
-
|
|
285
|
-
static types(): { [key: string]: any } {
|
|
286
|
-
return {
|
|
287
|
-
length: 'string',
|
|
288
|
-
numComments: 'string',
|
|
289
|
-
sourceMaterial: 'string',
|
|
290
|
-
style: 'string',
|
|
291
|
-
};
|
|
292
|
-
}
|
|
293
|
-
|
|
294
|
-
constructor(map?: { [key: string]: any }) {
|
|
295
|
-
super(map);
|
|
296
|
-
}
|
|
297
|
-
}
|
|
298
|
-
|
|
299
|
-
export class RunCommentGenerationResponseBody extends $tea.Model {
|
|
300
|
-
end?: boolean;
|
|
301
|
-
header?: RunCommentGenerationResponseBodyHeader;
|
|
302
|
-
payload?: RunCommentGenerationResponseBodyPayload;
|
|
303
|
-
static names(): { [key: string]: string } {
|
|
304
|
-
return {
|
|
305
|
-
end: 'end',
|
|
306
|
-
header: 'header',
|
|
307
|
-
payload: 'payload',
|
|
308
|
-
};
|
|
309
|
-
}
|
|
310
|
-
|
|
311
|
-
static types(): { [key: string]: any } {
|
|
312
|
-
return {
|
|
313
|
-
end: 'boolean',
|
|
314
|
-
header: RunCommentGenerationResponseBodyHeader,
|
|
315
|
-
payload: RunCommentGenerationResponseBodyPayload,
|
|
316
|
-
};
|
|
317
|
-
}
|
|
318
|
-
|
|
319
|
-
constructor(map?: { [key: string]: any }) {
|
|
320
|
-
super(map);
|
|
321
|
-
}
|
|
322
|
-
}
|
|
323
|
-
|
|
324
|
-
export class RunCommentGenerationResponse extends $tea.Model {
|
|
325
|
-
headers?: { [key: string]: string };
|
|
326
|
-
statusCode?: number;
|
|
327
|
-
body?: RunCommentGenerationResponseBody;
|
|
328
|
-
static names(): { [key: string]: string } {
|
|
329
|
-
return {
|
|
330
|
-
headers: 'headers',
|
|
331
|
-
statusCode: 'statusCode',
|
|
332
|
-
body: 'body',
|
|
333
|
-
};
|
|
334
|
-
}
|
|
335
|
-
|
|
336
|
-
static types(): { [key: string]: any } {
|
|
337
|
-
return {
|
|
338
|
-
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
339
|
-
statusCode: 'number',
|
|
340
|
-
body: RunCommentGenerationResponseBody,
|
|
341
|
-
};
|
|
342
|
-
}
|
|
343
|
-
|
|
344
|
-
constructor(map?: { [key: string]: any }) {
|
|
345
|
-
super(map);
|
|
346
|
-
}
|
|
347
|
-
}
|
|
348
|
-
|
|
349
263
|
export class RunHotTopicChatRequest extends $tea.Model {
|
|
350
264
|
category?: string;
|
|
351
265
|
generateOptions?: string[];
|
|
@@ -810,19 +724,25 @@ export class RunMarketingInformationExtractResponse extends $tea.Model {
|
|
|
810
724
|
}
|
|
811
725
|
|
|
812
726
|
export class RunMarketingInformationWritingRequest extends $tea.Model {
|
|
727
|
+
customLimitation?: string;
|
|
813
728
|
customPrompt?: string;
|
|
729
|
+
inputExample?: string;
|
|
814
730
|
/**
|
|
815
731
|
* @example
|
|
816
732
|
* qwen-max
|
|
817
733
|
* qwen-plus
|
|
818
734
|
*/
|
|
819
735
|
modelId?: string;
|
|
736
|
+
outputExample?: string;
|
|
820
737
|
sourceMaterial?: string;
|
|
821
738
|
writingType?: string;
|
|
822
739
|
static names(): { [key: string]: string } {
|
|
823
740
|
return {
|
|
741
|
+
customLimitation: 'customLimitation',
|
|
824
742
|
customPrompt: 'customPrompt',
|
|
743
|
+
inputExample: 'inputExample',
|
|
825
744
|
modelId: 'modelId',
|
|
745
|
+
outputExample: 'outputExample',
|
|
826
746
|
sourceMaterial: 'sourceMaterial',
|
|
827
747
|
writingType: 'writingType',
|
|
828
748
|
};
|
|
@@ -830,8 +750,11 @@ export class RunMarketingInformationWritingRequest extends $tea.Model {
|
|
|
830
750
|
|
|
831
751
|
static types(): { [key: string]: any } {
|
|
832
752
|
return {
|
|
753
|
+
customLimitation: 'string',
|
|
833
754
|
customPrompt: 'string',
|
|
755
|
+
inputExample: 'string',
|
|
834
756
|
modelId: 'string',
|
|
757
|
+
outputExample: 'string',
|
|
835
758
|
sourceMaterial: 'string',
|
|
836
759
|
writingType: 'string',
|
|
837
760
|
};
|
|
@@ -1768,138 +1691,6 @@ export class ListHotTopicSummariesResponseBodyData extends $tea.Model {
|
|
|
1768
1691
|
}
|
|
1769
1692
|
}
|
|
1770
1693
|
|
|
1771
|
-
export class RunCommentGenerationResponseBodyHeader extends $tea.Model {
|
|
1772
|
-
/**
|
|
1773
|
-
* @example
|
|
1774
|
-
* result-generated
|
|
1775
|
-
*/
|
|
1776
|
-
event?: string;
|
|
1777
|
-
eventInfo?: string;
|
|
1778
|
-
/**
|
|
1779
|
-
* @example
|
|
1780
|
-
* F8A35034-EDCF-5C50-95A5-1044316F36E3
|
|
1781
|
-
*/
|
|
1782
|
-
requestId?: string;
|
|
1783
|
-
/**
|
|
1784
|
-
* @example
|
|
1785
|
-
* tcm9xac9dsfbfgm8hf5k94l3cqybwh9o3mn0iuyytdgd9qoejxf1crxsdvuvr8fu0zuhbe8anhdaoeif2wbkmebagnezh23cuhkiazx2tmjh4eml791eak7t95sshvtkz14bh2lnbktzvdhialzd8reoaem0pktw41slinwyoabe75xlnxsqb5eo1i6ly70
|
|
1786
|
-
*/
|
|
1787
|
-
sessionId?: string;
|
|
1788
|
-
/**
|
|
1789
|
-
* @example
|
|
1790
|
-
* task-fu1918oghtodbis3chgpfr
|
|
1791
|
-
*/
|
|
1792
|
-
taskId?: string;
|
|
1793
|
-
/**
|
|
1794
|
-
* @example
|
|
1795
|
-
* 21507c3517074446017046500ed5f1
|
|
1796
|
-
*/
|
|
1797
|
-
traceId?: string;
|
|
1798
|
-
static names(): { [key: string]: string } {
|
|
1799
|
-
return {
|
|
1800
|
-
event: 'event',
|
|
1801
|
-
eventInfo: 'eventInfo',
|
|
1802
|
-
requestId: 'requestId',
|
|
1803
|
-
sessionId: 'sessionId',
|
|
1804
|
-
taskId: 'taskId',
|
|
1805
|
-
traceId: 'traceId',
|
|
1806
|
-
};
|
|
1807
|
-
}
|
|
1808
|
-
|
|
1809
|
-
static types(): { [key: string]: any } {
|
|
1810
|
-
return {
|
|
1811
|
-
event: 'string',
|
|
1812
|
-
eventInfo: 'string',
|
|
1813
|
-
requestId: 'string',
|
|
1814
|
-
sessionId: 'string',
|
|
1815
|
-
taskId: 'string',
|
|
1816
|
-
traceId: 'string',
|
|
1817
|
-
};
|
|
1818
|
-
}
|
|
1819
|
-
|
|
1820
|
-
constructor(map?: { [key: string]: any }) {
|
|
1821
|
-
super(map);
|
|
1822
|
-
}
|
|
1823
|
-
}
|
|
1824
|
-
|
|
1825
|
-
export class RunCommentGenerationResponseBodyPayloadOutput extends $tea.Model {
|
|
1826
|
-
text?: string;
|
|
1827
|
-
static names(): { [key: string]: string } {
|
|
1828
|
-
return {
|
|
1829
|
-
text: 'text',
|
|
1830
|
-
};
|
|
1831
|
-
}
|
|
1832
|
-
|
|
1833
|
-
static types(): { [key: string]: any } {
|
|
1834
|
-
return {
|
|
1835
|
-
text: 'string',
|
|
1836
|
-
};
|
|
1837
|
-
}
|
|
1838
|
-
|
|
1839
|
-
constructor(map?: { [key: string]: any }) {
|
|
1840
|
-
super(map);
|
|
1841
|
-
}
|
|
1842
|
-
}
|
|
1843
|
-
|
|
1844
|
-
export class RunCommentGenerationResponseBodyPayloadUsage extends $tea.Model {
|
|
1845
|
-
/**
|
|
1846
|
-
* @example
|
|
1847
|
-
* 100
|
|
1848
|
-
*/
|
|
1849
|
-
inputTokens?: number;
|
|
1850
|
-
/**
|
|
1851
|
-
* @example
|
|
1852
|
-
* 100
|
|
1853
|
-
*/
|
|
1854
|
-
outputTokens?: number;
|
|
1855
|
-
/**
|
|
1856
|
-
* @example
|
|
1857
|
-
* 200
|
|
1858
|
-
*/
|
|
1859
|
-
totalTokens?: number;
|
|
1860
|
-
static names(): { [key: string]: string } {
|
|
1861
|
-
return {
|
|
1862
|
-
inputTokens: 'inputTokens',
|
|
1863
|
-
outputTokens: 'outputTokens',
|
|
1864
|
-
totalTokens: 'totalTokens',
|
|
1865
|
-
};
|
|
1866
|
-
}
|
|
1867
|
-
|
|
1868
|
-
static types(): { [key: string]: any } {
|
|
1869
|
-
return {
|
|
1870
|
-
inputTokens: 'number',
|
|
1871
|
-
outputTokens: 'number',
|
|
1872
|
-
totalTokens: 'number',
|
|
1873
|
-
};
|
|
1874
|
-
}
|
|
1875
|
-
|
|
1876
|
-
constructor(map?: { [key: string]: any }) {
|
|
1877
|
-
super(map);
|
|
1878
|
-
}
|
|
1879
|
-
}
|
|
1880
|
-
|
|
1881
|
-
export class RunCommentGenerationResponseBodyPayload extends $tea.Model {
|
|
1882
|
-
output?: RunCommentGenerationResponseBodyPayloadOutput;
|
|
1883
|
-
usage?: RunCommentGenerationResponseBodyPayloadUsage;
|
|
1884
|
-
static names(): { [key: string]: string } {
|
|
1885
|
-
return {
|
|
1886
|
-
output: 'output',
|
|
1887
|
-
usage: 'usage',
|
|
1888
|
-
};
|
|
1889
|
-
}
|
|
1890
|
-
|
|
1891
|
-
static types(): { [key: string]: any } {
|
|
1892
|
-
return {
|
|
1893
|
-
output: RunCommentGenerationResponseBodyPayloadOutput,
|
|
1894
|
-
usage: RunCommentGenerationResponseBodyPayloadUsage,
|
|
1895
|
-
};
|
|
1896
|
-
}
|
|
1897
|
-
|
|
1898
|
-
constructor(map?: { [key: string]: any }) {
|
|
1899
|
-
super(map);
|
|
1900
|
-
}
|
|
1901
|
-
}
|
|
1902
|
-
|
|
1903
1694
|
export class RunHotTopicChatRequestStepForBroadcastContentConfigCustomHotValueWeights extends $tea.Model {
|
|
1904
1695
|
/**
|
|
1905
1696
|
* @example
|
|
@@ -2084,12 +1875,70 @@ export class RunHotTopicChatResponseBodyPayloadOutputArticles extends $tea.Model
|
|
|
2084
1875
|
}
|
|
2085
1876
|
}
|
|
2086
1877
|
|
|
1878
|
+
export class RunHotTopicChatResponseBodyPayloadOutputHotTopicSummariesImages extends $tea.Model {
|
|
1879
|
+
/**
|
|
1880
|
+
* @example
|
|
1881
|
+
* http://xxx
|
|
1882
|
+
*/
|
|
1883
|
+
url?: string;
|
|
1884
|
+
static names(): { [key: string]: string } {
|
|
1885
|
+
return {
|
|
1886
|
+
url: 'url',
|
|
1887
|
+
};
|
|
1888
|
+
}
|
|
1889
|
+
|
|
1890
|
+
static types(): { [key: string]: any } {
|
|
1891
|
+
return {
|
|
1892
|
+
url: 'string',
|
|
1893
|
+
};
|
|
1894
|
+
}
|
|
1895
|
+
|
|
1896
|
+
constructor(map?: { [key: string]: any }) {
|
|
1897
|
+
super(map);
|
|
1898
|
+
}
|
|
1899
|
+
}
|
|
1900
|
+
|
|
1901
|
+
export class RunHotTopicChatResponseBodyPayloadOutputHotTopicSummariesNews extends $tea.Model {
|
|
1902
|
+
/**
|
|
1903
|
+
* @example
|
|
1904
|
+
* xxx
|
|
1905
|
+
*/
|
|
1906
|
+
title?: string;
|
|
1907
|
+
/**
|
|
1908
|
+
* @example
|
|
1909
|
+
* http://xxx
|
|
1910
|
+
*/
|
|
1911
|
+
url?: string;
|
|
1912
|
+
static names(): { [key: string]: string } {
|
|
1913
|
+
return {
|
|
1914
|
+
title: 'title',
|
|
1915
|
+
url: 'url',
|
|
1916
|
+
};
|
|
1917
|
+
}
|
|
1918
|
+
|
|
1919
|
+
static types(): { [key: string]: any } {
|
|
1920
|
+
return {
|
|
1921
|
+
title: 'string',
|
|
1922
|
+
url: 'string',
|
|
1923
|
+
};
|
|
1924
|
+
}
|
|
1925
|
+
|
|
1926
|
+
constructor(map?: { [key: string]: any }) {
|
|
1927
|
+
super(map);
|
|
1928
|
+
}
|
|
1929
|
+
}
|
|
1930
|
+
|
|
2087
1931
|
export class RunHotTopicChatResponseBodyPayloadOutputHotTopicSummaries extends $tea.Model {
|
|
2088
1932
|
/**
|
|
2089
1933
|
* @example
|
|
2090
1934
|
* 100000
|
|
2091
1935
|
*/
|
|
2092
1936
|
customHotValue?: number;
|
|
1937
|
+
/**
|
|
1938
|
+
* @example
|
|
1939
|
+
* xxx
|
|
1940
|
+
*/
|
|
1941
|
+
customTextSummary?: string;
|
|
2093
1942
|
/**
|
|
2094
1943
|
* @example
|
|
2095
1944
|
* xx
|
|
@@ -2105,21 +1954,36 @@ export class RunHotTopicChatResponseBodyPayloadOutputHotTopicSummaries extends $
|
|
|
2105
1954
|
* 100000
|
|
2106
1955
|
*/
|
|
2107
1956
|
hotValue?: number;
|
|
1957
|
+
images?: RunHotTopicChatResponseBodyPayloadOutputHotTopicSummariesImages[];
|
|
1958
|
+
news?: RunHotTopicChatResponseBodyPayloadOutputHotTopicSummariesNews[];
|
|
1959
|
+
/**
|
|
1960
|
+
* @example
|
|
1961
|
+
* xxx
|
|
1962
|
+
*/
|
|
1963
|
+
textSummary?: string;
|
|
2108
1964
|
static names(): { [key: string]: string } {
|
|
2109
1965
|
return {
|
|
2110
1966
|
customHotValue: 'customHotValue',
|
|
1967
|
+
customTextSummary: 'customTextSummary',
|
|
2111
1968
|
hotTopic: 'hotTopic',
|
|
2112
1969
|
hotTopicVersion: 'hotTopicVersion',
|
|
2113
1970
|
hotValue: 'hotValue',
|
|
1971
|
+
images: 'images',
|
|
1972
|
+
news: 'news',
|
|
1973
|
+
textSummary: 'textSummary',
|
|
2114
1974
|
};
|
|
2115
1975
|
}
|
|
2116
1976
|
|
|
2117
1977
|
static types(): { [key: string]: any } {
|
|
2118
1978
|
return {
|
|
2119
1979
|
customHotValue: 'number',
|
|
1980
|
+
customTextSummary: 'string',
|
|
2120
1981
|
hotTopic: 'string',
|
|
2121
1982
|
hotTopicVersion: 'string',
|
|
2122
1983
|
hotValue: 'number',
|
|
1984
|
+
images: { 'type': 'array', 'itemType': RunHotTopicChatResponseBodyPayloadOutputHotTopicSummariesImages },
|
|
1985
|
+
news: { 'type': 'array', 'itemType': RunHotTopicChatResponseBodyPayloadOutputHotTopicSummariesNews },
|
|
1986
|
+
textSummary: 'string',
|
|
2123
1987
|
};
|
|
2124
1988
|
}
|
|
2125
1989
|
|
|
@@ -3874,63 +3738,6 @@ export default class Client extends OpenApi {
|
|
|
3874
3738
|
return await this.listHotTopicSummariesWithOptions(workspaceId, request, headers, runtime);
|
|
3875
3739
|
}
|
|
3876
3740
|
|
|
3877
|
-
/**
|
|
3878
|
-
* 评论生成服务
|
|
3879
|
-
*
|
|
3880
|
-
* @param request - RunCommentGenerationRequest
|
|
3881
|
-
* @param headers - map
|
|
3882
|
-
* @param runtime - runtime options for this request RuntimeOptions
|
|
3883
|
-
* @returns RunCommentGenerationResponse
|
|
3884
|
-
*/
|
|
3885
|
-
async runCommentGenerationWithOptions(workspaceId: string, request: RunCommentGenerationRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<RunCommentGenerationResponse> {
|
|
3886
|
-
Util.validateModel(request);
|
|
3887
|
-
let body : {[key: string ]: any} = { };
|
|
3888
|
-
if (!Util.isUnset(request.length)) {
|
|
3889
|
-
body["length"] = request.length;
|
|
3890
|
-
}
|
|
3891
|
-
|
|
3892
|
-
if (!Util.isUnset(request.numComments)) {
|
|
3893
|
-
body["numComments"] = request.numComments;
|
|
3894
|
-
}
|
|
3895
|
-
|
|
3896
|
-
if (!Util.isUnset(request.sourceMaterial)) {
|
|
3897
|
-
body["sourceMaterial"] = request.sourceMaterial;
|
|
3898
|
-
}
|
|
3899
|
-
|
|
3900
|
-
if (!Util.isUnset(request.style)) {
|
|
3901
|
-
body["style"] = request.style;
|
|
3902
|
-
}
|
|
3903
|
-
|
|
3904
|
-
let req = new $OpenApi.OpenApiRequest({
|
|
3905
|
-
headers: headers,
|
|
3906
|
-
body: OpenApiUtil.parseToMap(body),
|
|
3907
|
-
});
|
|
3908
|
-
let params = new $OpenApi.Params({
|
|
3909
|
-
action: "RunCommentGeneration",
|
|
3910
|
-
version: "2024-08-01",
|
|
3911
|
-
protocol: "HTTPS",
|
|
3912
|
-
pathname: `/${OpenApiUtil.getEncodeParam(workspaceId)}/quanmiao/lightapp/runCommentGeneration`,
|
|
3913
|
-
method: "POST",
|
|
3914
|
-
authType: "AK",
|
|
3915
|
-
style: "ROA",
|
|
3916
|
-
reqBodyType: "formData",
|
|
3917
|
-
bodyType: "json",
|
|
3918
|
-
});
|
|
3919
|
-
return $tea.cast<RunCommentGenerationResponse>(await this.callApi(params, req, runtime), new RunCommentGenerationResponse({}));
|
|
3920
|
-
}
|
|
3921
|
-
|
|
3922
|
-
/**
|
|
3923
|
-
* 评论生成服务
|
|
3924
|
-
*
|
|
3925
|
-
* @param request - RunCommentGenerationRequest
|
|
3926
|
-
* @returns RunCommentGenerationResponse
|
|
3927
|
-
*/
|
|
3928
|
-
async runCommentGeneration(workspaceId: string, request: RunCommentGenerationRequest): Promise<RunCommentGenerationResponse> {
|
|
3929
|
-
let runtime = new $Util.RuntimeOptions({ });
|
|
3930
|
-
let headers : {[key: string ]: string} = { };
|
|
3931
|
-
return await this.runCommentGenerationWithOptions(workspaceId, request, headers, runtime);
|
|
3932
|
-
}
|
|
3933
|
-
|
|
3934
3741
|
/**
|
|
3935
3742
|
* 轻应用-热点播报-问答
|
|
3936
3743
|
*
|
|
@@ -4167,14 +3974,26 @@ export default class Client extends OpenApi {
|
|
|
4167
3974
|
async runMarketingInformationWritingWithOptions(workspaceId: string, request: RunMarketingInformationWritingRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<RunMarketingInformationWritingResponse> {
|
|
4168
3975
|
Util.validateModel(request);
|
|
4169
3976
|
let body : {[key: string ]: any} = { };
|
|
3977
|
+
if (!Util.isUnset(request.customLimitation)) {
|
|
3978
|
+
body["customLimitation"] = request.customLimitation;
|
|
3979
|
+
}
|
|
3980
|
+
|
|
4170
3981
|
if (!Util.isUnset(request.customPrompt)) {
|
|
4171
3982
|
body["customPrompt"] = request.customPrompt;
|
|
4172
3983
|
}
|
|
4173
3984
|
|
|
3985
|
+
if (!Util.isUnset(request.inputExample)) {
|
|
3986
|
+
body["inputExample"] = request.inputExample;
|
|
3987
|
+
}
|
|
3988
|
+
|
|
4174
3989
|
if (!Util.isUnset(request.modelId)) {
|
|
4175
3990
|
body["modelId"] = request.modelId;
|
|
4176
3991
|
}
|
|
4177
3992
|
|
|
3993
|
+
if (!Util.isUnset(request.outputExample)) {
|
|
3994
|
+
body["outputExample"] = request.outputExample;
|
|
3995
|
+
}
|
|
3996
|
+
|
|
4178
3997
|
if (!Util.isUnset(request.sourceMaterial)) {
|
|
4179
3998
|
body["sourceMaterial"] = request.sourceMaterial;
|
|
4180
3999
|
}
|