@specstream/ai-sdk 0.4.0 → 0.4.1
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 +1 -1
- package/dist/client.d.ts +1 -1
- package/dist/client.js +1 -1
- package/dist/tools.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -54,7 +54,7 @@ The tool's result wraps the rows with `status`, `list_id`, `list_link`, `row_cou
|
|
|
54
54
|
|
|
55
55
|
| Tool | The model gives | What happens | Cost |
|
|
56
56
|
| --- | --- | --- | --- |
|
|
57
|
-
| `specstream_web_search` | `q`, `passages` | Calls `GET /v1/web-search` and returns the answer, matching rows, ranked sources and optional page passages | $5 per 1,000 searches of up to 10 results
|
|
57
|
+
| `specstream_web_search` | `q`, `passages`, `speed` | Calls `GET /v1/web-search` and returns the answer, matching rows, ranked sources and optional page passages. `speed: "fast"` returns the ranked results in about a second | $5 per 1,000 searches of up to 10 results; a fast search costs $1 per 1,000 |
|
|
58
58
|
| `specstream_extract_pages` | `urls`, `format` | Calls `POST /v1/extract` and returns the clean main text, title and published date of 1 to 20 web pages, PDFs, Word or Excel files | $0.80 per 1,000 pages (empty pages free) |
|
|
59
59
|
| `specstream_find_list` | `request`, `maxResults` (1 to 1000, default 25) | Reads the request, prices it, starts it only within `maxPriceUsd`, waits up to `waitSeconds` (7 minutes by default) and returns every row | Only delivered rows |
|
|
60
60
|
| `specstream_get_list_results` | `listId` | Every row found so far, for a list that was still running | Free |
|
package/dist/client.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/** The SpecStream REST calls the tools share: read a request, price it, start it within a maximum, read its rows. */
|
|
2
2
|
export declare const DEFAULT_BASE_URL = "https://api.specstream.ai";
|
|
3
|
-
export declare const USER_AGENT = "@specstream/ai-sdk/0.4.
|
|
3
|
+
export declare const USER_AGENT = "@specstream/ai-sdk/0.4.1";
|
|
4
4
|
/** A list runs for up to about five minutes, so the tools wait a little longer than that by default. */
|
|
5
5
|
export declare const DEFAULT_WAIT_SECONDS = 420;
|
|
6
6
|
export declare const DEFAULT_POLL_INTERVAL_SECONDS = 3;
|
package/dist/client.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/** The SpecStream REST calls the tools share: read a request, price it, start it within a maximum, read its rows. */
|
|
2
2
|
export const DEFAULT_BASE_URL = "https://api.specstream.ai";
|
|
3
|
-
export const USER_AGENT = "@specstream/ai-sdk/0.4.
|
|
3
|
+
export const USER_AGENT = "@specstream/ai-sdk/0.4.1";
|
|
4
4
|
/** A list runs for up to about five minutes, so the tools wait a little longer than that by default. */
|
|
5
5
|
export const DEFAULT_WAIT_SECONDS = 420;
|
|
6
6
|
export const DEFAULT_POLL_INTERVAL_SECONDS = 3;
|
package/dist/tools.js
CHANGED
|
@@ -27,7 +27,7 @@ const webSearchInput = z.object({
|
|
|
27
27
|
.describe('"fast" returns the first ranked results in about a second for $1 per 1,000 searches; "default" adds the answer read from the pages, for $5 per 1,000. Left out, the default search runs.'),
|
|
28
28
|
});
|
|
29
29
|
const extractPagesInput = z.object({
|
|
30
|
-
urls: z.array(z.string().min(1)).min(1).max(20).describe("1 to 20 http or https URLs (web pages, PDF, Word, Excel) to read live."),
|
|
30
|
+
urls: z.array(z.string().min(1)).min(1).max(20).describe("1 to 20 http or https URLs (web pages, PDF, Word, Excel) to read live, or from SpecStream's own dated copy when a page is slow or refuses."),
|
|
31
31
|
format: z.enum(["markdown", "text"]).optional().describe('Output format: "markdown" (default) or "text".'),
|
|
32
32
|
});
|
|
33
33
|
const monitorListInput = z.object({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@specstream/ai-sdk",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.1",
|
|
4
4
|
"description": "The live web data engine for the Vercel AI SDK: Search API ($5 per 1,000 searches of up to 10 results, or $1 on the fast tier), Extract API ($0.80 per 1,000 pages) and Deep Search.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|