@alicloud/dms-enterprise20181101 2.0.0 → 2.1.1
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 +32 -0
- package/dist/client.js +317 -0
- package/dist/client.js.map +1 -1
- package/dist/models/ChatWithDesensitizeSserequest.d.ts +159 -0
- package/dist/models/ChatWithDesensitizeSserequest.js +124 -0
- package/dist/models/ChatWithDesensitizeSserequest.js.map +1 -0
- package/dist/models/ChatWithDesensitizeSseresponse.d.ts +19 -0
- package/dist/models/ChatWithDesensitizeSseresponse.js +69 -0
- package/dist/models/ChatWithDesensitizeSseresponse.js.map +1 -0
- package/dist/models/ChatWithDesensitizeSseresponseBody.d.ts +38 -0
- package/dist/models/ChatWithDesensitizeSseresponseBody.js +66 -0
- package/dist/models/ChatWithDesensitizeSseresponseBody.js.map +1 -0
- package/dist/models/ChatWithDesensitizeSseshrinkRequest.d.ts +157 -0
- package/dist/models/ChatWithDesensitizeSseshrinkRequest.js +112 -0
- package/dist/models/ChatWithDesensitizeSseshrinkRequest.js.map +1 -0
- package/dist/models/CreateDifyInstanceRequest.d.ts +1 -0
- package/dist/models/CreateDifyInstanceRequest.js +2 -0
- package/dist/models/CreateDifyInstanceRequest.js.map +1 -1
- package/dist/models/model.d.ts +4 -0
- package/dist/models/model.js +27 -19
- package/dist/models/model.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +355 -0
- package/src/models/ChatWithDesensitizeSserequest.ts +236 -0
- package/src/models/ChatWithDesensitizeSseresponse.ts +40 -0
- package/src/models/ChatWithDesensitizeSseresponseBody.ts +59 -0
- package/src/models/ChatWithDesensitizeSseshrinkRequest.ts +224 -0
- package/src/models/CreateDifyInstanceRequest.ts +3 -0
- package/src/models/model.ts +4 -0
package/dist/client.d.ts
CHANGED
|
@@ -361,6 +361,38 @@ export default class Client extends OpenApi {
|
|
|
361
361
|
* @returns ChatWithDesensitizeResponse
|
|
362
362
|
*/
|
|
363
363
|
chatWithDesensitize(request: $_model.ChatWithDesensitizeRequest): Promise<$_model.ChatWithDesensitizeResponse>;
|
|
364
|
+
/**
|
|
365
|
+
* 带有DMS脱敏能力的聊天SSE API接口
|
|
366
|
+
*
|
|
367
|
+
* @remarks
|
|
368
|
+
* 带有DMS脱敏能力的聊天SSE API接口
|
|
369
|
+
*
|
|
370
|
+
* @param tmpReq - ChatWithDesensitizeSSERequest
|
|
371
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
372
|
+
* @returns ChatWithDesensitizeSSEResponse
|
|
373
|
+
*/
|
|
374
|
+
chatWithDesensitizeSSEWithSSE(tmpReq: $_model.ChatWithDesensitizeSSERequest, runtime: $dara.RuntimeOptions): AsyncGenerator<$_model.ChatWithDesensitizeSSEResponse, any, unknown>;
|
|
375
|
+
/**
|
|
376
|
+
* 带有DMS脱敏能力的聊天SSE API接口
|
|
377
|
+
*
|
|
378
|
+
* @remarks
|
|
379
|
+
* 带有DMS脱敏能力的聊天SSE API接口
|
|
380
|
+
*
|
|
381
|
+
* @param tmpReq - ChatWithDesensitizeSSERequest
|
|
382
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
383
|
+
* @returns ChatWithDesensitizeSSEResponse
|
|
384
|
+
*/
|
|
385
|
+
chatWithDesensitizeSSEWithOptions(tmpReq: $_model.ChatWithDesensitizeSSERequest, runtime: $dara.RuntimeOptions): Promise<$_model.ChatWithDesensitizeSSEResponse>;
|
|
386
|
+
/**
|
|
387
|
+
* 带有DMS脱敏能力的聊天SSE API接口
|
|
388
|
+
*
|
|
389
|
+
* @remarks
|
|
390
|
+
* 带有DMS脱敏能力的聊天SSE API接口
|
|
391
|
+
*
|
|
392
|
+
* @param request - ChatWithDesensitizeSSERequest
|
|
393
|
+
* @returns ChatWithDesensitizeSSEResponse
|
|
394
|
+
*/
|
|
395
|
+
chatWithDesensitizeSSE(request: $_model.ChatWithDesensitizeSSERequest): Promise<$_model.ChatWithDesensitizeSSEResponse>;
|
|
364
396
|
/**
|
|
365
397
|
* 批量校验是否有表访问权限
|
|
366
398
|
*
|
package/dist/client.js
CHANGED
|
@@ -35,6 +35,26 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
35
35
|
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
36
36
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
37
37
|
};
|
|
38
|
+
var __await = (this && this.__await) || function (v) { return this instanceof __await ? (this.v = v, this) : new __await(v); }
|
|
39
|
+
var __asyncValues = (this && this.__asyncValues) || function (o) {
|
|
40
|
+
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
41
|
+
var m = o[Symbol.asyncIterator], i;
|
|
42
|
+
return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
|
|
43
|
+
function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
|
|
44
|
+
function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }
|
|
45
|
+
};
|
|
46
|
+
var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) {
|
|
47
|
+
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
48
|
+
var g = generator.apply(thisArg, _arguments || []), i, q = [];
|
|
49
|
+
return i = Object.create((typeof AsyncIterator === "function" ? AsyncIterator : Object).prototype), verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i;
|
|
50
|
+
function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; }
|
|
51
|
+
function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } }
|
|
52
|
+
function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }
|
|
53
|
+
function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
|
|
54
|
+
function fulfill(value) { resume("next", value); }
|
|
55
|
+
function reject(value) { resume("throw", value); }
|
|
56
|
+
function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }
|
|
57
|
+
};
|
|
38
58
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
39
59
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
40
60
|
};
|
|
@@ -1320,6 +1340,300 @@ class Client extends openapi_core_1.default {
|
|
|
1320
1340
|
let runtime = new $dara.RuntimeOptions({});
|
|
1321
1341
|
return await this.chatWithDesensitizeWithOptions(request, runtime);
|
|
1322
1342
|
}
|
|
1343
|
+
/**
|
|
1344
|
+
* 带有DMS脱敏能力的聊天SSE API接口
|
|
1345
|
+
*
|
|
1346
|
+
* @remarks
|
|
1347
|
+
* 带有DMS脱敏能力的聊天SSE API接口
|
|
1348
|
+
*
|
|
1349
|
+
* @param tmpReq - ChatWithDesensitizeSSERequest
|
|
1350
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
1351
|
+
* @returns ChatWithDesensitizeSSEResponse
|
|
1352
|
+
*/
|
|
1353
|
+
chatWithDesensitizeSSEWithSSE(tmpReq, runtime) {
|
|
1354
|
+
return __asyncGenerator(this, arguments, function* chatWithDesensitizeSSEWithSSE_1() {
|
|
1355
|
+
var _a, e_1, _b, _c;
|
|
1356
|
+
tmpReq.validate();
|
|
1357
|
+
let request = new $_model.ChatWithDesensitizeSSEShrinkRequest({});
|
|
1358
|
+
openapi_core_2.OpenApiUtil.convert(tmpReq, request);
|
|
1359
|
+
if (!$dara.isNull(tmpReq.messages)) {
|
|
1360
|
+
request.messagesShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.messages, "Messages", "json");
|
|
1361
|
+
}
|
|
1362
|
+
if (!$dara.isNull(tmpReq.modalitiesList)) {
|
|
1363
|
+
request.modalitiesListShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.modalitiesList, "ModalitiesList", "json");
|
|
1364
|
+
}
|
|
1365
|
+
if (!$dara.isNull(tmpReq.searchOptions)) {
|
|
1366
|
+
request.searchOptionsShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.searchOptions, "SearchOptions", "json");
|
|
1367
|
+
}
|
|
1368
|
+
if (!$dara.isNull(tmpReq.stop)) {
|
|
1369
|
+
request.stopShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.stop, "Stop", "json");
|
|
1370
|
+
}
|
|
1371
|
+
let query = {};
|
|
1372
|
+
if (!$dara.isNull(request.audioJson)) {
|
|
1373
|
+
query["AudioJson"] = request.audioJson;
|
|
1374
|
+
}
|
|
1375
|
+
if (!$dara.isNull(request.desensitizationRule)) {
|
|
1376
|
+
query["DesensitizationRule"] = request.desensitizationRule;
|
|
1377
|
+
}
|
|
1378
|
+
if (!$dara.isNull(request.dimensions)) {
|
|
1379
|
+
query["Dimensions"] = request.dimensions;
|
|
1380
|
+
}
|
|
1381
|
+
if (!$dara.isNull(request.enableCodeInterpreter)) {
|
|
1382
|
+
query["EnableCodeInterpreter"] = request.enableCodeInterpreter;
|
|
1383
|
+
}
|
|
1384
|
+
if (!$dara.isNull(request.enableSearch)) {
|
|
1385
|
+
query["EnableSearch"] = request.enableSearch;
|
|
1386
|
+
}
|
|
1387
|
+
if (!$dara.isNull(request.enableThinking)) {
|
|
1388
|
+
query["EnableThinking"] = request.enableThinking;
|
|
1389
|
+
}
|
|
1390
|
+
if (!$dara.isNull(request.includeUsage)) {
|
|
1391
|
+
query["IncludeUsage"] = request.includeUsage;
|
|
1392
|
+
}
|
|
1393
|
+
if (!$dara.isNull(request.input)) {
|
|
1394
|
+
query["Input"] = request.input;
|
|
1395
|
+
}
|
|
1396
|
+
if (!$dara.isNull(request.instanceId)) {
|
|
1397
|
+
query["InstanceId"] = request.instanceId;
|
|
1398
|
+
}
|
|
1399
|
+
if (!$dara.isNull(request.logprobs)) {
|
|
1400
|
+
query["Logprobs"] = request.logprobs;
|
|
1401
|
+
}
|
|
1402
|
+
if (!$dara.isNull(request.maxTokens)) {
|
|
1403
|
+
query["MaxTokens"] = request.maxTokens;
|
|
1404
|
+
}
|
|
1405
|
+
if (!$dara.isNull(request.modalitiesListShrink)) {
|
|
1406
|
+
query["ModalitiesList"] = request.modalitiesListShrink;
|
|
1407
|
+
}
|
|
1408
|
+
if (!$dara.isNull(request.model)) {
|
|
1409
|
+
query["Model"] = request.model;
|
|
1410
|
+
}
|
|
1411
|
+
if (!$dara.isNull(request.needDesensitization)) {
|
|
1412
|
+
query["NeedDesensitization"] = request.needDesensitization;
|
|
1413
|
+
}
|
|
1414
|
+
if (!$dara.isNull(request.presencePenalty)) {
|
|
1415
|
+
query["PresencePenalty"] = request.presencePenalty;
|
|
1416
|
+
}
|
|
1417
|
+
if (!$dara.isNull(request.responseFormat)) {
|
|
1418
|
+
query["ResponseFormat"] = request.responseFormat;
|
|
1419
|
+
}
|
|
1420
|
+
if (!$dara.isNull(request.searchOptionsShrink)) {
|
|
1421
|
+
query["SearchOptions"] = request.searchOptionsShrink;
|
|
1422
|
+
}
|
|
1423
|
+
if (!$dara.isNull(request.seed)) {
|
|
1424
|
+
query["Seed"] = request.seed;
|
|
1425
|
+
}
|
|
1426
|
+
if (!$dara.isNull(request.stopShrink)) {
|
|
1427
|
+
query["Stop"] = request.stopShrink;
|
|
1428
|
+
}
|
|
1429
|
+
if (!$dara.isNull(request.stream)) {
|
|
1430
|
+
query["Stream"] = request.stream;
|
|
1431
|
+
}
|
|
1432
|
+
if (!$dara.isNull(request.temperature)) {
|
|
1433
|
+
query["Temperature"] = request.temperature;
|
|
1434
|
+
}
|
|
1435
|
+
if (!$dara.isNull(request.thinkingBudget)) {
|
|
1436
|
+
query["ThinkingBudget"] = request.thinkingBudget;
|
|
1437
|
+
}
|
|
1438
|
+
if (!$dara.isNull(request.topK)) {
|
|
1439
|
+
query["TopK"] = request.topK;
|
|
1440
|
+
}
|
|
1441
|
+
if (!$dara.isNull(request.topLogprobs)) {
|
|
1442
|
+
query["TopLogprobs"] = request.topLogprobs;
|
|
1443
|
+
}
|
|
1444
|
+
if (!$dara.isNull(request.topP)) {
|
|
1445
|
+
query["TopP"] = request.topP;
|
|
1446
|
+
}
|
|
1447
|
+
if (!$dara.isNull(request.vlHighResolutionImages)) {
|
|
1448
|
+
query["VlHighResolutionImages"] = request.vlHighResolutionImages;
|
|
1449
|
+
}
|
|
1450
|
+
if (!$dara.isNull(request.XDashScopeDataInspection)) {
|
|
1451
|
+
query["XDashScopeDataInspection"] = request.XDashScopeDataInspection;
|
|
1452
|
+
}
|
|
1453
|
+
let body = {};
|
|
1454
|
+
if (!$dara.isNull(request.messagesShrink)) {
|
|
1455
|
+
body["Messages"] = request.messagesShrink;
|
|
1456
|
+
}
|
|
1457
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
1458
|
+
query: openapi_core_2.OpenApiUtil.query(query),
|
|
1459
|
+
body: openapi_core_2.OpenApiUtil.parseToMap(body),
|
|
1460
|
+
});
|
|
1461
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
1462
|
+
action: "ChatWithDesensitizeSSE",
|
|
1463
|
+
version: "2018-11-01",
|
|
1464
|
+
protocol: "HTTPS",
|
|
1465
|
+
pathname: "/",
|
|
1466
|
+
method: "POST",
|
|
1467
|
+
authType: "AK",
|
|
1468
|
+
style: "RPC",
|
|
1469
|
+
reqBodyType: "formData",
|
|
1470
|
+
bodyType: "json",
|
|
1471
|
+
});
|
|
1472
|
+
let sseResp = yield __await(this.callSSEApi(params, req, runtime));
|
|
1473
|
+
try {
|
|
1474
|
+
for (var _d = true, sseResp_1 = __asyncValues(sseResp), sseResp_1_1; sseResp_1_1 = yield __await(sseResp_1.next()), _a = sseResp_1_1.done, !_a; _d = true) {
|
|
1475
|
+
_c = sseResp_1_1.value;
|
|
1476
|
+
_d = false;
|
|
1477
|
+
let resp = _c;
|
|
1478
|
+
let data = JSON.parse(resp.event.data);
|
|
1479
|
+
yield yield __await($dara.cast({
|
|
1480
|
+
statusCode: resp.statusCode,
|
|
1481
|
+
headers: resp.headers,
|
|
1482
|
+
body: Object.assign(Object.assign({}, data), { RequestId: resp.event.id, Message: resp.event.event }),
|
|
1483
|
+
}, new $_model.ChatWithDesensitizeSSEResponse({})));
|
|
1484
|
+
}
|
|
1485
|
+
}
|
|
1486
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
1487
|
+
finally {
|
|
1488
|
+
try {
|
|
1489
|
+
if (!_d && !_a && (_b = sseResp_1.return)) yield __await(_b.call(sseResp_1));
|
|
1490
|
+
}
|
|
1491
|
+
finally { if (e_1) throw e_1.error; }
|
|
1492
|
+
}
|
|
1493
|
+
});
|
|
1494
|
+
}
|
|
1495
|
+
/**
|
|
1496
|
+
* 带有DMS脱敏能力的聊天SSE API接口
|
|
1497
|
+
*
|
|
1498
|
+
* @remarks
|
|
1499
|
+
* 带有DMS脱敏能力的聊天SSE API接口
|
|
1500
|
+
*
|
|
1501
|
+
* @param tmpReq - ChatWithDesensitizeSSERequest
|
|
1502
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
1503
|
+
* @returns ChatWithDesensitizeSSEResponse
|
|
1504
|
+
*/
|
|
1505
|
+
async chatWithDesensitizeSSEWithOptions(tmpReq, runtime) {
|
|
1506
|
+
tmpReq.validate();
|
|
1507
|
+
let request = new $_model.ChatWithDesensitizeSSEShrinkRequest({});
|
|
1508
|
+
openapi_core_2.OpenApiUtil.convert(tmpReq, request);
|
|
1509
|
+
if (!$dara.isNull(tmpReq.messages)) {
|
|
1510
|
+
request.messagesShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.messages, "Messages", "json");
|
|
1511
|
+
}
|
|
1512
|
+
if (!$dara.isNull(tmpReq.modalitiesList)) {
|
|
1513
|
+
request.modalitiesListShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.modalitiesList, "ModalitiesList", "json");
|
|
1514
|
+
}
|
|
1515
|
+
if (!$dara.isNull(tmpReq.searchOptions)) {
|
|
1516
|
+
request.searchOptionsShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.searchOptions, "SearchOptions", "json");
|
|
1517
|
+
}
|
|
1518
|
+
if (!$dara.isNull(tmpReq.stop)) {
|
|
1519
|
+
request.stopShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.stop, "Stop", "json");
|
|
1520
|
+
}
|
|
1521
|
+
let query = {};
|
|
1522
|
+
if (!$dara.isNull(request.audioJson)) {
|
|
1523
|
+
query["AudioJson"] = request.audioJson;
|
|
1524
|
+
}
|
|
1525
|
+
if (!$dara.isNull(request.desensitizationRule)) {
|
|
1526
|
+
query["DesensitizationRule"] = request.desensitizationRule;
|
|
1527
|
+
}
|
|
1528
|
+
if (!$dara.isNull(request.dimensions)) {
|
|
1529
|
+
query["Dimensions"] = request.dimensions;
|
|
1530
|
+
}
|
|
1531
|
+
if (!$dara.isNull(request.enableCodeInterpreter)) {
|
|
1532
|
+
query["EnableCodeInterpreter"] = request.enableCodeInterpreter;
|
|
1533
|
+
}
|
|
1534
|
+
if (!$dara.isNull(request.enableSearch)) {
|
|
1535
|
+
query["EnableSearch"] = request.enableSearch;
|
|
1536
|
+
}
|
|
1537
|
+
if (!$dara.isNull(request.enableThinking)) {
|
|
1538
|
+
query["EnableThinking"] = request.enableThinking;
|
|
1539
|
+
}
|
|
1540
|
+
if (!$dara.isNull(request.includeUsage)) {
|
|
1541
|
+
query["IncludeUsage"] = request.includeUsage;
|
|
1542
|
+
}
|
|
1543
|
+
if (!$dara.isNull(request.input)) {
|
|
1544
|
+
query["Input"] = request.input;
|
|
1545
|
+
}
|
|
1546
|
+
if (!$dara.isNull(request.instanceId)) {
|
|
1547
|
+
query["InstanceId"] = request.instanceId;
|
|
1548
|
+
}
|
|
1549
|
+
if (!$dara.isNull(request.logprobs)) {
|
|
1550
|
+
query["Logprobs"] = request.logprobs;
|
|
1551
|
+
}
|
|
1552
|
+
if (!$dara.isNull(request.maxTokens)) {
|
|
1553
|
+
query["MaxTokens"] = request.maxTokens;
|
|
1554
|
+
}
|
|
1555
|
+
if (!$dara.isNull(request.modalitiesListShrink)) {
|
|
1556
|
+
query["ModalitiesList"] = request.modalitiesListShrink;
|
|
1557
|
+
}
|
|
1558
|
+
if (!$dara.isNull(request.model)) {
|
|
1559
|
+
query["Model"] = request.model;
|
|
1560
|
+
}
|
|
1561
|
+
if (!$dara.isNull(request.needDesensitization)) {
|
|
1562
|
+
query["NeedDesensitization"] = request.needDesensitization;
|
|
1563
|
+
}
|
|
1564
|
+
if (!$dara.isNull(request.presencePenalty)) {
|
|
1565
|
+
query["PresencePenalty"] = request.presencePenalty;
|
|
1566
|
+
}
|
|
1567
|
+
if (!$dara.isNull(request.responseFormat)) {
|
|
1568
|
+
query["ResponseFormat"] = request.responseFormat;
|
|
1569
|
+
}
|
|
1570
|
+
if (!$dara.isNull(request.searchOptionsShrink)) {
|
|
1571
|
+
query["SearchOptions"] = request.searchOptionsShrink;
|
|
1572
|
+
}
|
|
1573
|
+
if (!$dara.isNull(request.seed)) {
|
|
1574
|
+
query["Seed"] = request.seed;
|
|
1575
|
+
}
|
|
1576
|
+
if (!$dara.isNull(request.stopShrink)) {
|
|
1577
|
+
query["Stop"] = request.stopShrink;
|
|
1578
|
+
}
|
|
1579
|
+
if (!$dara.isNull(request.stream)) {
|
|
1580
|
+
query["Stream"] = request.stream;
|
|
1581
|
+
}
|
|
1582
|
+
if (!$dara.isNull(request.temperature)) {
|
|
1583
|
+
query["Temperature"] = request.temperature;
|
|
1584
|
+
}
|
|
1585
|
+
if (!$dara.isNull(request.thinkingBudget)) {
|
|
1586
|
+
query["ThinkingBudget"] = request.thinkingBudget;
|
|
1587
|
+
}
|
|
1588
|
+
if (!$dara.isNull(request.topK)) {
|
|
1589
|
+
query["TopK"] = request.topK;
|
|
1590
|
+
}
|
|
1591
|
+
if (!$dara.isNull(request.topLogprobs)) {
|
|
1592
|
+
query["TopLogprobs"] = request.topLogprobs;
|
|
1593
|
+
}
|
|
1594
|
+
if (!$dara.isNull(request.topP)) {
|
|
1595
|
+
query["TopP"] = request.topP;
|
|
1596
|
+
}
|
|
1597
|
+
if (!$dara.isNull(request.vlHighResolutionImages)) {
|
|
1598
|
+
query["VlHighResolutionImages"] = request.vlHighResolutionImages;
|
|
1599
|
+
}
|
|
1600
|
+
if (!$dara.isNull(request.XDashScopeDataInspection)) {
|
|
1601
|
+
query["XDashScopeDataInspection"] = request.XDashScopeDataInspection;
|
|
1602
|
+
}
|
|
1603
|
+
let body = {};
|
|
1604
|
+
if (!$dara.isNull(request.messagesShrink)) {
|
|
1605
|
+
body["Messages"] = request.messagesShrink;
|
|
1606
|
+
}
|
|
1607
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
1608
|
+
query: openapi_core_2.OpenApiUtil.query(query),
|
|
1609
|
+
body: openapi_core_2.OpenApiUtil.parseToMap(body),
|
|
1610
|
+
});
|
|
1611
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
1612
|
+
action: "ChatWithDesensitizeSSE",
|
|
1613
|
+
version: "2018-11-01",
|
|
1614
|
+
protocol: "HTTPS",
|
|
1615
|
+
pathname: "/",
|
|
1616
|
+
method: "POST",
|
|
1617
|
+
authType: "AK",
|
|
1618
|
+
style: "RPC",
|
|
1619
|
+
reqBodyType: "formData",
|
|
1620
|
+
bodyType: "json",
|
|
1621
|
+
});
|
|
1622
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.ChatWithDesensitizeSSEResponse({}));
|
|
1623
|
+
}
|
|
1624
|
+
/**
|
|
1625
|
+
* 带有DMS脱敏能力的聊天SSE API接口
|
|
1626
|
+
*
|
|
1627
|
+
* @remarks
|
|
1628
|
+
* 带有DMS脱敏能力的聊天SSE API接口
|
|
1629
|
+
*
|
|
1630
|
+
* @param request - ChatWithDesensitizeSSERequest
|
|
1631
|
+
* @returns ChatWithDesensitizeSSEResponse
|
|
1632
|
+
*/
|
|
1633
|
+
async chatWithDesensitizeSSE(request) {
|
|
1634
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
1635
|
+
return await this.chatWithDesensitizeSSEWithOptions(request, runtime);
|
|
1636
|
+
}
|
|
1323
1637
|
/**
|
|
1324
1638
|
* 批量校验是否有表访问权限
|
|
1325
1639
|
*
|
|
@@ -2404,6 +2718,9 @@ class Client extends openapi_core_1.default {
|
|
|
2404
2718
|
if (!$dara.isNull(request.natGatewayOption)) {
|
|
2405
2719
|
query["NatGatewayOption"] = request.natGatewayOption;
|
|
2406
2720
|
}
|
|
2721
|
+
if (!$dara.isNull(request.onlyIntranet)) {
|
|
2722
|
+
query["OnlyIntranet"] = request.onlyIntranet;
|
|
2723
|
+
}
|
|
2407
2724
|
if (!$dara.isNull(request.ossPath)) {
|
|
2408
2725
|
query["OssPath"] = request.ossPath;
|
|
2409
2726
|
}
|