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 +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/mjs/index.js +1 -1
- package/package.json +1 -1
package/dist/cjs/index.js
CHANGED
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
|
-
|
|
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<
|
|
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
|
|
261
|
+
return response;
|
|
262
262
|
}
|
|
263
263
|
async genStreamResponse(streamRes) {
|
|
264
264
|
const reader = streamRes?.getReader();
|