scavio 0.26.0 → 0.26.2
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/README.md +2 -2
- package/dist/index.cjs +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -294,8 +294,8 @@ SERP (knowledge graph, AI overview, People Also Ask) use `google.search`.
|
|
|
294
294
|
Send the prompt a buyer would ask and get the answer the assistant gives: the
|
|
295
295
|
full Markdown answer, the pages it cites, the web searches it ran (ChatGPT) and
|
|
296
296
|
the products it recommended. Both return the same shape under `data`, so one
|
|
297
|
-
parser tracks which brands each assistant recommends.
|
|
298
|
-
prompt; a failed prompt is not charged. Answers take 10-40 seconds, so both
|
|
297
|
+
parser tracks which brands each assistant recommends. ChatGPT costs 2 credits and
|
|
298
|
+
Gemini 5 credits per answered prompt; a failed prompt is not charged. Answers take 10-40 seconds, so both
|
|
299
299
|
methods raise the request timeout to 120s when the client's is shorter.
|
|
300
300
|
|
|
301
301
|
```typescript
|
package/dist/index.cjs
CHANGED
|
@@ -235,7 +235,7 @@ function parseRetryAfter(header) {
|
|
|
235
235
|
var BASE_URL = "https://api.scavio.dev";
|
|
236
236
|
var DEFAULT_TIMEOUT = 3e4;
|
|
237
237
|
var DEFAULT_MAX_RETRIES = 2;
|
|
238
|
-
var SDK_VERSION = true ? "0.26.
|
|
238
|
+
var SDK_VERSION = true ? "0.26.2" : "0.0.0";
|
|
239
239
|
var USER_AGENT = `scavio-js/${SDK_VERSION}`;
|
|
240
240
|
function isServerRuntime() {
|
|
241
241
|
const g = globalThis;
|
|
@@ -2831,7 +2831,7 @@ var ChatgptNamespace = class {
|
|
|
2831
2831
|
* answer, every page it cites (title, publisher, date), the web searches it
|
|
2832
2832
|
* ran and the products it recommended. Built for AI visibility monitoring.
|
|
2833
2833
|
*
|
|
2834
|
-
* Costs
|
|
2834
|
+
* Costs 2 credits per answered prompt; failed prompts are not charged.
|
|
2835
2835
|
*/
|
|
2836
2836
|
async prompt(options) {
|
|
2837
2837
|
return this.client._post("/api/v1/chatgpt/prompt", options, void 0, AI_PROMPT_TIMEOUT);
|