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.13.0"
".": "0.14.0"
}
4 changes: 2 additions & 2 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
configured_endpoints: 5
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/perplexity-ai%2Fperplexity-335f0ceddae39ba77e5abf8b2b72691a43174b25c2ec897cd7779db8d1524820.yml
openapi_spec_hash: e34fc7a3c97b61c7aded4df4774f298e
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/perplexity-ai%2Fperplexity-5d4ba4296d72d87995a2189a991e710a77b4b73cc275ad03d8a0eec245cf55db.yml
openapi_spec_hash: 5d29546ef1490dda18cda8ca97cd665e
config_hash: 4e2c5b7ad4caa07a2ac1af091ecf6c9c
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog

## 0.14.0 (2025-10-30)

Full Changelog: [v0.13.0...v0.14.0](https://github.com/perplexityai/perplexity-node/compare/v0.13.0...v0.14.0)

### Features

* **api:** manual updates ([fffc9eb](https://github.com/perplexityai/perplexity-node/commit/fffc9eb2cfd6db13056bfaa90fd83ab4633e360a))

## 0.13.0 (2025-10-29)

Full Changelog: [v0.12.0...v0.13.0](https://github.com/perplexityai/perplexity-node/compare/v0.12.0...v0.13.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": "@perplexity-ai/perplexity_ai",
"version": "0.13.0",
"version": "0.14.0",
"description": "The official TypeScript library for the Perplexity API",
"author": "Perplexity <api@perplexity.ai>",
"types": "dist/index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion packages/mcp-server/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@perplexity-ai/mcp-server",
"version": "0.13.0",
"version": "0.14.0",
"description": "The official MCP Server for the Perplexity API",
"author": "Perplexity <api@perplexity.ai>",
"types": "dist/index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion packages/mcp-server/src/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export const newMcpServer = () =>
new McpServer(
{
name: 'perplexity_ai_perplexity_ai_api',
version: '0.13.0',
version: '0.14.0',
},
{ capabilities: { tools: {}, logging: {} } },
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,20 +65,6 @@ export const tool: Tool = {
type: 'boolean',
title: 'Cum Logprobs',
},
debug_params: {
type: 'object',
title: 'DebugParams',
properties: {
summarizer_model_override: {
type: 'string',
title: 'Summarizer Model Override',
},
summarizer_prompt_override: {
type: 'string',
title: 'Summarizer Prompt Override',
},
},
},
disable_search: {
type: 'boolean',
title: 'Disable Search',
Expand Down Expand Up @@ -535,20 +521,6 @@ export const tool: Tool = {
type: 'boolean',
title: 'Cum Logprobs',
},
debug_params: {
type: 'object',
title: 'DebugParams',
properties: {
summarizer_model_override: {
type: 'string',
title: 'Summarizer Model Override',
},
summarizer_prompt_override: {
type: 'string',
title: 'Summarizer Prompt Override',
},
},
},
disable_search: {
type: 'boolean',
title: 'Disable Search',
Expand Down Expand Up @@ -1145,19 +1117,6 @@ export const tool: Tool = {
type: 'string',
title: 'Thought',
},
type: {
type: 'string',
title: 'Type',
enum: [
'web_search',
'fetch_url_content',
'execute_python',
'agent_progress',
'browser_agent',
'browser_tool_execution',
'file_attachment_search',
],
},
agent_progress: {
type: 'object',
title: 'AgentProgressStepDetails',
Expand Down Expand Up @@ -1253,6 +1212,10 @@ export const tool: Tool = {
},
required: ['attachment_urls'],
},
type: {
type: 'string',
title: 'Type',
},
web_search: {
type: 'object',
title: 'WebSearchStepDetails',
Expand All @@ -1276,7 +1239,7 @@ export const tool: Tool = {
required: ['search_keywords', 'search_results'],
},
},
required: ['thought', 'type'],
required: ['thought'],
},
},
tool_calls: {
Expand Down
8 changes: 0 additions & 8 deletions src/resources/async/chat/completions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -159,8 +159,6 @@ export namespace CompletionCreateParams {

cum_logprobs?: boolean | null;

debug_params?: Request.DebugParams | null;

disable_search?: boolean | null;

diverse_first_token?: boolean | null;
Expand Down Expand Up @@ -263,12 +261,6 @@ export namespace CompletionCreateParams {
}

export namespace Request {
export interface DebugParams {
summarizer_model_override?: string | null;

summarizer_prompt_override?: string | null;
}

export interface ResponseFormatText {
type: 'text';
}
Expand Down
8 changes: 0 additions & 8 deletions src/resources/chat/completions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,6 @@ export interface CompletionCreateParamsBase {

cum_logprobs?: boolean | null;

debug_params?: CompletionCreateParams.DebugParams | null;

disable_search?: boolean | null;

diverse_first_token?: boolean | null;
Expand Down Expand Up @@ -156,12 +154,6 @@ export interface CompletionCreateParamsBase {
}

export namespace CompletionCreateParams {
export interface DebugParams {
summarizer_model_override?: string | null;

summarizer_prompt_override?: string | null;
}

export interface ResponseFormatText {
type: 'text';
}
Expand Down
22 changes: 4 additions & 18 deletions src/resources/shared.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,15 +102,6 @@ export namespace ChatMessageInput {
export interface ReasoningStep {
thought: string;

type:
| 'web_search'
| 'fetch_url_content'
| 'execute_python'
| 'agent_progress'
| 'browser_agent'
| 'browser_tool_execution'
| 'file_attachment_search';

/**
* Agent progress class for live-browsing updates
*/
Expand Down Expand Up @@ -141,6 +132,8 @@ export namespace ChatMessageInput {
*/
file_attachment_search?: ReasoningStep.FileAttachmentSearch | null;

type?: string | null;

/**
* Web search step details wrapper class
*/
Expand Down Expand Up @@ -311,15 +304,6 @@ export namespace ChatMessageOutput {
export interface ReasoningStep {
thought: string;

type:
| 'web_search'
| 'fetch_url_content'
| 'execute_python'
| 'agent_progress'
| 'browser_agent'
| 'browser_tool_execution'
| 'file_attachment_search';

/**
* Agent progress class for live-browsing updates
*/
Expand Down Expand Up @@ -350,6 +334,8 @@ export namespace ChatMessageOutput {
*/
file_attachment_search?: ReasoningStep.FileAttachmentSearch | null;

type?: string | null;

/**
* Web search step details wrapper class
*/
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.13.0'; // x-release-please-version
export const VERSION = '0.14.0'; // x-release-please-version
6 changes: 1 addition & 5 deletions tests/api-resources/async/chat/completions.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ describe('resource completions', () => {
reasoning_steps: [
{
thought: 'thought',
type: 'web_search',
agent_progress: { action: 'action', screenshot: 'screenshot', url: 'url' },
browser_agent: { result: 'result', url: 'url' },
browser_tool_execution: { tool: { foo: 'bar' } },
Expand All @@ -51,6 +50,7 @@ describe('resource completions', () => {
],
},
file_attachment_search: { attachment_urls: ['string'] },
type: 'type',
web_search: {
search_keywords: ['string'],
search_results: [
Expand All @@ -77,10 +77,6 @@ describe('resource completions', () => {
best_of: 0,
country: 'country',
cum_logprobs: true,
debug_params: {
summarizer_model_override: 'summarizer_model_override',
summarizer_prompt_override: 'summarizer_prompt_override',
},
disable_search: true,
diverse_first_token: true,
enable_search_classifier: true,
Expand Down
6 changes: 1 addition & 5 deletions tests/api-resources/chat/completions.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ describe('resource completions', () => {
reasoning_steps: [
{
thought: 'thought',
type: 'web_search',
agent_progress: { action: 'action', screenshot: 'screenshot', url: 'url' },
browser_agent: { result: 'result', url: 'url' },
browser_tool_execution: { tool: { foo: 'bar' } },
Expand All @@ -51,6 +50,7 @@ describe('resource completions', () => {
],
},
file_attachment_search: { attachment_urls: ['string'] },
type: 'type',
web_search: {
search_keywords: ['string'],
search_results: [
Expand All @@ -77,10 +77,6 @@ describe('resource completions', () => {
best_of: 0,
country: 'country',
cum_logprobs: true,
debug_params: {
summarizer_model_override: 'summarizer_model_override',
summarizer_prompt_override: 'summarizer_prompt_override',
},
disable_search: true,
diverse_first_token: true,
enable_search_classifier: true,
Expand Down
Loading