vectocore4 0.0.33 → 0.0.34

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/cjs/index.js CHANGED
@@ -298,12 +298,12 @@ class Lens {
298
298
  });
299
299
  }
300
300
  chat(_a) {
301
- return __awaiter(this, arguments, void 0, function* ({ question, stream, model, xfinder, webSearch, agentic, imageUrls, fileUrls, customContext, sessionKey, maxHisCount, withStatus, staticInfo, customSystemPrompt, }) {
301
+ return __awaiter(this, arguments, void 0, function* ({ question, stream = true, model, xfinder, webSearch, agentic, imageUrls, fileUrls, customContext, sessionKey, maxHisCount, withStatus, staticInfo, customSystemPrompt, }) {
302
302
  const requestParam = {
303
303
  command: "lens_chat",
304
304
  params: {
305
305
  question: question,
306
- stream: stream !== null && stream !== void 0 ? stream : true,
306
+ stream: stream,
307
307
  },
308
308
  };
309
309
  if (model)
@@ -437,12 +437,12 @@ class AIMS {
437
437
  * - `stream: false` 인 경우: JSON 데이터
438
438
  */
439
439
  keypoint(_a) {
440
- return __awaiter(this, arguments, void 0, function* ({ text, stream }) {
440
+ return __awaiter(this, arguments, void 0, function* ({ text, stream = true }) {
441
441
  const requestParam = {
442
442
  command: "keywords",
443
443
  params: {
444
444
  text: text,
445
- stream: stream !== null && stream !== void 0 ? stream : true,
445
+ stream: stream,
446
446
  },
447
447
  };
448
448
  const response = yield this.request(requestParam);
@@ -463,12 +463,12 @@ class AIMS {
463
463
  * - `stream: false` 인 경우: JSON 데이터
464
464
  */
465
465
  imCap(_a) {
466
- return __awaiter(this, arguments, void 0, function* ({ imageUrl, stream }) {
466
+ return __awaiter(this, arguments, void 0, function* ({ imageUrl, stream = true }) {
467
467
  const requestParam = {
468
468
  command: "im_cap",
469
469
  params: {
470
470
  image_url: imageUrl,
471
- stream: stream !== null && stream !== void 0 ? stream : true,
471
+ stream: stream,
472
472
  },
473
473
  };
474
474
  const response = yield this.request(requestParam);
@@ -490,13 +490,13 @@ class AIMS {
490
490
  * - `stream: false` 인 경우: JSON 데이터
491
491
  */
492
492
  translate(_a) {
493
- return __awaiter(this, arguments, void 0, function* ({ language, text, stream }) {
493
+ return __awaiter(this, arguments, void 0, function* ({ language, text, stream = true }) {
494
494
  const requestParam = {
495
495
  command: "translate",
496
496
  params: {
497
497
  language: language,
498
498
  text: text,
499
- stream: stream !== null && stream !== void 0 ? stream : true,
499
+ stream: stream,
500
500
  },
501
501
  };
502
502
  const response = yield this.request(requestParam);
package/dist/index.d.ts CHANGED
@@ -334,7 +334,7 @@ export interface ImCapParams {
334
334
  export interface TranslateParams {
335
335
  language: string;
336
336
  text: string;
337
- stream?: boolean | undefined;
337
+ stream?: boolean;
338
338
  }
339
339
  export declare class AIMS {
340
340
  tenantKey: string | undefined;
package/dist/mjs/index.js CHANGED
@@ -260,12 +260,12 @@ export class Lens {
260
260
  const response = await fetch(this.baseURL, request);
261
261
  return response;
262
262
  }
263
- async chat({ question, stream, model, xfinder, webSearch, agentic, imageUrls, fileUrls, customContext, sessionKey, maxHisCount, withStatus, staticInfo, customSystemPrompt, }) {
263
+ async chat({ question, stream = true, model, xfinder, webSearch, agentic, imageUrls, fileUrls, customContext, sessionKey, maxHisCount, withStatus, staticInfo, customSystemPrompt, }) {
264
264
  const requestParam = {
265
265
  command: "lens_chat",
266
266
  params: {
267
267
  question: question,
268
- stream: stream ?? true,
268
+ stream: stream,
269
269
  },
270
270
  };
271
271
  if (model)
@@ -396,12 +396,12 @@ export class AIMS {
396
396
  * - `stream: true` 인 경우: 브라우저 표준 {@link Response} 객체 (ReadableStream 포함)
397
397
  * - `stream: false` 인 경우: JSON 데이터
398
398
  */
399
- async keypoint({ text, stream }) {
399
+ async keypoint({ text, stream = true }) {
400
400
  const requestParam = {
401
401
  command: "keywords",
402
402
  params: {
403
403
  text: text,
404
- stream: stream ?? true,
404
+ stream: stream,
405
405
  },
406
406
  };
407
407
  const response = await this.request(requestParam);
@@ -420,12 +420,12 @@ export class AIMS {
420
420
  * - `stream: true` 인 경우: 브라우저 표준 {@link Response} 객체 (ReadableStream 포함)
421
421
  * - `stream: false` 인 경우: JSON 데이터
422
422
  */
423
- async imCap({ imageUrl, stream }) {
423
+ async imCap({ imageUrl, stream = true }) {
424
424
  const requestParam = {
425
425
  command: "im_cap",
426
426
  params: {
427
427
  image_url: imageUrl,
428
- stream: stream ?? true,
428
+ stream: stream,
429
429
  },
430
430
  };
431
431
  const response = await this.request(requestParam);
@@ -445,13 +445,13 @@ export class AIMS {
445
445
  * - `stream: true` 인 경우: 브라우저 표준 {@link Response} 객체 (ReadableStream 포함)
446
446
  * - `stream: false` 인 경우: JSON 데이터
447
447
  */
448
- async translate({ language, text, stream }) {
448
+ async translate({ language, text, stream = true }) {
449
449
  const requestParam = {
450
450
  command: "translate",
451
451
  params: {
452
452
  language: language,
453
453
  text: text,
454
- stream: stream ?? true,
454
+ stream: stream,
455
455
  },
456
456
  };
457
457
  const response = await this.request(requestParam);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vectocore4",
3
- "version": "0.0.33",
3
+ "version": "0.0.34",
4
4
  "description": "",
5
5
  "types": "dist/index.d.ts",
6
6
  "main": "dist/cjs/index.js",