Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "0.4.0"
".": "0.4.1"
}
6 changes: 3 additions & 3 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
configured_endpoints: 24
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/parallel-web%2Fparallel-sdk-57e1c56be0942c131ab5f24d8620de166d0721ef7f3423532abc7027e5a989e7.yml
openapi_spec_hash: e61f831e30d19590eb3138a1b1709d1d
config_hash: 80e7ee7ad8e3424616aca7189ffd5ae7
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/parallel-web%2Fparallel-sdk-66ee13c3475d2c76f0956f258f0469903155b83ef02e839641be94cdc2014cf3.yml
openapi_spec_hash: 88af7b88725bead1f8ccdcaeb436fadb
config_hash: e17d82e9cb35004e5f9a9d3c4cf51aeb
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
# Changelog

## 0.4.1 (2026-04-22)

Full Changelog: [v0.4.0...v0.4.1](https://github.com/parallel-web/parallel-sdk-typescript/compare/v0.4.0...v0.4.1)

### Features

* **api:** manual updates ([ae5cb89](https://github.com/parallel-web/parallel-sdk-typescript/commit/ae5cb89998ed6f6a11d4ee9fb5769646d78a8bd4))
* **api:** Mark search and extract as deprecated ([60f6e90](https://github.com/parallel-web/parallel-sdk-typescript/commit/60f6e907e3c65eb5003f3863ff60d48cace23b6e))
* **api:** OpenAPI changes ([3a435c0](https://github.com/parallel-web/parallel-sdk-typescript/commit/3a435c0bbbb9520cbf3470c44c0c97f0471ecab0))

## 0.4.0 (2026-04-21)

Full Changelog: [v0.3.2...v0.4.0](https://github.com/parallel-web/parallel-sdk-typescript/compare/v0.3.2...v0.4.0)
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "parallel-web",
"version": "0.4.0",
"version": "0.4.1",
"description": "The official TypeScript library for the Parallel API",
"author": "Parallel <support@parallel.ai>",
"types": "dist/index.d.ts",
Expand Down
12 changes: 8 additions & 4 deletions src/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -238,8 +238,10 @@ export class Parallel {
/**
* Extracts relevant content from specific web URLs.
*
* The legacy Extract API reference is available
* [here](https://docs.parallel.ai/api-reference/legacy/extract-beta/extract).
* The legacy Extract API reference (`/v1beta/extract` endpoint) is available
* [here](https://docs.parallel.ai/api-reference/legacy/extract-beta/extract), and
* migration guide is
* [here](https://docs.parallel.ai/extract/extract-migration-guide).
*
* @example
* ```ts
Expand All @@ -258,8 +260,10 @@ export class Parallel {
/**
* Searches the web.
*
* The legacy Search API reference is available
* [here](https://docs.parallel.ai/api-reference/legacy/search-beta/search).
* The legacy Search API reference (`/v1beta/search` endpoint) is available
* [here](https://docs.parallel.ai/api-reference/legacy/search-beta/search), and
* migration guide is
* [here](https://docs.parallel.ai/search/search-migration-guide).
*
* @example
* ```ts
Expand Down
24 changes: 14 additions & 10 deletions src/resources/beta/beta.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,12 +70,7 @@ export class Beta extends APIResource {
/**
* Extracts relevant content from specific web URLs.
*
* @example
* ```ts
* const extractResponse = await client.beta.extract({
* urls: ['string'],
* });
* ```
* @deprecated Use client.extract instead. For more info, see https://docs.parallel.ai/extract/extract-migration-guide
*/
extract(params: BetaExtractParams, options?: RequestOptions): APIPromise<ExtractResponse> {
const { betas, ...body } = params;
Expand All @@ -92,10 +87,7 @@ export class Beta extends APIResource {
/**
* Searches the web.
*
* @example
* ```ts
* const searchResult = await client.beta.search();
* ```
* @deprecated Use client.search instead. For more info, see https://docs.parallel.ai/search/search-migration-guide
*/
search(params: BetaSearchParams, options?: RequestOptions): APIPromise<SearchResult> {
const { betas, ...body } = params;
Expand Down Expand Up @@ -252,6 +244,12 @@ export interface BetaExtractParams {
*/
urls: Array<string>;

/**
* Body param: The model generating this request and consuming the results. Enables
* optimizations and tailors default settings for the model's capabilities.
*/
client_model?: string | null;

/**
* Body param: Include excerpts from each URL relevant to the search objective and
* queries. Note that if neither objective nor search_queries is provided, excerpts
Expand Down Expand Up @@ -310,6 +308,12 @@ export namespace BetaExtractParams {
}

export interface BetaSearchParams {
/**
* Body param: The model generating this request and consuming the results. Enables
* optimizations and tailors default settings for the model's capabilities.
*/
client_model?: string | null;

/**
* Body param: Optional settings to configure excerpt generation.
*/
Expand Down
2 changes: 1 addition & 1 deletion src/version.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export const VERSION = '0.4.0'; // x-release-please-version
export const VERSION = '0.4.1'; // x-release-please-version
1 change: 1 addition & 0 deletions tests/api-resources/beta/beta.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ describe('resource beta', () => {
test('extract: required and optional params', async () => {
const response = await client.beta.extract({
urls: ['string'],
client_model: 'claude-opus-4-7',
excerpts: true,
fetch_policy: {
disable_cache_fallback: true,
Expand Down
4 changes: 2 additions & 2 deletions tests/api-resources/top-level.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ describe('top level methods', () => {
},
full_content: { max_chars_per_result: 0 },
},
client_model: 'claude-sonnet-4-6-20260401',
client_model: 'claude-opus-4-7',
max_chars_total: 0,
objective: 'objective',
search_queries: ['string'],
Expand Down Expand Up @@ -68,7 +68,7 @@ describe('top level methods', () => {
include_domains: ['wikipedia.org', 'usa.gov', '.edu'],
},
},
client_model: 'claude-sonnet-4-6-20260401',
client_model: 'claude-opus-4-7',
max_chars_total: 0,
mode: 'basic',
objective: 'objective',
Expand Down
Loading