vectocore4 0.0.24 → 0.0.26

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
@@ -294,7 +294,7 @@ class Lens {
294
294
  body: JSON.stringify(requestBody),
295
295
  };
296
296
  const response = yield fetch(this.baseURL, request);
297
- return response.body;
297
+ return response;
298
298
  });
299
299
  }
300
300
  genStreamResponse(streamRes) {
package/dist/index.d.ts CHANGED
@@ -145,7 +145,7 @@ export type LensFileType = {
145
145
  type: string;
146
146
  name: string;
147
147
  url: string;
148
- extImgUrls?: string[];
148
+ ext_img_urls?: string[];
149
149
  };
150
150
  export type LensModelType = "5.1chat" | "5chat" | "4o" | "mini";
151
151
  export interface LensChatParams {
@@ -324,7 +324,7 @@ export declare class Lens {
324
324
  * @param {string | undefined} [opts.tenantKey=process.env['VECTOCORE4_TENANT_KEY'] ?? undefined]
325
325
  */
326
326
  constructor({ tenantKey, baseURL }: ClientOptions);
327
- protected requestStream(requestBody: any): Promise<ReadableStream<Uint8Array> | null>;
327
+ protected requestStream(requestBody: any): Promise<Response>;
328
328
  protected genStreamResponse(streamRes: ReadableStream): Promise<any>;
329
329
  chat({ question, stream, model, xfinder, webSearch, agentic, imageUrls, fileUrls, customContext, sessionKey, maxHisCount, withStatus, staticInfo, customSystemPrompt, }: LensChatParams): Promise<any>;
330
330
  history({ sessionKey, limit }: ChatHistoryParams): Promise<any>;
package/dist/mjs/index.js CHANGED
@@ -258,7 +258,7 @@ export class Lens {
258
258
  body: JSON.stringify(requestBody),
259
259
  };
260
260
  const response = await fetch(this.baseURL, request);
261
- return response.body;
261
+ return response;
262
262
  }
263
263
  async genStreamResponse(streamRes) {
264
264
  const reader = streamRes?.getReader();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vectocore4",
3
- "version": "0.0.24",
3
+ "version": "0.0.26",
4
4
  "description": "",
5
5
  "types": "dist/index.d.ts",
6
6
  "main": "dist/cjs/index.js",