scrapebadger 0.42.0 → 0.43.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/index.d.cts +48 -0
- package/dist/index.d.ts +48 -0
- package/dist/index.js +11 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +11 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -3,7 +3,7 @@ import { EventEmitter } from 'events';
|
|
|
3
3
|
import WebSocket from 'ws';
|
|
4
4
|
|
|
5
5
|
// src/internal/version.ts
|
|
6
|
-
var SDK_VERSION = "0.
|
|
6
|
+
var SDK_VERSION = "0.43.0";
|
|
7
7
|
|
|
8
8
|
// src/internal/exceptions.ts
|
|
9
9
|
var ScrapeBadgerError = class _ScrapeBadgerError extends Error {
|
|
@@ -8535,6 +8535,9 @@ var AskClient = class {
|
|
|
8535
8535
|
* @param params.prompt - The prompt to send (max 4096 characters).
|
|
8536
8536
|
* @param params.country - ISO-3166 alpha-2 egress country (default: "US").
|
|
8537
8537
|
* @param params.web_search - "auto", "force", or "off" (default: "auto").
|
|
8538
|
+
* @param params.image_url - Public image URL to attach; ChatGPT answers about
|
|
8539
|
+
* the picture. It will NOT generate one — anonymous chatgpt.com requires a login
|
|
8540
|
+
* for that. Allow 90-150s for an image ask.
|
|
8538
8541
|
* @returns The answer, its citations, and the full retrieved search set.
|
|
8539
8542
|
*
|
|
8540
8543
|
* @example
|
|
@@ -8555,7 +8558,8 @@ var AskClient = class {
|
|
|
8555
8558
|
params: {
|
|
8556
8559
|
prompt: params.prompt,
|
|
8557
8560
|
country: params.country,
|
|
8558
|
-
web_search: params.web_search
|
|
8561
|
+
web_search: params.web_search,
|
|
8562
|
+
image_url: params.image_url
|
|
8559
8563
|
}
|
|
8560
8564
|
});
|
|
8561
8565
|
}
|
|
@@ -8689,6 +8693,9 @@ var AskClient2 = class {
|
|
|
8689
8693
|
* @param params.prompt - The prompt to send (max 4096 characters).
|
|
8690
8694
|
* @param params.country - ISO-3166 alpha-2 egress country (default: "US").
|
|
8691
8695
|
* @param params.web_search - "auto", "force", or "off" (default: "auto").
|
|
8696
|
+
* @param params.image_url - Public image URL to attach; Gemini answers about
|
|
8697
|
+
* the picture. It will NOT generate one — anonymous gemini.google.com requires a login
|
|
8698
|
+
* for that. Allow 90-150s for an image ask.
|
|
8692
8699
|
* @returns The answer, its citations, and the full retrieved search set.
|
|
8693
8700
|
*
|
|
8694
8701
|
* @example
|
|
@@ -8709,7 +8716,8 @@ var AskClient2 = class {
|
|
|
8709
8716
|
params: {
|
|
8710
8717
|
prompt: params.prompt,
|
|
8711
8718
|
country: params.country,
|
|
8712
|
-
web_search: params.web_search
|
|
8719
|
+
web_search: params.web_search,
|
|
8720
|
+
image_url: params.image_url
|
|
8713
8721
|
}
|
|
8714
8722
|
});
|
|
8715
8723
|
}
|